This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
reverse-component with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Unicode-aware string reverser. For more information, visit: https://github.com/mathiasbynens/esrever.
Install with component(1):
$ component install component/reverse
Or with node.js:
$ npm install reverse-component
reverse('foo 𝌆 bar') // rab 𝌆 oof reverse('mañana mañana') // anañam anañam
Reverse a string
The logic and examples are originally from: https://github.com/mathiasbynens/esrever. This code is reformatted and simplified for component.
npm install component-test make test