Skip to content

This CLI makes it possible to search for anagrams from a provided dictionary file.

License

Notifications You must be signed in to change notification settings

bjarneo/anagram-finder-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anagram finder cli

What is this?

This CLI makes it possible to search for anagrams from a provided dictionary file. Dictionary must have one word each line, see example.

Installation

It's available on npm.

npm install -g anagram-finder-cli

Usage

Example words.txt file.

listen
word
dog
laugh
elints
enlist
inlets
javascript
slinte
silent
nodejs
tinsel

Usage

    Usage
      $ ana <word> --file words.txt --json

    Options
      --file, -f  The dictionary to search for anagrams
      --json, -j  Output to json
      --csv,  -c  Output to csv

    Examples
      $ ana silent --file words.txt --json
      {
        "word": "listen",
        "anagrams": [
          "listen",
          "elints",
          "enlist",
          "inlets",
          "silent",
          "slinte",
          "tinsel"
        ],
        "count": 7
      }

Dictionaries

Feel free to add your dictionary

Contribution

Contributions are appreciated.

License

MIT licensed. See LICENSE.

About

This CLI makes it possible to search for anagrams from a provided dictionary file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published