{"id":15297293,"url":"https://github.com/nekos-life/nekos-dot-life","last_synced_at":"2025-04-05T19:14:42.142Z","repository":{"id":31002609,"uuid":"126612127","full_name":"Nekos-life/nekos-dot-life","owner":"Nekos-life","description":"Nekos.life wrapper.","archived":false,"fork":false,"pushed_at":"2024-02-23T16:41:52.000Z","size":52,"stargazers_count":166,"open_issues_count":6,"forks_count":33,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-05T19:14:34.394Z","etag":null,"topics":["api-wrapper","javascript","js","neko","nekobot","nekos-life","nekosapi","npm","npm-module"],"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/Nekos-life.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":["TheCyberRonin"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-03-24T15:19:47.000Z","updated_at":"2025-03-07T08:53:51.000Z","dependencies_parsed_at":"2024-06-18T14:00:21.224Z","dependency_job_id":null,"html_url":"https://github.com/Nekos-life/nekos-dot-life","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nekos-life%2Fnekos-dot-life","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nekos-life%2Fnekos-dot-life/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nekos-life%2Fnekos-dot-life/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nekos-life%2Fnekos-dot-life/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nekos-life","download_url":"https://codeload.github.com/Nekos-life/nekos-dot-life/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386266,"owners_count":20930619,"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":["api-wrapper","javascript","js","neko","nekobot","nekos-life","nekosapi","npm","npm-module"],"created_at":"2024-09-30T19:16:27.638Z","updated_at":"2025-04-05T19:14:42.117Z","avatar_url":"https://github.com/Nekos-life.png","language":"JavaScript","funding_links":["https://github.com/sponsors/TheCyberRonin"],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/nekos.life.svg)](https://www.npmjs.com/package/nekos.life)\n[![npm](https://img.shields.io/npm/dt/nekos.life.svg?maxAge=3600)](https://www.npmjs.com/package/nekos.life)\n[![install size](https://packagephobia.now.sh/badge?p=nekos.life)](https://packagephobia.now.sh/result?p=nekos.life)\n\n \n[![NPM](https://nodei.co/npm/nekos.life.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/nekos.life/)\n\n\n# Nekos.life\n\n## Installation\n```\nnpm i -s nekos.life\n```\nOfficial wrapper for nekos.life! Very small install size with no external dependencies.\n\n\n\u003e Please note that NSFW endpoints and images have been removed from the API\n\u003e \n\u003e This is a breaking change, please alter your code to reflect the breaking change.\n\n### Endpoints\n\n| Function | Description |\n| -------- | ----------- |\n| `smug` | Gets a URL of a smug image/gif |\n| `baka` | Gets a URL of a baka image/gif |\n| `tickle` | Gets a URL of a tickle image/gif |\n| `slap` | Gets a URL of a slap image/gif |\n| `poke` | Gets a URL of a poke image/gif |\n| `pat`  | Get a URL of a pat image/gif |\n| `neko` | Get a URL of a neko image |\n| `nekoGif` | Get a URL of a neko gif |\n| `meow` | Get a URL of a cat image/gif |\n| `lizard` | Get a URL of a lizard image |\n| `kiss` | Get a URL of a kiss image/gif |\n| `hug`  | Get a URL of a hug image/gif |\n| `foxGirl` | Get a URL of a fox girl image/gif |\n| `feed` | Get a URL of a feeding image/gif |\n| `cuddle` | Get a URL of a cuddle image/gif |\n| `kemonomimi` | Get a URL of a kemonomimi image/gif |\n| `holo` | Get a URL of a Holo image/gif |\n| `woof` | Get a URL of a dog image/gif |\n| `wallpaper` | Get a URL of a wallpaper |\n| `goose` | Get a URL of a goose image |\n| `gecg` | Get a URL of a gecg (genetically engineered catgirl) image |\n| `avatar` | Get a URL of an avatar image |\n| `waifu` | Get a URL of a waifu image |\n| `why` | Get `text` of a question |\n| `catText`| Get `text` of a cat emoji |\n| `OwOify` | Get OwOified `text` of a string |\n| `eightBall` | Sends the text and replies with a `text` as a response to the magic 8Ball and an image as well.|\n| `fact` | Gets the text and replies with a `text` that is a random fact |\n| `spoiler` | Creates an individual spoiler per letter for Discord |\n\nAll of the endpoints but the ones marked with `text`, except Chat/8Ball/Fact in the description will return JSON: `{ url: \u003ctheURL\u003e}`.\n\n`neko.catText` will return JSON: `{cat: \u003ccatemoji\u003e}`  \n`neko.why` will return JSON `{why: \u003cwhytext\u003e}`  \n`neko.OwOify` will return JSON `{owo: \u003cowoified string\u003e}` \n\n`neko.fact` will return JSON `{fact: \u003cfact string\u003e}`  \n`neko.eightBall` will return JSON `{response: \u003c8Ball response string\u003e, url: \u003cURL to a matching 8Ball image\u003e}`  \n\nAs of now, `OwOify` and `eightBall` are the only ones with query parameters. It requires an object containing the parameter, and the key should be the value. In this case, the key is `text` and the value is whatever you want OwOified.  There is an example in this README.\n`{text: 'Some text you want weebified.}` \n\n## Typings\n\nI added a typings file and will be working to improve it. This allows editors like VSC to use intellisense/autocomplete to suggest functions and help out with parameters and to see what you'll be receiving as a result of function calls.\n\n\n## Examples\n\nAwait/Async example\n```js\nconst client = require('nekos.life');\nconst neko = new client();\n\nasync function test() {\n  console.log(await neko.hug());\n}\n\ntest();\n```\nreturns: \n```js\n{ url: 'https://cdn.nekos.life/hug/hug10050.gif' }\n```\n\nPromise example\n```js\nconst client = require('nekos.life');\nconst neko = new client();\n\nneko.catText().then((catText) =\u003e console.log(catText));\n```\nreturns\n```js\n{ cat: '((≡^⚲͜^≡))' }\n```\n\n`OwOify` example\n```js\nconst client = require('nekos.life');\nconst neko = new client();\n\nasync function work() {\n  let owo = await neko.OwOify({text: 'This lib is really awesome!'});\n  console.log(owo);\n}\n\nwork();\n```\nreturns\n```js\n{ owo: 'This wib is weawwy awesome \u003ew\u003c ' }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekos-life%2Fnekos-dot-life","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekos-life%2Fnekos-dot-life","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekos-life%2Fnekos-dot-life/lists"}