Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docker-names

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-names

Generates names identical to dockers i.e. [adjective]_[surname]

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.5K
decreased by-6.01%
Maintainers
1
Weekly downloads
 
Created
Source

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' ...);

Keywords

FAQs

Package last updated on 22 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc