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(str)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
MIT