{"id":20985789,"url":"https://github.com/rodolphocastro/deno_dockernames","last_synced_at":"2026-05-20T14:38:33.592Z","repository":{"id":56678576,"uuid":"274517957","full_name":"rodolphocastro/deno_dockernames","owner":"rodolphocastro","description":"Moby's name generation now in Deno!","archived":false,"fork":false,"pushed_at":"2020-10-25T20:12:17.000Z","size":29,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T21:08:24.843Z","etag":null,"topics":["deno","docker-names"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodolphocastro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-23T22:03:55.000Z","updated_at":"2025-02-12T11:07:04.000Z","dependencies_parsed_at":"2022-08-15T23:10:27.970Z","dependency_job_id":null,"html_url":"https://github.com/rodolphocastro/deno_dockernames","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rodolphocastro/deno_dockernames","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodolphocastro%2Fdeno_dockernames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodolphocastro%2Fdeno_dockernames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodolphocastro%2Fdeno_dockernames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodolphocastro%2Fdeno_dockernames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodolphocastro","download_url":"https://codeload.github.com/rodolphocastro/deno_dockernames/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodolphocastro%2Fdeno_dockernames/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264000581,"owners_count":23542107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","docker-names"],"created_at":"2024-11-19T06:10:13.310Z","updated_at":"2026-05-20T14:38:28.566Z","avatar_url":"https://github.com/rodolphocastro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐋 Docker Names\n\n_Docker_Names_ 🐋 is a port for [Moby's name generation](https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go) for the Deno ecosystem.\n\nWith this module you'll be able to generates names like:\n\n+ ecstatic_rubin\n+ elastic_yonath66\n+ blissful@elgamal\n+ boring\u0026wozniak2\n\n## 💭 Inspiration\n\nThis project is inspired by the awesome folks at [moby/moby](https://github.com/moby/moby) and their idea to pay homage to great scientists and \"hackers\" when creating names for running containers.\n\nThis also builds on my previous port for the .NET Core ecosystem [DockerNames](https://github.com/rodolphocastro/DockerNames).\n\n## ▶ Quickstart\n\nImport this module and you'll have access to two functions:\n\n+ `generateName(retry?: int)`: Generates a name with an adjective, a personality and a `_` separator. If retry is set and greated than 0 it'll be appended\n+ `generateNameCustom(seprator: string, retry?: int)`: Same as `generateName` but allows for a custom separator.\n\n### Sample\n\nThis snippet will allow you to use `deno repl` to play with name generation:\n\n```repl\n\u003e let names;\n// undefined\n\n// Importing our mod into the REPL\n\u003e import(\"./mod.ts\").then(r =\u003e names = r)\n// Promise { \u003cpending\u003e }\n\n\u003e names.generateName()\n// magical_satoshi\n\n\u003e names.generateName(22)\n// flamboyant_goldberg22\n\n\u003e names.generateNameCustom('***')\n// vigorous***bohr\n\u003e names.generateNameCustom('***', 99)\n// objective***jennings99\n```\n\n## 👨‍💻 Command Line\n\nYou can use this module as a Command Line tool by running `deno install -n docker-names .\\cli.ts`, which will create a new alias `docker-names` within your terminal.\n\nThe CLI accepts commands in the following order:\n\n1. `h -h --help | g -g --generate`: The command itself: **H**elp or **G**enerate, defaults to `g`\n2. `retry | separator`: A string or a number. If a number is informed it'll be used as `retry`, else as a `separator`\n3. `separator`: If a `retry` is set this can be used to pick a `string` as separator\n\nThe following are all valid inputs for the CLI:\n\n```repl\ndeno run .\\cli.ts ... results in something_somegion\ndeno run .\\cli.ts g \"@\" ... results in something@someone\ndeno run .\\cli.ts g 10 ... results in something_someone10\ndeno run .\\cli.ts g 20 \"@\" ... results in something@someone20\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodolphocastro%2Fdeno_dockernames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodolphocastro%2Fdeno_dockernames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodolphocastro%2Fdeno_dockernames/lists"}