1.0.0 • Published 10 years ago

stringywingy v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

stringywingy

Check if a sentence or a word is an anagram or a palindrome.

This module is ment as an example of a NPM module for a introductory course of Node.js

Install

Install by using NPM:

npm install --save stringywingy

Require the file in your file

var sw = require('stringywingy');

Usage

isAnagram

var sw = require('stringywingy');
sw.isAnagram('Clint Eastwood', 'Old west action'); //=> true

isPalindrome

var sw = require('stringywingy');
sw.isPalindrome('Yo, banana boy!'); //=> true