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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i string-rev

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • prosen-ghosh