rightmeow-palindrome
v0.1.0
Published
This is a sample NPM module created in Learn Enough JS to Be Dangerous by Michael Hartl
Downloads
7
Readme
Phrase object (with palindrome detector)
This is a sample NPM module created in Learn Enough JS to Be Dangerous by Michael Hartl
This module can be used as follows:
$ npm install -g rightmeow-palindrome
$ vim test.js
$ let Phrase = require('rightmeow-palindrome')
let napoleonsLament = new Phrase("Able was I, ere I saw Elba.")
console.log(napoleonsLament.isPalindrome())
$ node test.js
true