1
0
Fork 0
mirror of https://github.com/MillironX/docker-names.git synced 2024-11-24 00:49:55 +00:00
A docker name generator in TypeScript.
Find a file
2021-04-25 10:29:08 -05:00
src Initial commit 2021-04-25 10:29:08 -05:00
.gitignore Initial commit 2021-04-25 10:29:08 -05:00
jest.config.js Initial commit 2021-04-25 10:29:08 -05:00
package-lock.json Initial commit 2021-04-25 10:29:08 -05:00
package.json Initial commit 2021-04-25 10:29:08 -05:00
README.md Initial commit 2021-04-25 10:29:08 -05:00
tsconfig.json Initial commit 2021-04-25 10:29:08 -05:00

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 '@cribl/docker-names'

const dockerName = generateName();

console.log(dockerName);

//Outputs goofy-panini

Generate Name With Number

import {generateNameWithNumber} from '@cribl/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 '@cribl/docker-names'

console.log(left);

//Outputs [admiring,adoring, etc...]

console.log(right)

//Outputs [albattani,allen, etc...]