Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reverse-string

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reverse-string

Reverse a string (with Unicode support) 'foo' → 'oof'

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
71
increased by47.92%
Maintainers
1
Weekly downloads
 
Created
Source

reverse-string

Reverse a string (with Unicode support). 'foo' → 'oof'

Build Status NPM version

This module was inspired by Implementation #1 of Edd Mann's post: a high-performance algorithm for string reversal.

Install

You can use this module in node or in the browser.

For use via Node.js:

npm install --save reverse-string

For use via Bower:

bower install reverse-string

Usage

var reverse = require('reverse-string');

reverse('test');
//=> 'tset'

API

reverseString(string)

Returns a reversed string.

string

Required
Type: string

The string you want to reverse. Allows unicode and latin characters.

License

MIT @ Cédric JUNG

Keywords

FAQs

Package last updated on 10 Jul 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc