npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

component-reverse

0.0.2

@tootallnate

npmHomeRepoSnykSocket
Downloads:2
$ npm install component-reverse
DailyWeeklyMonthlyYearly

reverse

Unicode-aware string reverser. For more information, visit: https://github.com/mathiasbynens/esrever.

Installation

Install with component(1):

$ component install component/reverse

Or with node.js:

$ npm install reverse-component

Example

reverse('foo šŒ† bar') // rab šŒ† oof
reverse('maƱana maƱana') // anaƱam anaƱam

API

reverse(str)

Reverse a string

Credits

The logic and examples are originally from: https://github.com/mathiasbynens/esrever. This code is reformatted and simplified for component.

Test

npm install component-test
make test

License

MIT