Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thegoldenpro/aghpb.ts
Anime girls holding programming books API wrapper for 🟦 TypeScript.
https://github.com/thegoldenpro/aghpb.ts
aghpb anime anime-girls anime-girls-holding-programming-books
Last synced: about 1 month ago
JSON representation
Anime girls holding programming books API wrapper for 🟦 TypeScript.
- Host: GitHub
- URL: https://github.com/thegoldenpro/aghpb.ts
- Owner: THEGOLDENPRO
- License: mit
- Created: 2023-08-03T23:07:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-08T19:24:48.000Z (6 months ago)
- Last Synced: 2024-10-13T04:29:44.051Z (2 months ago)
- Topics: aghpb, anime, anime-girls, anime-girls-holding-programming-books
- Language: TypeScript
- Homepage: https://npmjs.com/package/aghpb
- Size: 6.03 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🟦 aghpb.ts 📚
Typescript API wrapper for the anime girls holding programming books [API](https://api.devgoldy.xyz/aghpb/v1/docs)[![npm](https://img.shields.io/npm/v/aghpb?style=flat)](https://www.npmjs.com/package/aghpb)
> [!Note]
>
> This is part of my [aghpb api](https://github.com/THEGOLDENPRO/aghpb_api) wrapper challenge where I attempt to write an api wrapper in every language possible. So yes expect spaghetti code as it will be my first time writing in these languages. Although I'm 100% open to improvements and corrections so feel free to contribute anything.
> **[Other languages I've done](https://github.com/THEGOLDENPRO/aghpb_api#-api-wrappers)**## Install
```typescript
npm install aghpb
```
The NPM package can be located [**here**](https://www.npmjs.com/package/aghpb).## Examples
This is how you may retrieve a random anime girl holding a programming book:
```typescript
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:
```typescript
client.random("typescript");
```
This is how you may retrieve a list of available categories:
```typescript
import { Client } from "aghpb";const client = new Client();
client.categories().then(
(categories) => {
categories.forEach((category) => {
console.log(category);
})
}
);
```Made using my API at 👉 https://api.devgoldy.xyz/aghpb/v1/