npm.io
0.2.0 • Published 6 years ago

tdenny-palindrome

Licence
ISC
Version
0.2.0
Deps
1
Size
4 kB
Vulns
0
Weekly
0

Phrase object (with palindrome detector)

This is an NPM module created as a sample for the Learn Enough JavaScript to Be Dangerous by Michael Hartl.

Use the module to detect palindromes through testing as follows:

$ npm install --global bdvloped-palindrome
$ vim test.js
let Phrase = require("bdvloped-palindrome");
let napoleonsLament = new Phrase("Able was I, ere I saw Elba.");
console.log(napoleonsLament.palindrome());
$ node test.js
true

Keywords