Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nekos.life

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nekos.life

JS wrapper for https://nekos.life

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
706
decreased by-22.93%
Maintainers
1
Weekly downloads
 
Created
Source

npm npm install size

NPM

Nekos.life

Installation

npm i -s nekos.life

Official wrapper for nekos.life! Very small install size with no external dependencies.

Please note that NSFW endpoints and images have been removed from the API

This is a breaking change, please alter your code to reflect the breaking change.

Endpoints

FunctionDescription
smugGets a URL of a smug image/gif
bakaGets a URL of a baka image/gif
tickleGets a URL of a tickle image/gif
slapGets a URL of a slap image/gif
pokeGets a URL of a poke image/gif
patGet a URL of a pat image/gif
nekoGet a URL of a neko image
nekoGifGet a URL of a neko gif
meowGet a URL of a cat image/gif
lizardGet a URL of a lizard image
kissGet a URL of a kiss image/gif
hugGet a URL of a hug image/gif
foxGirlGet a URL of a fox girl image/gif
feedGet a URL of a feeding image/gif
cuddleGet a URL of a cuddle image/gif
kemonomimiGet a URL of a kemonomimi image/gif
holoGet a URL of a Holo image/gif
woofGet a URL of a dog image/gif
wallpaperGet a URL of a wallpaper
gooseGet a URL of a goose image
gecgGet a URL of a gecg (genetically engineered catgirl) image
avatarGet a URL of an avatar image
waifuGet a URL of a waifu image
whyGet text of a question
catTextGet text of a cat emoji
OwOifyGet OwOified text of a string
eightBallSends the text and replies with a text as a response to the magic 8Ball and an image as well.
factGets the text and replies with a text that is a random fact
spoilerCreates an individual spoiler per letter for Discord

All of the endpoints but the ones marked with text, except Chat/8Ball/Fact in the description will return JSON: { url: <theURL>}.

neko.catText will return JSON: {cat: <catemoji>}
neko.why will return JSON {why: <whytext>}
neko.OwOify will return JSON {owo: <owoified string>}

neko.fact will return JSON {fact: <fact string>}
neko.eightBall will return JSON {response: <8Ball response string>, url: <URL to a matching 8Ball image>}

As 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. {text: 'Some text you want weebified.}

Typings

I 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.

Examples

Await/Async example

const client = require('nekos.life');
const neko = new client();

async function test() {
  console.log(await neko.hug());
}

test();

returns:

{ url: 'https://cdn.nekos.life/hug/hug10050.gif' }

Promise example

const client = require('nekos.life');
const neko = new client();

neko.catText().then((catText) => console.log(catText));

returns

{ cat: '((≡^⚲͜^≡))' }

OwOify example

const client = require('nekos.life');
const neko = new client();

async function work() {
  let owo = await neko.OwOify({text: 'This lib is really awesome!'});
  console.log(owo);
}

work();

returns

{ owo: 'This wib is weawwy awesome >w< ' }

Keywords

FAQs

Package last updated on 01 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc