@my-fuyuumi/fuyuumi-apijs
v1.0.0
Published
Lightweight JavaScript wrapper for the https://my.fuyuumi/ API
Downloads
4
Readme
Installation
npm install @my-fuyuumi/fuyuumi-api.js --save
Example
Async/Await example
const Neko = require('@my-fuyuumi/fuyuumi-api.js');
async function test() {
console.log(await Neko("neko"));
}
test();
async function test() {
console.log(await Neko("endpoint")); // Returns the list of endpoints
}
test();
Promise example
const Neko = require("@my-fuyuumi/fuyuumi-api.js");
Neko("neko").then((res) => {
console.log(res);
});
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 |
Full Neko Love API documentation