animegarden
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

AnimeGarden

version AnimeGarden CI

API client and utils for AnimeGarden.

Installation

npm i animegarden

Usage

import { fetchResources } from 'animegarden'

// Fetch the first page of Anime Garden mirror site
const resources = await fetchResources(fetch)

// Fetch all the resources which match some filter conditions
const sakurato = await fetchResources(fetch, { count: -1, fansub: 619 })

Assume your environment has built-in Fetch. If not you can use undici or ofetch.

You can check more filter conditions FilterOptions and usage examples in ./scripts/ directory.

Credits

License

MIT License © 2023 XLor

Package Sidebar

Install

npm i animegarden

Weekly Downloads

26

Version

0.1.1

License

MIT

Unpacked Size

119 kB

Total Files

8

Last publish

Collaborators

  • yjl9903