seancwall-palindrome

Palindrome detector

Usage no npm install needed!

<script type="module">
  import seancwallPalindrome from 'https://cdn.skypack.dev/seancwall-palindrome';
</script>

README

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 seancwall-palindrome
$ vim test.js
let Phrase = require("seancwall-palindrome");
let napoleonsLament = new Phrase("Able was I, ere I saw Elba.");
console.log(napoleonsLament.palindrome());
$ node test.js
true