{"id":15622776,"url":"https://github.com/rjz/codename","last_synced_at":"2025-04-28T16:15:57.393Z","repository":{"id":13771224,"uuid":"16466159","full_name":"rjz/codename","owner":"rjz","description":"Project name generator","archived":false,"fork":false,"pushed_at":"2018-10-25T04:55:41.000Z","size":36,"stargazers_count":22,"open_issues_count":1,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-19T22:06:27.919Z","etag":null,"topics":["codename","javascript"],"latest_commit_sha":null,"homepage":"http://codenames.herokuapp.com/","language":"JavaScript","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/rjz.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-02-02T23:41:22.000Z","updated_at":"2024-05-09T21:16:20.000Z","dependencies_parsed_at":"2022-08-31T08:10:11.292Z","dependency_job_id":null,"html_url":"https://github.com/rjz/codename","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fcodename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fcodename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fcodename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fcodename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjz","download_url":"https://codeload.github.com/rjz/codename/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251342726,"owners_count":21574245,"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":["codename","javascript"],"created_at":"2024-10-03T09:55:10.132Z","updated_at":"2025-04-28T16:15:57.375Z","avatar_url":"https://github.com/rjz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codename generator\n\nGenerates codenames. What for, you ask?\n\n## Installation\n\n    $ npm install -g codename\n\n## Usage\n\nFrom node,\n\n    var codename = require('codename')();\n\n    var filters = ['alliterative', 'random'],\n        lists = ['crayons', 'adjectives', 'cities', 'animals'],\n        myName = codename.generate(filters, lists);\n\n#### Options\n\n`codename.generate` takes two options: `filters` and `lists`.\n\n  * `filters` (`Array[String|Function]`) - describes a set of filters\n    that should be used to reduce each list to a single word\n\n  * `lists` - (`Array[String|Array]`) - the names or contents of the lists\n    to use for selecting names\n\n#### From the CLI,\n\nAll arguments are forwarded from comma-delimited strings:\n\n    $ codename \\\n      --lists=crayons,adjectives,cities,animals \\\n      --filters=alliterative,unique,random\n\n### Writing Filters\n\nEach filter takes a `memo` listing any other words selected followed by\nthe list of words the filter should be applied to. For instance, a filter\nto limit results to words containing the letter `j`:\n\n    var letterJFilter = function (memo, words) {\n      return words.filter(function (w) {\n        return w.toLowerCase().indexOf('j') \u003e -1;\n      });\n    };\n\nAlternatively, a filter may return a *single* word that should be added to\nthe name. These filters are `output` filters, and they should only be used\nat the end of a filter list.\n\nFilters may be contributed to `src/filters` or supplied as function arguments to `codename.generate`.\n\n### Word Lists\n\n  * Adjectives from http://www.keepandshare.com/doc/12894/adjective-list\n  * Animals from http://en.wikipedia.org/wiki/Lists_of_animals\n  * Cities from http://answers.google.com/answers/threadview?id=596822\n  * Crayons from http://www.colourlovers.com/web/blog/2008/04/22/all-120-crayon-names-color-codes-and-fun-facts\n\n### License\n\n  * word lists (c) their respective authors\n  * codename released under the WTFPL\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjz%2Fcodename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjz%2Fcodename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjz%2Fcodename/lists"}