1.0.3 • Published 10 years ago
anagramica v1.0.3
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 anagramicaAPI
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).