Compare commits

...

74 Commits
v1.0.7 ... main

Author SHA1 Message Date
Thomas A. Christensen II d7b44e949d
Bump version again
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Thomas A. Christensen II 38799ef3a3
Update publishing workflow
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Thomas A. Christensen II 3e64306429
Bump version number
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Thomas A. Christensen II 5c0b7046b7
Bump version number
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Thomas A. Christensen II 8822e5ee5f
Add package generation workflow
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Thomas A. Christensen II 1495857146
Add config to allow publishing to Github packages
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Thomas A. Christensen II 47014198e4
Change package scope to `MillironX`
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Thomas A. Christensen II edd49b855d
Update package-lock to Node 16
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Thomas A. Christensen II 24dfd282a2
Fix broken tests
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Thomas A. Christensen II d94d76c840
Apply Prettier formatting to tests
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Thomas A. Christensen II d66bab11a7
Merge remote-tracking branch 'upstream/main' 2 years ago
nickbarrett645 c1f13e0218
Merge pull request #37 from wr-cribl/add_wr_name
added wr name to list
2 years ago
Will Rivendell eda93b34a4 added wr name to list 2 years ago
nickbarrett645 8b358fd8ca
Merge pull request #36 from nickbarrett645/main
Fixed missing comma
2 years ago
nickbarrett645 6a66be24f7
Merge branch 'main' into main 2 years ago
Nick Barrett 2eb7718bff Fixed comma 2 years ago
nickbarrett645 f2c7997c7e
Merge pull request #35 from rfones/main
adds fones
2 years ago
Russel Fones b91062bab9
adds fones 2 years ago
nickbarrett645 449235aceb
Added name to list (#34) 2 years ago
Nick Barrett 88f4e3cf4e Fixed name 2 years ago
Nick Barrett 4c3ca7c896 Added name to list 2 years ago
Thomas A. Christensen II c3fb34c758
Merge pull request #3 from criblio/main 2 years ago
Jacob Gorney a3fc6c69e9
Added Jacob Gorney to family names list (#33)
Co-authored-by: Jacob Gorney <jgorney@cribl.io>
2 years ago
Thomas A. Christensen II d5f6b82af2 Merge branch 'criblio-main' 2 years ago
Thomas A. Christensen II fca8ecb995
Merge branch 'main' of https://github.com/criblio/docker-names into criblio-main
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Eric Bond f1f173a7ed Update index.ts (#32)
Time for bondo to join the fun
2 years ago
Declan Shanaghy 3a33ac2b71 1.1.4 2 years ago
Declan Shanaghy fb9e881be2 1.1.3 2 years ago
declanshanaghy 262d463708
Add Tom & Russ. Fix some typos (#30)
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2 years ago
Declan Shanaghy 35fd621ab4 1.1.2 2 years ago
Declan Shanaghy d370e05cd7 1.1.1 2 years ago
declanshanaghy 184bf3ded2 1.1.0 (#27) 2 years ago
Eric Bond f8c98e61ef
Update index.ts (#32)
Time for bondo to join the fun
2 years ago
Declan Shanaghy 1dc59a3467 1.1.4 3 years ago
declanshanaghy 3359230d2d
Remove jang (#31) 3 years ago
Declan Shanaghy b0842f6918 1.1.3 3 years ago
declanshanaghy f3b3f2c2fe
Add Tom & Russ. Fix some typos (#30) 3 years ago
Declan Shanaghy e65832743a 1.1.2 3 years ago
declanshanaghy 2a04b54cea
Remove more verbs we don't want (#29) 3 years ago
Declan Shanaghy d6716a40fd 1.1.1 3 years ago
Declan Shanaghy 27c1fa29e3 Merge branch 'main' of github.com:criblio/docker-names into main 3 years ago
declanshanaghy 60d16f3833
Sanitize names2 (#28)
* 1.1.0

* Removing more negatives
3 years ago
Declan Shanaghy 831b2cea50 Merge branch 'main' of github.com:criblio/docker-names into main 3 years ago
declanshanaghy 2f35d4b463
1.1.0 (#27) 3 years ago
Thomas A. Christensen II 2b91472424
Update generation examples 3 years ago
Thomas A. Christensen II 1678367efb
Change the delimiter to an underscore when adding extra data (date or number) 3 years ago
Thomas A. Christensen II 95d7587408 Merge branch 'criblio-main' 3 years ago
Thomas A. Christensen II 40711973af
Merge branch 'main' of https://github.com/criblio/docker-names into criblio-main 3 years ago
Declan Shanaghy cc1a1070c3 1.1.0 3 years ago
declanshanaghy b2f9b55864
Evening out the odds (#25) 3 years ago
Brian Krueger 625f213241
Added family name krueger (#26) 3 years ago
Hafiz Suara de89788c49
Update index.ts (#23)
- Reorder family names to be alphabetical order
- Added `suara` family name

Co-authored-by: declanshanaghy <dshanaghy@splunk.com>
3 years ago
Señor Agosto a48c3c3811
Adding 'Austin Gilbert' to list of Cribl employees (#24) 3 years ago
Bill Chung 8f58fde599
add family name - chung (#22)
Co-authored-by: Bill Chung <bchung@cribl.io>
Co-authored-by: declanshanaghy <dshanaghy@splunk.com>
3 years ago
Jan Bieroń b7d32bf2d3
Bieroń++ (#21)
* Bieroń++

* Poland stronk

* More, the merrier

Co-authored-by: declanshanaghy <dshanaghy@splunk.com>
3 years ago
Trevor VanDoren ae98b64341
Add the second VanDoren (#20)
* added the second VanDoren

Co-authored-by: Trevor VanDoren <trevor.vandoren@cribl.io>
3 years ago
declanshanaghy 6500a1ee57
Improving build and release (#19) 3 years ago
MillironX 46ef3d4dd5
Add governors of Wyoming 3 years ago
MillironX 7f3d0c0235
Add governors of Kansas 3 years ago
MillironX e877672b65
Added Stefan Karpinski 3 years ago
MillironX 5359911c84
Personalize README.md 3 years ago
MillironX 3bd03f0d99
Add date optional function 3 years ago
MillironX 29c2344622
Change dash back to underscore 3 years ago
MillironX fa5c207540
Add Ernest Thiele 3 years ago
MillironX 7ecd696db4
Add Octave Levenspiel 3 years ago
MillironX 56d791884e
Add Robert Hungate 3 years ago
MillironX 33dc59d6c9
Add Baxter Black 3 years ago
MillironX 9048df37aa
Add Charles Henderson 3 years ago
MillironX fb1432c303
Add Jay Lush 3 years ago
TheHoff10 c0a667cef3
Add Family Name (#18)
Added Hoffman
3 years ago
Jacob Wilkins 190c01e05a
removing one, adding one. (#17)
Co-authored-by: Jacob Wilkins <jwilkins@cribl.io>
3 years ago
weeb-edu a4b0786c2e
Update index.ts (#16)
Added hircine, caprine, ruminant, etc
3 years ago
Bryce Easley f27b11f1f0
Merge pull request #15 from criblio/release/ds/1.0.7
Release 1.0.7
3 years ago
Declan Shanaghy d234f127a4 Release 1.0.7 3 years ago

@ -0,0 +1,21 @@
name: Build and Publish
on:
push:
tags:
- "v[0-9]+.*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com
scope: "@MillironX"
- run: npm install
- run: npm test
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2
.gitignore vendored

@ -1,4 +1,4 @@
node_modules
/lib
/coverage
.idea
.idea

@ -0,0 +1 @@
14.15.1

@ -1,13 +1,25 @@
# Docker Names
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'
console.log(left);
@ -43,6 +66,4 @@ console.log(left);
console.log(right)
//Outputs [albattani,allen, etc...]
```
```

8241
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
{
"name": "@criblinc/docker-names",
"version": "1.0.5",
"name": "@millironx/docker-names",
"version": "1.1.8",
"description": "Fork of docker names for javascript",
"files": [
"lib/**/*"
@ -9,15 +9,17 @@
"types": "lib/index.d.ts",
"scripts": {
"build": "tsc",
"release": "np",
"test": "jest",
"test:coverage": "jest --coverage"
},
"repository": {
"type": "git",
"url": "git+https://github.com/criblio/docker-names.git"
"url": "git+https://github.com/MillironX/docker-names.git"
},
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com"
},
"keywords": [
"docker",
@ -27,15 +29,16 @@
"docker-names",
"docker-name"
],
"author": "Cribl",
"author": "MillironX",
"license": "ISC",
"bugs": {
"url": "https://github.com/criblio/docker-names/issues"
"url": "https://github.com/MillironX/docker-names/issues"
},
"homepage": "https://github.com/criblio/docker-names#readme",
"homepage": "https://github.com/MillironX/docker-names#readme",
"devDependencies": {
"@types/jest": "^26.0.22",
"jest": "^26.6.3",
"np": "^7.5.0",
"ts-jest": "^26.5.5",
"typescript": "^4.2.4"
}

@ -1,21 +1,21 @@
import {generateName, generateNameWithNumber, left, right} from "../index";
import { generateName, generateNameWithNumber, left, right } from "../index";
describe('Docker names', () => {
test('should generate a random name', () => {
describe("Docker names", () => {
test("should generate a random name", () => {
const name = generateName();
const parts = name.split('-');
const parts = name.split("-");
expect(parts).toHaveLength(2);
expect(left).toContain(parts[0]);
expect(right).toContain(parts[1]);
})
});
test("should generate a random name with a number", () => {
const nameWithNumber = generateNameWithNumber();
const parts = nameWithNumber.split('-');
expect(parts).toHaveLength(3);
expect(left).toContain(parts[0]);
expect(right).toContain(parts[1]);
expect(parseInt(parts[2])).toBeGreaterThan(0);
})
})
const parts = nameWithNumber.split("_");
expect(parts).toHaveLength(2);
const nameparts = parts[0].split("-");
expect(left).toContain(nameparts[0]);
expect(right).toContain(nameparts[1]);
expect(parseInt(parts[1])).toBeGreaterThan(0);
});
});

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save