0.1.0 • Published 11 months ago

@rodrigofplourenco/reverse-sentence v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

reverse-sentence

Reverses the words of a sentence.

Install

npm install @rodrigofplourenco/reverse-sentence

API

require("reverse-sentence") => Function
reverse(sentence) => String

Example

const reverseSentence = require("reverse-sentence");
const sentence = "Hello Rodrigo Lourenço!"; 
const reversed = reverseSentence(sentence); 
console.log(reversed) // Lourenço! Rodrigo Hello

License

ISC

0.1.0

11 months ago