dn

docker-names

Generates Docker Style names i.e. {{adjective}}_{{surname}}

Showing:

Popularity

Downloads/wk

5K

GitHub Stars

26

Maintenance

Last Commit

3yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

1.8KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Docker-Names

Docker Names generates semi-random, easy to remember names similar to how docker names its containers. For example, desperate_fermi, cranky_heyrovsky or tender_mahavira.

Or as seen from the docker client container list: Docker container list

Current Build Status: Build Status

Usage

Usage is very simple as this module only exports one method:

var dockerNames = require('docker-names');
console.log(dockerNames.getRandomName());
$ angry_nobel

Additionally, per dockers specification they have a "retry" counter that appends a *random** number if set to true or a number greater than 0. For example:

console.log(dockerNames.getRandomName(true));
$ jolly_mclean3

console.log(dockerNames.getRandomName(3));
$ backstabbing_roentgen5

* This uses Math.random which means its not very random. These names should never be used as any sort of unique id. The names are mostly applicable for small lists of ephemeral objects that you want to have easy to remember identifiers for.

Word Lists

This module exports the full docker name lists as two arrays.

// This contains all adjectives i.e. "left words"
dockerNames.adjectives = Array('admiring', 'adoring'...);

// This contains all surnames to use as "right words"
dockerNames.surnames = Array('albattani', 'allen' ...);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial