A docker name generator in TypeScript.
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.
 
 
Go to file
Declan Shanaghy 1dc59a3467 1.1.4 3 years ago
.github/workflows Adding actions to ensure tests pass (#13) 3 years ago
src Remove jang (#31) 3 years ago
.gitignore Improving build and release (#19) 3 years ago
.nvmrc Improving build and release (#19) 3 years ago
README.md Updating readme 3 years ago
jest.config.js Initial commit 3 years ago
package-lock.json 1.1.4 3 years ago
package.json 1.1.4 3 years ago
tsconfig.json Initial commit 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...]