rev-sentence

1.0.0 • Public • Published

rev-sentence

Reverses the words of a sentence.

Install

npm install @npmusername/reverse-sentence

API

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

Example

const reverseSentence = require("reverse-sentence");
const sentence = "Hello Beth!";
const reversed = reverseSentence(sentence);
console.log(reversed); // Beth! Hello

License

MIT

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i rev-sentence

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.38 kB

    Total Files

    4

    Last publish

    Collaborators

    • anyperson