1.0.5 β€’ Published 9 months ago

aghpb v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

🟦 aghpb.ts πŸ“š

Typescript API wrapper for the anime girls holding programming books API

npm

BTW this is my first ever typescript code, so please don't crucify me harshly πŸ₯ΊπŸ™

Install

npm install aghpb

The NPM package can be located here.

Examples

This is how you may retrieve a random anime girl holding a programming book:

import * as fs from "fs";
import { Client } from "aghpb";

const client = new Client();

client.random().then(
    (book) => {
        console.log(`Name: ${book.name}`);
        console.log(`Category: ${book.category}`);
        console.log(`Date Added: ${book.dateAdded}`);

        const buffer = Buffer.from(book.image)

        fs.createWriteStream("./anime_girl.png").write(
            buffer
        );
    }
);

You can also retrieve specific categories of anime girls holding programming books like so:

client.random("typescript");

This is how you may retrieve a list of available categories:

import { Client } from "aghpb";

let client = new Client();

client.categories().then(
    (categories) => {
        categories.forEach((category) => {
            console.log(category);
        })
    }
);

Made using my API at πŸ‘‰ https://api.devgoldy.xyz/aghpb/v1/

1.0.5

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago