mirror of
https://github.com/MillironX/docker-names.git
synced 2024-11-15 05:53:10 +00:00
A docker name generator in TypeScript.
de89788c49
- Reorder family names to be alphabetical order - Added `suara` family name Co-authored-by: declanshanaghy <dshanaghy@splunk.com> |
||
---|---|---|
.github/workflows | ||
src | ||
.gitignore | ||
.nvmrc | ||
jest.config.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
Docker Names
An implementation of docker-names in TypeScript. This package unlike the normal docker name generator, generates with a -
instead of an _
.
Usage
Generate Name
import {generateName} from '@criblinc/docker-names'
const dockerName = generateName();
console.log(dockerName);
//Outputs goofy-panini
Generate Name With Number
import {generateNameWithNumber} from '@criblinc/docker-names'
const dockerName = generateNameWithNumber();
console.log(dockerName);
//Outputs goofy-panini-4
Words
The words can also be imported from the package if need be.
import {left,right} from '@criblinc/docker-names'
console.log(left);
//Outputs [admiring,adoring, etc...]
console.log(right)
//Outputs [albattani,allen, etc...]