0.1.0 • Published 5 years ago

eponym v0.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

Eponym

Eponym is a node script capable of generating a list of words that are currently available NPM packages. The list of words is pulled from the wonderful WebstersEnglishDictionary.

eponym: noun, a person after who a discovery, invention or place is named

Getting started

# Grab 20 random words from the dictionary that are 6 characters or
# less and return the ones that are available as package names on NPM

npx eponym --limit=20 --max-word-length=6

An HTTP request has to be made for each word, so larger data sets can be time consuming. You can skip the wait by using the pre-compiled lists in the out/ directory.

If you're in the middle of a long running process though, you can terminate it at any time and so long as you've passed the --write flag, the names processed so far will still be written to the file.

Options

OptionDefaultDescription
-l, --limit <limit>-The number of dictionary words to run through NPM. The number of results may be less than this because any names which are already taken on NPM are not returned
--full-dictionaryfalseProcess every word in the dictionary (Warning: This is very, very slow)
-b, --batch-size <size>20The number of HTTP requests allowed to happen at once
-m, --max-word-length <max>Limit the results to words of a certain maximum length
-w, --write <filePath>print to consolePassing this option outputs the results to the specified file instead of printing them to the console
-p, --predictablefalseDo not randomly choose words from the dictionary, instead start from the beginning