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
MIT