mangaupdates-js
v0.1.0
Published
Node.js SDK for the MangaUpdates API with TypeScript support.
Maintainers
Readme
mangaupdates-js
Node.js SDK for the MangaUpdates API with TypeScript and JavaScript support.
The SDK uses Orval to generate typed API operations from the MangaUpdates OpenAPI document, then exposes a small client wrapper for common setup such as the API base URL, bearer token, headers, and custom fetch implementations.
Install
npm install mangaupdates-jsUsage
import { createMangaUpdatesClient } from 'mangaupdates-js';
const mangaupdates = createMangaUpdatesClient({
accessToken: process.env.MANGAUPDATES_TOKEN,
});
const results = await mangaupdates.series.search({
search: 'Fullmetal Alchemist',
});You can also use the generated functions directly:
import { configureMangaUpdates, searchSeries } from 'mangaupdates-js';
configureMangaUpdates({ accessToken: process.env.MANGAUPDATES_TOKEN });
const results = await searchSeries({ search: 'Yotsuba' });Development
npm install
npm run generate
npm run build
npm run typecheckGenerated sources are produced from https://api.mangaupdates.com/openapi.yaml.
