Find available & relevant npm package names from the command line.
There are only three hard things in Computer Science: cache invalidation, naming things, off-by-one errors, and being original.
- Phil Karlton et al.¹
¹ original quote is becoming lost to history / legend
namesake can do absolutely nothing to help you with cache invalidation
and off-by-one errors but it can help you with naming things. Being
original is still up to you.
npm i -g namesake-cli
Usage: namesake [word] [options]Generate a list of words that just so happen to alsobe available as npm package names.Optionally, you can use any word as input to findrelated words and terms.Options:-l, --limit <n> Limit the number of results returned (defaults to 50)-h, --help Show this help message-v, --version Output the namesake version number
Note: namesake's output is non-deterministic by design. so the following example is not 100% reproduceable, and these package names might not be available in the future.
$ namesake carAvailable package names related to 'car':acr automobile fund cadillacrailcar bombs cable-car accidentmercedes gondola carloadmalibu wagons trolleyautomotive autos automakersedan consignment carparkelevator-car escalade buickmotorcar motoring pintoparking railway-car carlabackseat railroad-car drivinglading vehicles automobiles
Limiting the number of results:
$ namesake car --limit 5Available package names related to 'car':gondola carload driving carpark motorcar
namesake- the module powering this command line tool
- Datamuse API - powers the related word search capabilities
english-words- word list used here for random word selection
Pull requests and any issues found are always welcome.
- Fork the project, and preferably create a branch named something like
- Modify the source files as needed
- Make sure all tests continue to pass, and it never hurts to have more tests
- Push & pull request! 🎉
MIT © Bo Lingen / citycide