Skip to content

cedced19/reverse-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Reverse a string.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •