{"id":19834134,"url":"https://github.com/puregarlic/randimal","last_synced_at":"2025-02-28T18:19:51.815Z","repository":{"id":38174679,"uuid":"266877048","full_name":"puregarlic/randimal","owner":"puregarlic","description":"A random animal name generator","archived":false,"fork":false,"pushed_at":"2022-06-10T00:48:37.000Z","size":1070,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T09:49:41.207Z","etag":null,"topics":["animals","deno","esmodule","names","naming","random-generation"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puregarlic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-25T20:46:54.000Z","updated_at":"2020-05-25T22:18:49.000Z","dependencies_parsed_at":"2022-09-02T11:32:56.374Z","dependency_job_id":null,"html_url":"https://github.com/puregarlic/randimal","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puregarlic%2Frandimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puregarlic%2Frandimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puregarlic%2Frandimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puregarlic%2Frandimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puregarlic","download_url":"https://codeload.github.com/puregarlic/randimal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241198975,"owners_count":19926554,"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":["animals","deno","esmodule","names","naming","random-generation"],"created_at":"2024-11-12T12:03:17.621Z","updated_at":"2025-02-28T18:19:51.792Z","avatar_url":"https://github.com/puregarlic.png","language":"JavaScript","readme":"# randimal\n\nA random animal name generator, forked from\n[`random-animal-name-generator`](https://github.com/adzialocha/random-animal-name-generator).\n\n```js\nimport { generateRandomName } from 'randimal'\n\n// In some async context...\nconst name = await generateRandomName()\n\nconsole.log(name) // Geological Gnu\n```\n\n## Differences\n\n`random-animal-name-generator` hasn't been updated in awhile, so here's a list\nof adjustments:\n\n### Async by default\n\nThe word lists are absolutely massive, with previously upwards of 1700 animals\nand nearing 9000 adjectives. Loading these files is less of a problem in Node,\nbut in the browser, we don't want to wait on these files to load with the main\nbundle.\n\nTo combat this, the animals list and adjectives lists are loaded via dynamic\nimport, so you can rely on your bundler's chunking features to load the lists\nwhen their necessary. To support this, **`generateRandomName` is now an async\nfunction.**\n\nIn the future, I may consider a synchronous entry, but for now, I think this is\nan improvement.\n\n### Word lists are pre-optimized\n\nWhenever `random-animal-name-generator` is included in your application, it\nsorts the animal and adjective word lists into new objects keyed by their\nstarting letter. This is deterministic—the data never changes, and so we don't\nneed to rearrange it every time! So, the word lists (moved into the `data`\nfolder and converted to JS modules) are now sorted by first letter by default.\n\n### Other stuff\n\n- Removed (probably) all of the animal names that consist of multiple words. The\n  smushed-together animal names were confusing to read.\n- Removed some made-up animal names... Not really sure where the data came from,\n  but I performed Google searches on a number of them and came up with nothing.\n  So, I took them out.\n- Capitalized all words on both word lists, since they're names.\n\n## Untouched Stuff\n\nWhile the adjectives have been capitalized, there are still quite a number of...\ncreative words in the list. It seems like it came from the Scribblenauts wiki,\nwhich is cool, but it'll take some effort to make sure there are only\ndictionary-acknowledged adjectives in this project.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuregarlic%2Frandimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuregarlic%2Frandimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuregarlic%2Frandimal/lists"}