@criblinc/docker-names
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

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...]

Package Sidebar

Install

npm i @criblinc/docker-names

Weekly Downloads

201

Version

1.2.1

License

ISC

Unpacked Size

54.8 kB

Total Files

4

Last publish

Collaborators

  • nbarrett645
  • cribl-npm
  • bryce-cribl
  • dshanaghy-cribl