andyh-palindrome

Palindrome detector

Usage no npm install needed!

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

README

Phrase object (with palindrome detector)

This is a sample NPM module created following along the Learn Enough JavaScript to Be Dangerous tutorial.

The module can be used as follows:

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