An implementation of [docker-names](https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go) in TypeScript. This package unlike the normal docker name generator, generates with a `-` instead of an `_`.
An implementation of [docker-names](https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go) in TypeScript. Forked from <https://github.com/criblio/docker-names>.
## Changes
1. Added more names of scientists related to
- chemical engineering
- animal breeding
- rumen science
- among others...
2. Changed the delimiter to an underscore when adding extra data (date or number)
3. Added an identifier that starts with a date (useful where identifiers have to be sorted chronologically).
## Usage
Maybe this stuff will still work? :shrug: I just replaced everything with my name and code, but I personally transpile to JavaScript rather than use TypeScript directly.
### Generate Name
```typescript
import {generateName} from '@criblinc/docker-names'
import {generateName} from '@millironx/docker-names'
const dockerName = generateName();
@ -18,23 +30,34 @@ console.log(dockerName);
### Generate Name With Number
```typescript
import {generateNameWithNumber} from '@criblinc/docker-names'
import {generateNameWithNumber} from '@millironx/docker-names'
const dockerName = generateNameWithNumber();
console.log(dockerName);
//Outputs goofy-panini-4
//Outputs goofy-panini_4
```
## Words
### Generate Name With Date
```typescript
import {generateNameWithDate} from '@millironx/docker-names'
const dockerName = generateNameWithDate();
console.log(dockerName);
//Outputs 20210720_goofy-panini
```
## Words
The words can also be imported from the package if need be.
```typescript
import {left,right} from '@criblinc/docker-names'
import {left,right} from '@millironx/docker-names'
// Bhaskara II - Ancient Indian mathematician-astronomer whose work on calculus predates Newton and Leibniz by over half a millennium - https://en.wikipedia.org/wiki/Bh%C4%81skara_II#Calculus
"bhaskara",
// Baxter Black - Veterinarian, humorist and all-around cowboy philosopher - https://en.wikipedia.org/wiki/Baxter_Black
"black",
// Elizabeth Helen Blackburn - Australian-American Nobel laureate; best known for co-discovering telomerase. https://en.wikipedia.org/wiki/Elizabeth_Blackburn
"blackburn",
@ -390,6 +393,9 @@ export const right = [
// Werner Heisenberg was a founding father of quantum mechanics. https://en.wikipedia.org/wiki/Werner_Heisenberg
"heisenberg",
// Charles Roy Henderson - Developer of BLUP as the solution of linear mixed models commonly used in breeding value calculations. - https://en.wikipedia.org/wiki/Charles_Roy_Henderson
"henderson",
// Grete Hermann was a German philosopher noted for her philosophical work on the foundations of quantum mechanics. https://en.wikipedia.org/wiki/Grete_Hermann
"hermann",
@ -417,6 +423,9 @@ export const right = [
// Frances Hugle, she was an American scientist, engineer, and inventor who contributed to the understanding of semiconductors, integrated circuitry, and the unique electrical principles of microscopic materials. https://en.wikipedia.org/wiki/Frances_Hugle
"hugle",
// Robert Hungate - Creator of anaerobic bacterial culture methods for use in rumen microbiology - https://en.wikipedia.org/wiki/Robert_Hungate
"hungate",
// Hypatia - Greek Alexandrine Neoplatonist philosopher in Egypt who was one of the earliest mothers of mathematics - https://en.wikipedia.org/wiki/Hypatia
"hypatia",
@ -447,7 +456,7 @@ export const right = [
// A. P. J. Abdul Kalam - is an Indian scientist aka Missile Man of India for his work on the development of ballistic missile and launch vehicle technology - https://en.wikipedia.org/wiki/A._P._J._Abdul_Kalam
"kalam",
// Dan Kaminsky - (Feb. 7, 1979 - April 23, 2021) cybersecurity hero known for his study on DNS cache poisoning and his investingations into the Sony Rootkit attacks.
// Dan Kaminsky - (Feb. 7, 1979 - April 23, 2021) cybersecurity hero known for his study on DNS cache poisoning and his investingations into the Sony Rootkit attacks.
"kaminsky",
// Sergey Petrovich Kapitsa (Russian: Серге́й Петро́вич Капи́ца; 14 February 1928 – 14 August 2012) was a Russian physicist and demographer. He was best known as host of the popular and long-running Russian scientific TV show, Evident, but Incredible. His father was the Nobel laureate Soviet-era physicist Pyotr Kapitsa, and his brother was the geographer and Antarctic explorer Andrey Kapitsa. - https://en.wikipedia.org/wiki/Sergey_Kapitsa
@ -456,6 +465,9 @@ export const right = [
// Susan Kare, created the icons and many of the interface elements for the original Apple Macintosh in the 1980s, and was an original employee of NeXT, working as the Creative Director. https://en.wikipedia.org/wiki/Susan_Kare
"kare",
// Stefan Karpinski - co-creator of the Julia programming language. Recognizable on most web forums by his awesome Viking helmet. - https://en.wikipedia.org/wiki/Stefan_Karpinski
"karpinski",
// Mstislav Keldysh - a Soviet scientist in the field of mathematics and mechanics, academician of the USSR Academy of Sciences (1946), President of the USSR Academy of Sciences (1961–1975), three times Hero of Socialist Labor (1956, 1961, 1971), fellow of the Royal Society of Edinburgh (1968). https://en.wikipedia.org/wiki/Mstislav_Keldysh
"keldysh",
@ -504,6 +516,9 @@ export const right = [
// Inge Lehmann - Danish seismologist and geophysicist. Known for discovering in 1936 that the Earth has a solid inner core inside a molten outer core. https://en.wikipedia.org/wiki/Inge_Lehmann
"lehmann",
// Octave Levenspiel - Chemical engineer specializing in reaction engineering. Reactor volume plots and GNU's implementation of Matlab are named after him. - https://en.wikipedia.org/wiki/Octave_Levenspiel
"levenspiel",
// Daniel Lewin - Mathematician, Akamai co-founder, soldier, 9/11 victim-- Developed optimization techniques for routing traffic on the internet. Died attempting to stop the 9-11 hijackers. https://en.wikipedia.org/wiki/Daniel_Lewin
"lewin",
@ -519,6 +534,9 @@ export const right = [
// Auguste and Louis Lumière - the first filmmakers in history - https://en.wikipedia.org/wiki/Auguste_and_Louis_Lumi%C3%A8re
"lumiere",
// Jay Laurence Lush - the father of animal breeding - https://en.wikipedia.org/wiki/Jay_Laurence_Lush
"lush",
// Mahavira - Ancient Indian mathematician during 9th century AD who discovered basic algebraic identities - https://en.wikipedia.org/wiki/Mah%C4%81v%C4%ABra_(mathematician)
"mahavira",
@ -738,6 +756,9 @@ export const right = [
// Marie Tharp - American geologist and oceanic cartographer who co-created the first scientific map of the Atlantic Ocean floor. Her work led to the acceptance of the theories of plate tectonics and continental drift. https://en.wikipedia.org/wiki/Marie_Tharp
"tharp",
// Ernest Thiele - Chemical engineer who developed a method for finding number of required trays in a distallation column (the McCabe/Thiele method) and for quantifying the relationship between reaction rates and transport rates in diffusive reactors (the Thiele modulus). - https://en.wikipedia.org/wiki/Ernest_Thiele
"thiele",
// Ken Thompson - co-creator of UNIX and the C programming language - https://en.wikipedia.org/wiki/Ken_Thompson
"thompson",
@ -808,27 +829,139 @@ export const right = [
"ago",// Ledio Ago - Sr. Director of Engineering
"amir",// Kam Amir - Director Business Development
"ansell",// Danny Ansell - Regional Sales
"barrett",// Nick Barrett - Software Engineer
"bieron",// Jan Bieroń - Sr Software Engineer
"bitincka",// Dritan Bitincka - Co-founder and Chief Products Officer
"bitincka",// Ledion Bitincka - Co-founder and Chief Technology Officer
// Ledion Bitincka - Co-founder and Chief Technology Officer
"bondo",// Eric Bond - Principal UI Guy
"chung",// Bill Chung - Sr Site Reliability Engineer
"easley",// Bryce Easley - Sr Software Engineer
"emmy",// Victor Lin - Sr Revenue Marketing Manager
"fones",// Russel Fones. - Sr Frontend Software Engineer
"fritze",// Zena Fritze - Sr Director, Revenue Marketing
"goozy",// Steph Campagna - Sr Events Marketing Manager
"gorney",// Jacob Gorney - Sr Staff Software Engineer
"gilbert",// Austin Gilbert - Sr Software Engineer
"heady",// Hud Heady - Sr Software Engineer
"hoffman",// Paul Hoffman - Sr Assigned Support Engineer
"jeebus",// Louise Tang - CSM Success Ops
"katz",// Michael Katz - Sr Tech Writer
"krueger",// Brian Krueger - Sr Software Engineer
"litras",// Steve Litras - Technical Marketing Evangelist
"maislin",// David Maislin - Principal Solutions Engineer
"marko",// Monika Marko - Project Manager
"marko",// Monika Marko - Sr. Technical Program Manage
"quick",// Tom Quick - Sr. Technical Program Manager
"rivendell",// Will Rivendell - Sr. Software Engineer
"rochette",// Donn Rochette - Principal Software Engineer
"romito",// Nick Romito - Principal Software Engineer
"shanaghy",// Declan Shanaghy - Principal SaaS Engineer
"shanaghy",// Mick Shanaghy - Head of Customer Support & Professional Services
"shanaghy",// Declan Shanaghy - Principal Software Engineer
// Mick Shanaghy - Head of Customer Support & Professional Services
"sharp",// Clint Sharp - Co-founder and Chief Executive Officer
"smith",// Russel Smith - Dir. of Eng - Cribl Cloud
"sobolewski",// Janusz Sobolewski- Principal Software Engineer
"strong",// Abby Strong - VP Marketing
"suara",// Hafiz Suara - Software Engineer
"tankersley",// Nick Tankersley - Product Manager
"vandoren",// Tim VanDoren - Sr Software Engineer
"wilkins",// Jacob Wilkins - Principal SecDevOps Engineer
"goozy",// Steph Campagna - Sr Events Marketing Manager
"emmy",// Victor Lin - Sr Revenue Marketing Manager
"jeebus",// Louise Tang - CSM Success Ops
"strong",// Abby Strong - VP Marketing
"fritze",// Zena Fritze - Sr Director, Revenue Marketing
"wilk",// Łukasz Wilk - Sr Software Engineer
"vandoren",// Anson VanDoren - Sr Software Engineer
// Tim VanDoren - Sr Frontend Engineer
// Trevor VanDoren - Software Engineer
"wilkins",// Jacob Wilkins - Principal DevSecOps Engineer
// Governors of Kansas - https://en.wikipedia.org/wiki/List_of_governors_of_Kansas
"reeder",
"shannon",
"geary",
"walker",
"denver",
"medary",
"robinson",
"carney",
"crawford",
"green",
"harvey",
"osborn",
"anthony",
"john",
"glick",
"martin",
"humphrey",
"lewelling",
"morrill",
"leedy",
"stanley",
"bailey",
"hoch",
"stubbs",
"hodges",
"capper",
"allen",
"davis",
"paulen",
"reed",
"woodring",
"landon",
"huxman",
"ratner",
"schoeppel",
"carlson",
"hagaman",
"arn",
"hall",
"mccuish",
"docking",
"anderson",
"avery",
"docking",
"bennett",
"carlin",
"hayden",
"finney",
"graves",
"sebelius",
"parkinson",
"brownback",
"colyer",
"kelly",
// Governors of Wyoming - https://en.wikipedia.org/wiki/List_of_governors_of_Wyoming
"campbell",
"thayer",
"hoyt",
"hale",
"morgan",
"warren",
"baxter",
"moonlight",
"barber",
"osborne",
"richards",
"chatterton",
"brooks",
"carey",
"kendrick",
"houx",
"ross",
"lucas",
"emerson",
"clark",
"miller",
"smith",
"hunt",
"crane",
"barrett",
"simpson",
"hickey",
"gage",
"hansen",
"hathaway",
"herschler",
"sullivan",
"geringer",
"freudenthal",
"mead",
"gordon"
]
/**
@ -846,5 +979,16 @@ export function generateName(): string {