Socket
Socket
Sign inDemoInstall

@consumet/extensions

Package Overview
Dependencies
24
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @consumet/extensions

Nodejs library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.


Version published
Weekly downloads
276
increased by4.55%
Maintainers
2
Install size
4.95 MB
Created
Weekly downloads
 

Readme

Source

consumet.ts

consumet.ts is a Node library which provides high-level APIs to get information about several entertainment mediums like books, movies, comics, anime, manga, etc.

npm (scoped) npm (scoped) Prs are welcome Discord GitHub

Table of Contents

Quick Start

Installation

To use consumet.ts in your project, run:

yarn add @consumet/extensions
# or "npm i @consumet/extensions"

Usage

Example - searching for a book using the libgen provider.

import { BOOKS } from "@consumet/extensions"

// Create a new instance of the Libgen provider
const books = new BOOKS.Libgen();
// Search for a book. In this case, "Pride and Prejudice"
const data = books.search('pride and prejudice').then(data => {
  // print results
  console.log(data)
})

Example - searching for anime using the gogoanime provider.

import { ANIME } from "@consumet/extensions"

// Create a new instance of the Gogoanime provider
const gogoanime = new ANIME.Gogoanime();
// Search for an anime. In this case, "One Piece"
const results = gogoanime.search("One Piece").then(data => {
  // print results
  console.log(data);
})

Do you want to know more? Head to the Getting Started.

Documentation

Ecosystem

Provider Request

Make a new issue with the name of the provider on the title, as well as a link to the provider in the body paragraph.

Contributing

Check out contributing guide to get an overview of consumet.ts development.

Support

You can contact the maintainers of consumet.ts via email, or join the discord server (Recommended).

Contributors ✨

Thanks to the following people for keeping this project alive and thriving.

Credits

  • Anify API - Used as a caching layer for the meta/anilist provider to speed up responses.

License

Licensed under MIT.

Keywords

FAQs

Last updated on 25 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc