NodeJS example project to reverse string.


Keywords
string, reverse, example
License
GPL-3.0
Install
npm install string-reversal-example@1.0.15

Documentation

string-reversal-example

JavaScript Style Guide Travis CI npm Downloads npm Version

NodeJS example project to reverse string.

Do not use in production environment.

Usage:

const sr = require('string-reversal-example')

console.log(sr.echoMockMessage())
console.log(sr.echoLoremIpsum())
console.log(sr.echoRedFiveStandingBy())
console.log(sr.echoFeelTheForce())

console.log(sr.reverseString(sr.echoMockMessage()))
console.log(sr.reverseString(sr.echoLoremIpsum()))
console.log(sr.reverseString(sr.echoRedFiveStandingBy()))
console.log(sr.reverseString(sr.echoFeelTheForce()))

Output:

This is an example message from the example package.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Red Five standing by.
Feel the Force!
.egakcap elpmaxe eht morf egassem elpmaxe na si sihT
.tile gnicsipida rutetcesnoc ,tema tis rolod muspi meroL
.yb gnidnats eviF deR
!ecroF eht leeF