Steven-Debande / neko-love.js

Official module of the Neko-Love API
MIT License
5 stars 1 forks source link

npm npm npm JavaScript Style Guide install size wercker status

NPM

wercker status

Neko-love.JS

Official module of the Neko-Love API

Installation

npm install neko-love.js --save

Example

Async/Await example

const Neko = require('neko-love.js');

async function test() {
  console.log(await Neko("neko")); // https://neko-love.xyz/v1/neko/neko-love_314.png
}
test();

async function test() {
  console.log(await Neko("endpoint")); // Returns the list of endpoints
}
test();

Promise example

const Neko = require("neko-love.js");

Neko("neko").then((res) => {
    console.log(res); // https://neko-love.xyz/v1/neko/neko-love_314.png
});

Neko("endpoint").then((res) => {
    console.log(res); // Returns the list of endpoints
});

Endpoints

SFW

Function Description
neko Get a URL of a neko image
slap Gets a URL of a slap image/gif
pat Get a URL of a pat image/gif
kiss Get a URL of a kiss image/gif
hug Get a URL of a hug image/gif
kitsune Get a URL of a fox girl image
pat Get a URL of a pat image/gif
cry Get a URL of a cry image/gif
waifu Get a URL of a waifu image
smug Get a URL of a smug image
punch Get a URL of a punch image

NSFW

Function Description
nekolewd Get a URL of a neko hentai image

Full Neko Love API documentation

Links