{"id":15688204,"url":"https://github.com/cdrani/anml","last_synced_at":"2025-03-30T11:45:24.842Z","repository":{"id":57180290,"uuid":"112164290","full_name":"cdrani/anml","owner":"cdrani","description":"scientifc names of animals","archived":false,"fork":false,"pushed_at":"2017-12-19T21:29:54.000Z","size":426,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-05T13:47:44.743Z","etag":null,"topics":["animals","anml","common","library","scientific"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdrani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2017-11-27T07:45:12.000Z","updated_at":"2017-12-14T07:35:41.000Z","dependencies_parsed_at":"2022-09-14T03:31:40.796Z","dependency_job_id":null,"html_url":"https://github.com/cdrani/anml","commit_stats":null,"previous_names":["cdrainxv/anml"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrani%2Fanml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrani%2Fanml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrani%2Fanml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrani%2Fanml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdrani","download_url":"https://codeload.github.com/cdrani/anml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314114,"owners_count":20757457,"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","anml","common","library","scientific"],"created_at":"2024-10-03T17:56:12.655Z","updated_at":"2025-03-30T11:45:24.816Z","avatar_url":"https://github.com/cdrani.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anml\n\n---\n\nThis is a simple library of common names of animal species and their comparative\nscientific names.\n\n## Install\n\n**npm**\n\n\u003e npm install anml --save \n\n**yarn** \n\n\u003eyarn add anml\n\n---\n\n## Usage\n\n**commonjs**\n\n\u003e const anml = require('anml')\n\n**esmodules**\n\n\u003e import anml from 'anml'\n\n## API\n\n**all**: returns object containing entirety of library\n\n**random([option: string])**:\n\n* **random()**: returns either a scientific or common name of a random animal\n  from the library\n* **random('scientific')**: returns a scientific name of a random animal\n* **random('common')**: returns the common name of a random animal\n\n**scientific(common_name: string)**: returns the scientific name counterpart of\ngiven common name \n**common(scientific_name: string)**: returns the common name\ncounterpart of given scientific name\n\n--- \n\n## Examples\n\n**anml.all**\n\n```js\nanml.all\n\n// -\u003e {\n        Aardvark: 'Orycteropus afer',\n        Bear: 'Ursidae',\n        Cat: 'Felis Domesticus',\n         . . . \n        Woodpecker: 'Picidae',\n        Yak: 'Bos Grunniens',\n        Zebra: 'Equus quagga'\n      }\n```\n\n**anml.random()**\n\n```js\nanml.random()\n// -\u003e 'Rangifer Tarandus'\n```\n\n**anml.random('scientific')**\n\n```js\nanml.random('scientific')\n// -\u003e 'Macropus Giganteus'\n```\n\n**anml.random('common')**\n\n```js\nanml.random('common')\n// -\u003e 'Lemur'\n```\n\n**anml.scientific('Lemur')**\n\n```js\nanml.scientific('Lemur')\n// -\u003e 'Lemur Catta'\n```\n\n**anml.common('Setonix brachyurus')**\n\n```js\nanml.common('Setonix brachyurus')\n// -\u003e 'Quokka'\n```\n\n---\n\n## Contributing\nAll pull requests are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdrani%2Fanml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdrani%2Fanml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdrani%2Fanml/lists"}