0.2.0 • Published 4 years ago

tdenny-palindrome v0.2.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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