@ablanc/adn 中文文档教程
Adn module wrapper
Description
用于访问 adn api (animedigitalnetwork.fr) 的 Node.js 模块包装器。
Installation
# with yarn
yarn add @ablanc/adn
# or with npm
npm install @ablanc/adn
Examples
const adn = require("@ablanc/adn");
// import adn from "@ablanc/adn"; // Typescript
const mondayEpisodes = await adn.getCalendarDay("2019-11-04");
const catalog = await adn.getCatalog({ offset: 0, limit: 50 });
const episodes = await adn.getEpisodes({ showId: 355 });
const infos = await adn.getInfos("bleach");
Tests
测试使用 Jest 框架运行。
# with yarn
yarn test
# or with npm
npm run test
Adn module wrapper
Description
Node.js module wrapper to access adn api (animedigitalnetwork.fr).
Installation
# with yarn
yarn add @ablanc/adn
# or with npm
npm install @ablanc/adn
Examples
const adn = require("@ablanc/adn");
// import adn from "@ablanc/adn"; // Typescript
const mondayEpisodes = await adn.getCalendarDay("2019-11-04");
const catalog = await adn.getCatalog({ offset: 0, limit: 50 });
const episodes = await adn.getEpisodes({ showId: 355 });
const infos = await adn.getInfos("bleach");
Tests
Tests are run using Jest framework.
# with yarn
yarn test
# or with npm
npm run test