1.0.15 • Published 3 years ago

animu-desu v1.0.15

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

animu-desu

Unofficial API for gogoanime. Fetch anime data and get links for the episodes of the shows you want to watch.

npm version

Install

npm i animu-desu

or

yarn add animu-desu

Usage

You can import only the function(s) you need, or the whole package.

With ES Module syntax

import { getPopular } from "animu-desu";

getPopular(1)...

or

import AnimuGetter from "animu-desu";

AnimuGetter.getPopular(1)...

With CommonJS syntax

const AnimuGetter = require("animu-desu");

AnimuGetter.getPopular(1)...

Get the popular animes

import { getPopular } from "animu-desu";

//getting the popular animes from page 1.
getPopular(1)
  .then((data) => console.log(data))
  .catch((err) => console.log(err));

Get the list of genres

import { getGenreList } from "animu-desu";

getGenreList()
  .then((data) => console.log(data))
  .catch((err) => console.log(err));

Search anime by genre

import { searchByGenre } from "animu-desu";

//getting the action animes from page 1.
searchByGenre("action", 1)
  .then((data) => console.log(data))
  .catch((err) => console.log(err));

Search anime by query

import AnimuGetter from "animu-desu";

//getting the animes that match with "One piece" from page 1.
import { search } from "animu-desu"

search("One piece", 1)
  .then((data) => console.log(data))
  .catch((err) => console.log(err));

Search recently added anime episodes

import { getRecentlyAdded } from "animu-desu";

//getting the recently added animes from page 1.
getRecentlyAdded(1)
  .then((data) => console.log(data))
  .catch((err) => console.log(err));

Get details of an anime

import { getAnimeDetails } from "animu-desu";

//getting the details of the anime with the ID "one-piece".
getAnimeDetails("one-piece")
  .then((data) => console.log(data))
  .catch((err) => console.log(err));

Get links for an episode of an anime

import { getEpisodeLinks } from "animu-desu";

//getting the links for the episode 959 of the anime with the ID "one-piece".
getEpisodeLinks("one-piece", 959)
  .then((data) => console.log(data))
  .catch((err) => console.log(err));

NOTE

This package will only work in a node environment, as it uses cheerio to do web scraping.

License

[MIT](https://github.com/system32uwu/animu-desu/blob/main/LICENSE.md)

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago