Socket
Book a DemoInstallSign in
Socket

component-reverse

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-reverse

unicode-aware string reversal

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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

Keywords

reverse

FAQs

Package last updated on 11 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts