npm

Need private packages and team management tools?Check out npm Orgs. »

string-rev

1.0.0 • Public • Published

string-rev

Reverse a string

npm license github-issues

travis-status stars forks

Features

Install

npm install --save string-rev

Usage

const sReverse = require('string-rev');
 
sReverse('123');
//=>'321'
 
sReverse('abcdef');
//=> 'fedcba'
 
sReverse('madam');
//=> 'madam'
 
sReverse(); // without parametr this function will throw a type error.
//=> TypeError: expects a string got undefined
 

Author

Prosen Ghosh prosenghosh25@gmail.com

License

  • MIT

install

npm i string-rev

Downloadsweekly downloads

3

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability