@consumet/extensions

中文文档
1.8.8发布于 2026/01/21MITTypeScriptCommonJS近 30 天下载 1.3万

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.

原始使用文档
文档目录12 节
  1. Table of Contents
  2. Quick Start
  3. Installation
  4. Usage
  5. Documentation
  6. Ecosystem
  7. Provider Request
  8. Contributing
  9. Support
  10. Contributors ✨
  11. Credits
  12. License

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 GPL-3.0.

版本与发布记录

@consumet/extensions 共发布 75 个版本,首次发布于 2022/06/20;过去 12 个月发布了 7 个版本。

版本发布日期距今
1.8.8latest2026/01/219 个月前
1.8.72025/11/2611 个月前
1.8.62025/11/2511 个月前
1.8.52025/11/2511 个月前
1.8.42025/11/2511 个月前
1.8.32025/11/2511 个月前

关于 @consumet/extensions 的常见问题

@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.

如何安装 @consumet/extensions?

在项目目录运行 npm install @consumet/extensions,或使用 pnpm add / yarn add / bun add。

@consumet/extensions 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@consumet/extensions 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@consumet/extensions 可以商用吗?

@consumet/extensions 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@consumet/extensions 的下载量有多少?

根据 npm 官方下载统计,@consumet/extensions 在 2026/10/11 – 2026/11/09 这 30 天内被下载 12,792 次,日均约 426 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@consumet/extensions 还在维护吗?

最新版本 1.8.8 发布于 2026/01/21(9 个月前);至今共发布 75 个版本,其中过去 12 个月发布了 7 个;首次发布于 2022/06/20。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。