nekolife
v1.0.6
Published
A wrapper around nekos.life API.
Downloads
2
Readme
NekoLife
Nekolife is a wrapper around nekos.life API.
Base Url
https://nekos.life/api/v2
Installation
## Npm
npm install nekolife
# Yarn
yarn add nekolife
Example
const { Neko } = require("nekolife");
const neko = new Neko();
/**
* Example Sfw
*/
neko.sfw("hug").then(x => {
console.log(x); // Returns a URL
});
neko.sfw("waifu").then(x => {
console.log(x); // Returns a URL
});
/**
* Example Nsfw
*/
neko.nsfw("hentai").then(x => {
console.log(x); // Returns a URL
});
neko.nsfw("neko").then(x => {
console.log(x); // Returns a URL
});
/**
* Example Text
*/
neko.text("8ball", { url: true }).then(x => {
console.log(x) // Returns a URL
});
neko.text("OwOify", { text: "I love OwO"}).then(x => {
console.log(`8ball (Got no ball) : ${x}`); // Returns a Text
});
neko.text("spoiler", { text: "Hey I'm very pog"}).then(x => {
console.log(x); // Returns a Text
});
neko.text("8ball").then(x => {
console.log(x); // Returns a Text
});
neko.text("catText").then(x => {
console.log(x); // Returns a Emoticon
})
Documentation
There are no docs for this package but we sure going to bring something for reference.
Support Server
You can join our discord server:
https://discord.gg/WRWzs9UPnf