An open API service indexing awesome lists of open source software.

https://github.com/djh-dev/bdvloped-palindrome

NPM test module
https://github.com/djh-dev/bdvloped-palindrome

npm-module npm-package npmjs tdd-javascript

Last synced: 2 months ago
JSON representation

NPM test module

Awesome Lists containing this project

README

        

# Phrase object (with palindrome detector)

this is a sample NPM module created in [Learn Enough JavaScript to Be Dangerous](https://www.learnenough.com/) by Michael Hartl.

The module can be used as follows:

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