1.1.1 • Published 3 years ago

kawaii-api v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

kawaii api

The kawaii api from Error44 as npm package

Download

# npm
npm i kawaii-api

# yarn
yarn add kawaii-api

Examples

const { Kawaii } = require("kawaii-api"); // or import { Kawaii } from 'kawaii-api';

const api = new Kawaii("anonymous"); // you can't use stats with this token

api.endpoints("gif").then(res => {
    console.log(res);
});

api.get("gif", "kiss").then(res => {
    console.log(res)
})

api.random("gif").then(res => {
    console.log(res)
})

api.gif("kiss").then(res => {
    console.log(res)
})

api.stats().then(res => {
    const stats = res
})

// or async/await

const example = async() => {

    await api.endpoints("gif")

    await api.get("gif", "kiss")

    await api.random("gif")

    await api.gif("kiss")

    const stats = await api.stats()
}

All Stats

stats.endpoints
stats.all
stats.failed
stats.history
stats.most_endpoint
stats.most_endpoints
stats.most_type
stats.most_types
1.1.1

3 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago