leighmforrest-palindrome
v0.2.0
Published
Palindrome detector
Maintainers
Readme
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