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

  • 1.0.5
  • Source
  • npm
  • Socket score

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

npm npm

NPM

Nekos.life

Installation

npm i -s nekos.life

This wrapper has no external dependencies ;).
The wrapper functions all return promises, so you can use traditional promises or await/async.

FunctionDescription
getSFWTickleGets a URL of a tickle image/gif
getSFWSlapGets a URL of a slap image/gif
getSFWPokeGets a URL of a poke image/gif
getSFWPatGet a URL of a pat image/gif
getSFWNekoGet a URL of a neko image/gif
getSFWMeowGet a URL of a cat image/gif
getSFWLizardGet a URL of a lizard image/gif
getSFWKissGet a URL of a kiss image/gif
getSFWHugGet a URL of a hug image/gif
getSFWFoxGirlGet a URL of a fox girl image/gif
getSFWFeedGet a URL of a feeding image/gif
getSFWCuddleGet a URL of a cuddle image/gif
getSFWWhyGet text of a question
getSFWCatTextGet text of a cat emoji
getSFWOwOifyGet OwOified text of a string
getSFWChatSends the text and replies with a text as a response
getSFW8BallSends the text and replies with a text as a response to the magic 8Ball and an image as well.
getSFWFactGets the text and replies with a text that is a random fact
getNSFWRandomHentaiGifGet a URL of hentai gif
getNSFWPussyGet a NSFW URL of a pussy image/gif
getNSFWNekoGifGet a NSFW URL of a neko gif
getNSFWNekoGet a NSFW URL of a neko image
getNSFWLesbianGet a NSFW URL of a lesbian image/gif
getNSFWKuniGet a NSFW URL of a kuni image/gif
getNSFWCumslutsGet a NSFW URL of a cumslut image/gif
getNSFWClassicGets a NSFW URL of the classic endpoint image/gif
getNSFWBoobsGets a NSFW URL of boobs image/gif
getNSFWBjGets a NSFW URL of bj image/gif
getNSFWAnalGets a NSFW URL of anal image/gif

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

getSFWCatText will return JSON: {cat: <catemoji>}
getSFWWhy will return JSON {why: <whytext>}
getSFWOwOify will return JSON {owo: <owoified string>}

getSFWFact will return JSON {response: <fact string>} getSF8Ball will return JSON {response: <8Ball response string>, url: <URL to a matching 8Ball image>} getSFWChat will return JSON {response: <reply string>}, this one is special and will have an example :)

As of now, getSFWOwOify is the only function that takes in querystring 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.}

Examples

Await/Async example

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

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

test();

returns:

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

Promise example

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

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

returns

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

getSFWOwOify example

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

work();

returns

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

getSFWChat example

async function work() {
  let owo = await neko.getSFWChat({text: "What's up?"});
  console.log(owo);
}

work();

returns

{ response: 'Not much.' }

Try adding owo: "true" after the text prop ;). It would look like this {text: "What's up?", owo: "true"}
getSFW8Ball is prety much the exact same thing, except you can't use owo with it!

Keywords

FAQs

Package last updated on 01 May 2018

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