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.
Thomas A. Christensen II
24dfd282a2
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> |
2 years ago | |
---|---|---|
.github/workflows | 3 years ago | |
src | 2 years ago | |
.gitignore | 3 years ago | |
.nvmrc | 3 years ago | |
README.md | 3 years ago | |
jest.config.js | 3 years ago | |
package-lock.json | 2 years ago | |
package.json | 2 years ago | |
tsconfig.json | 3 years ago |
README.md
Docker Names
An implementation of docker-names in TypeScript. Forked from https://github.com/criblio/docker-names.
Changes
- Added more names of scientists related to
- chemical engineering
- animal breeding
- rumen science
- among others...
- Changed the delimiter to an underscore when adding extra data (date or number)
- Added an identifier that starts with a date (useful where identifiers have to be sorted chronologically).
Usage
Maybe this stuff will still work? 🤷 I just replaced everything with my name and code, but I personally transpile to JavaScript rather than use TypeScript directly.
Generate Name
import {generateName} from '@millironx/docker-names'
const dockerName = generateName();
console.log(dockerName);
//Outputs goofy-panini
Generate Name With Number
import {generateNameWithNumber} from '@millironx/docker-names'
const dockerName = generateNameWithNumber();
console.log(dockerName);
//Outputs goofy-panini_4
Generate Name With Date
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.
import {left,right} from '@millironx/docker-names'
console.log(left);
//Outputs [admiring,adoring, etc...]
console.log(right)
//Outputs [albattani,allen, etc...]