1
0
Fork 0
mirror of https://github.com/MillironX/docker-names.git synced 2024-11-14 21:43:10 +00:00
A docker name generator in TypeScript.
Find a file
nickbarrett645 c1f13e0218
Merge pull request #37 from wr-cribl/add_wr_name
added wr name to list
2022-04-29 17:59:14 -04:00
.github/workflows Adding actions to ensure tests pass (#13) 2021-05-11 09:52:11 -07:00
src added wr name to list 2022-04-29 14:45:28 -07:00
.gitignore Improving build and release (#19) 2021-07-26 17:37:58 -07:00
.nvmrc Improving build and release (#19) 2021-07-26 17:37:58 -07:00
jest.config.js Initial commit 2021-04-25 10:29:08 -05:00
package-lock.json 1.1.4 2021-10-06 10:53:32 -07:00
package.json 1.1.4 2021-10-06 10:53:32 -07:00
README.md Updating readme 2021-04-27 14:40:27 -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 '@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...]