anagram-solver

1.0.1 • Public • Published

Anagram Solver

Find all anagrams in a dictionary of a given set of characters (fast).

Installation

npm i anagram-solver

Usage

Returns a promise that resolves to an array of strings.

Using the default dictionary

const findAnagrams = require("anagram-solver");
const anagrams = await findAnagrams("spolo");
console.log(anagrams);
// ["loops", "polos", "pools", "sloop", "spool"]

Using another dictionary (JSON format)

findAnagrams(`spolo`, `https://link.to/my/dictionary.json`);

Package Sidebar

Install

npm i anagram-solver

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

3.67 kB

Total Files

5

Last publish

Collaborators

  • sacharified