Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.
/ Nekos.deno Public archive

Simple API wrapper for the Nekos.life api in Deno.

License

Notifications You must be signed in to change notification settings

gaycookie/Nekos.deno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nekos[dot]deno

GitHub ‎‎ ‎‎ ‎‎ Matrix
This is a simple wrapper for the Nekos.life API, written for use with Deno.

How to use

/* Import the module */
import { Nekos, RandomName } from "https://deno.land/x/nekos_deno@1.3.21/mod.ts";

/* This will fetch a random Neko and log it in the console. */
Nekos.random(RandomName.NEKO).then(console.log);

Supported Endpoints

The wrapper currently supports the following endpoints:

Non image endpoints

  • /api/v2/cat
  • /api/v2/8ball
  • /api/v2/fact
  • /api/v2/name
  • /api/v2/owoify (takes a text argument)
  • /api/v2/why

Image endpoints

  • /api/v2/img/avatar
  • /api/v2/img/cuddle
  • /api/v2/img/feed
  • /api/v2/img/fox_girl
  • /api/v2/img/gasm
  • /api/v2/img/gecg
  • /api/v2/img/goose
  • /api/v2/img/hug
  • /api/v2/img/kiss
  • /api/v2/img/lewd
  • /api/v2/img/lizard
  • /api/v2/img/meow
  • /api/v2/img/ngif
  • /api/v2/img/neko
  • /api/v2/img/pat
  • /api/v2/img/slap
  • /api/v2/img/smug
  • /api/v2/img/spank
  • /api/v2/img/tickle
  • /api/v2/img/wallpaper
  • /api/v2/img/waifu
  • /api/v2/img/woof

Disclaimer

This wrapper provides access to the Nekos.life API, which is not developed or maintained by me. The API and its endpoints may stop working or change at any time, and the wrapper may not be updated to reflect these changes. Use of the wrapper and the API is at the user's own risk.

For more information about the API and its endpoints see the list of endpoints at /api/v2/endpoints.