3.1.3 • Published 2 years ago

yiff v3.1.3

Weekly downloads
108
License
MIT
Repository
github
Last release
2 years ago

yiff by Lio

NPM

VERSION 3 IS A BREAKING CHANGE

NodeJS V14 or higher is required!

*Do not update from v2 if your current code is still based on v2*

If you need Support or want more Information, join my discord server

⭐️ Supported APIs

Yiff, by default, uses the main Killswitch Instance as a Proxy for any Requests.

Usage

import Yiff from "yiff";

// every object in the config is optional
let config = {
  useragent: `Project/version (website)`;
    killswitch: {
        enabled: true
        instance: "https://yiff.click"
    }
    apikey: {
        sheri: "<Your Token>";
        yiffrest: "<Your Token>";
        e621: "<Your Token>";
        e926: "<Your Token>";
    }
}
const yiff = new Yiff(config);

let tags = "werewolf male/male"
let limit = 1
// Basically:

yiff.e621(tags, limit).then((r) => {console.log("e621", r)})
// => Unfiltered E621 Response

yiff.e926(tags, limit).then((r) => {console.log("e926", r)})
// => Unfiltered E926 Response

yiff.yiffy('animals', 'birb').then((r) => {console.log("yiffy", r)})
// => Unfiltered yiff.rest Response

yiff.floofy().then((r) => {console.log("floofy", r)})
// => Unfiltered api.floofy.dev Response

yiff.sheri('paws').then((r) => {console.log("sheri", r)})
// => Unfiltered sheri.bot Response

yiff.shibe("shibes", 2).then((r) => {console.log("shibes", r)})
// => Unfiltered shibe.online Response

yiff.fox().then((r) => {console.log("fox", r)})
// => Unfiltered randomfox.ca Response

yiff.thaldrin("categories/foxes").then((r) => {console.log("thaldrin", r)})
// => Unfiltered thaldr.in Response

❓ FAQ

Q: Will you add other APIs as well?\ A: Depends on if they're either free or I get an all-access token, as well as if there's proper documentation for the API

Contributing & Issues

Feel free to make a Pull request and fix some things, otherwise just open a Issue or join my discord server and let me know what you want added!

3.1.3

2 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.6

3 years ago

3.0.5

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

2.0.3

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago