{"id":15069889,"url":"https://github.com/sefinek/random-cat-img","last_synced_at":"2025-09-07T15:38:35.246Z","repository":{"id":57688359,"uuid":"492400103","full_name":"sefinek/random-cat-img","owner":"sefinek","description":"An npm module that provides random cat images. Fast and reliable. 😻🐾","archived":false,"fork":false,"pushed_at":"2024-08-12T05:50:01.000Z","size":288,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T03:28:17.255Z","etag":null,"topics":["animal","animals","cat","cats","images","node-js","npm-module","npm-package","random","random-cat","random-cat-api","random-cat-image","random-cats","random-kitten","random-kittens"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/random-cat-img","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/sefinek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"sefinek24","patreon":"sefinek","ko_fi":"sefinek","custom":["https://www.paypal.me/sefinek24"]}},"created_at":"2022-05-15T05:54:40.000Z","updated_at":"2024-12-27T20:10:09.000Z","dependencies_parsed_at":"2023-12-15T02:14:45.412Z","dependency_job_id":"ff1ace61-b31e-45e3-b886-833aad7709d2","html_url":"https://github.com/sefinek/random-cat-img","commit_stats":{"total_commits":77,"total_committers":4,"mean_commits":19.25,"dds":0.6363636363636364,"last_synced_commit":"05166370f2dddbe805d0079a68853a794d5b1176"},"previous_names":["sefinek/random-cat-img"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sefinek%2Frandom-cat-img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sefinek%2Frandom-cat-img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sefinek%2Frandom-cat-img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sefinek%2Frandom-cat-img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sefinek","download_url":"https://codeload.github.com/sefinek/random-cat-img/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248260170,"owners_count":21074207,"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":["animal","animals","cat","cats","images","node-js","npm-module","npm-package","random","random-cat","random-cat-api","random-cat-image","random-cats","random-kitten","random-kittens"],"created_at":"2024-09-25T01:45:21.436Z","updated_at":"2025-09-07T15:38:35.223Z","avatar_url":"https://github.com/sefinek.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sefinek24","https://patreon.com/sefinek","https://ko-fi.com/sefinek","https://www.paypal.me/sefinek24"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003e😻 » Random cat images « 😽\u003c/h1\u003e\n    \u003cimg src=\"https://cdn.sefinek.net/images/animals/cat/little-cat-1408118-min.jpg\" alt=\"Random cat\" height=\"290px\"\u003e\n    \u003cdiv\u003ePlease check a more elaborate alternative: \u003ca href=\"https://www.npmjs.com/package/@sefinek/random-animals\" target=\"_blank\"\u003e@sefinek/random-animals\u003c/a\u003e\u003c/div\u003e\n    \u003ch3\u003e\n        » Star the repo if you liked it «\u003cbr\u003e⭐\n    \u003c/h3\u003e\n    \u003ca href=\"https://www.npmjs.com/package/random-cat-img\" target=\"_blank\" title=\"random-cat-img - npm\" style=\"text-decoration:none\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/dt/random-cat-img.svg?maxAge=3600\" alt=\"The number of downloads\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/issues/sefinek/random-cat-img\" alt=\"Issues\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/last-commit/sefinek/random-cat-img\" alt=\"Last commit\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/commit-activity/w/sefinek/random-cat-img\" alt=\"Commit activity\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/languages/code-size/sefinek/random-cat-img\" alt=\"Code size\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\n## 📑 » About\nThis module retrieves random cat images from the [api.sefinek.net](https://api.sefinek.net) API using native module like [https](https://nodejs.org/api/https.html).\nEach image is appropriately compressed.\n\n\n## 😼 » Installation\n```bash\nnpm install random-cat-img\n```\n\n## 🐈 » Usage\n### • Importing\n```js\nconst getRandomCat = require('random-cat-img');\n```\n### • Async/await example\n```js\n(async () =\u003e {\n    const data = await getRandomCat();\n    console.log(data.message); // https://cdn.sefinek.net/images/animals/cat/cat-1362565-min.jpg\n})();\n```\n### • Promise example\n```js\ngetRandomCat().then(data =\u003e console.log(data.message)); // https://cdn.sefinek.net/images/animals/cat/my-cat-1384175-min.jpg\n```\n### • Returned object\n```json\n{\n  \"success\": true,\n  \"status\": 200,\n  \"info\": { \"category\": \"animals\", \"endpoint\": \"cat\" },\n  \"message\": \"https://cdn.sefinek.net/images/animals/cat/neva-masquerade-cats-1375033-min.jpg\"\n}\n```\n\n\n## ✨ » Final information\nOpen a new [Issue](https://github.com/sefinek/random-cat-img/issues/new) if you have any questions or issues related to this module or API.\n\nIf you like this module, please star [the repository](https://github.com/sefinek/random-cat-img).\n\n\n## 📜 » License MIT\n\u003cdiv align=\"center\"\u003e\n    Copyright 2023-2024 © by \u003ca href=\"https://sefinek.net\"\u003eSefinek\u003c/a\u003e. All Rights Reserved.\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsefinek%2Frandom-cat-img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsefinek%2Frandom-cat-img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsefinek%2Frandom-cat-img/lists"}