UNPKG

myanimelist-jikan

Version:

powerful Node.js wrapper for the Jikan.moe v4 API.

22 lines (19 loc) 430 B
// src/utils/JikanResponse.js /** * A standardized wrapper for Jikan API responses. * @author tamaaxzcw */ export class JikanResponse { constructor(response) { /** * The main data payload from the API. * @type {Array|Object} */ this.data = response.data; /** * The pagination details, if available. * @type {Object|null} */ this.pagination = response.pagination || null; } }