Anagramica API wrapper
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
.eslintrc
.gitattributes
.gitignore
.travis.yml
LICENSE.txt
README.md
index.js
package.json

README.md

anagramica

Build Status Dependency Status

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).