Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jan 10, 2024
1 parent bb5d029 commit b36c546
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ npm i animegarden
```

```ts
import { fetchDmhyPage, fetchResources } from 'animegarden'

// Fetch the first page of 動漫花園
const dmhy = await fetchDmhyPage(fetch)
import { fetchResources } from 'animegarden'

// Fetch the first page of Anime Garden mirror site
const resources = await fetchResources(fetch)
Expand Down
5 changes: 1 addition & 4 deletions packages/animegarden/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ npm i animegarden
## Usage

```ts
import { fetchDmhyPage, fetchResources } from 'animegarden'

// Fetch the first page of 動漫花園
const dmhy = await fetchDmhyPage(fetch)
import { fetchResources } from 'animegarden'

// Fetch the first page of Anime Garden mirror site
const resources = await fetchResources(fetch)
Expand Down
9 changes: 9 additions & 0 deletions packages/scraper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ Scraper for [AnimeGarden](https://garden.onekuma.cn/).
npm i @animegarden/scraper
```

## Usage

```ts
import { fetchDmhyPage } from 'animegarden'

// Fetch the first page of 動漫花園
const dmhy = await fetchDmhyPage(fetch)
```

## Credits

+ [動漫花園](https://share.dmhy.org/)
Expand Down

0 comments on commit b36c546

Please sign in to comment.