mhartl / mhartl-palindrome

A sample NPM module for Learn Enough JavaScript to Be Dangerous

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phrase object (with palindrome detector)

This is a sample NPM module created in Learn Enough JavaScript to Be Dangerous by Michael Hartl.

The module can be used as follows:

$ npm install --global mhartl-palindrome
$ vim test.js
let Phrase = require("mhartl-palindrome");
let napoleonsLament = new Phrase("Able was I, ere I saw Elba.");
console.log(napoleonsLament.palindrome());
$ node test.js
true

About

A sample NPM module for Learn Enough JavaScript to Be Dangerous


Languages

Language:JavaScript 100.0%