Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

devfacet/anagram-finder

Repository files navigation

Anagram Finder

NPM Build Status

Anagram Finder is a module for finding anagrams. See wiki page for more details.

Installation

npm install anagram-finder

Usage

var anagramFinder = require('anagram-finder'),
    keywords      = ['hi', 'hello', 'bye', 'helol', 'abc', 'cab', 'bac', 5, {}, []];

anagramFinder.find(keywords);
/*
[ [ 'hi' ],
  [ 'hello', 'helol' ],
  [ 'bye' ],
  [ 'abc', 'cab', 'bac' ] ]
*/

License

Licensed under The MIT License (MIT)
For the full copyright and license information, please view the LICENSE.txt file.