devfacet / anagram-finder

A module for finding anagrams

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A module for finding anagrams

License:MIT License


Languages

Language:JavaScript 100.0%