anagramica
v1.0.3
Published
Anagramica API wrapper
Downloads
10
Maintainers
Readme
anagramica
Anagramica API wrapper.
Example
var anagramica = require('anagramica');
anagramica.all('bread', function(error, response) {
if (error) {
throw error;
}
console.log(response);
//=> {
//=> 'all': [
//=> 'bared',
//=> 'beard',
//=> 'bread',
//=> 'debar'
//=> ]
//=> }
});
Installation
$ npm install anagramica
API
var anagramica = require('anagramica');
anagramica.best(letters, callback)
Given an Array or String of letters
, queries Anagramica for the best case
anagram. Calls callback(error, response)
.
anagramica.all(letters, callback)
Given an Array or String of letters
, queries Anagramica for every possible
anagram. Calls callback(error, response)
.
anagramica.lookup(word, callback)
Queries Anagramica on whether or not String word
is in the Anagramica
dictionary. Calls callback(error, response)
.