Skip to content

Sacharified/anagram-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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`);

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published