leighmforrest-palindrome

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i leighmforrest-palindrome

Weekly Downloads

0

Version

0.2.0

License

ISC

Unpacked Size

1.79 kB

Total Files

3

Last publish

Collaborators

  • leighmforrest