You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6500a1ee57 | 3 years ago | |
---|---|---|
.github/workflows | 3 years ago | |
src | 3 years ago | |
.gitignore | 3 years ago | |
.nvmrc | 3 years ago | |
README.md | 3 years ago | |
jest.config.js | 3 years ago | |
package-lock.json | 3 years ago | |
package.json | 3 years ago | |
tsconfig.json | 3 years ago |
README.md
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...]