Skip to content

An up-to-date unofficial wrapper for the waifu.pics API

License

Notifications You must be signed in to change notification settings

Larsundso/waifu.pics

Repository files navigation

Waifu.Pics API Wrapper

An up-to-date unofficial wrapper for the Waifu.pics API 100% API Coverage 100% TypeScript Coverage

Getting started

import WaifuPics from 'waifu-pics-api';

await WaifuPics('neko'); // returns String
await WaifuPics('neko', { nsfw: true }); // returns String
await WaifuPics('neko', { many: true }); // returns Array of Strings
await WaifuPics('neko', { nsfw: true, many: true }); // returns Array of Strings
await WaifuPics('neko', { many: true, exclude: ['https://i.waifu.pics/xxx.jpg'] }); // returns Array of Strings
await WaifuPics('neko', { nsfw: true, many: true, exclude: ['https://i.waifu.pics/xxx.jpg'] }); // returns Array of Strings

Options

nsfw: boolean
many: boolean
exclude: string[] (Array of URLs)
(All options are optional)

Support

If you need Help, please contact me at Discord or open an Issue on GitHub


Contributing

I will happily accept your Pull-Request if it:

  • looks reasonable
  • does not break backwards compatibility

About

An up-to-date unofficial wrapper for the waifu.pics API

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published