0.2.0 • Published 7 years ago
leighmforrest-palindrome v0.2.0
Phrase object (with palindrome detector)
This is a sample NPM module written by hand by Leigh Michael Forrest, based on a tutorial (Learn Enough JavaScript to Be Dangerous by Michael Hartl).
The module can be used as follows:
$ npm install --global palindrome
$ vim test.js
let Phrase = require("palindrome");
let teddyRoosevelt = new Phrase("A man, a plan, a canal: Panama!");
console.log(teddyRoosevelt.palindrome());
$ node test.js
true