UNPKG

newgrounds-api

Version:

A simple Node.js library for interacting with the Newgrounds data.

37 lines 2.01 kB
"use strict"; // src/index.ts var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Playlist = exports.Audio = exports.Newgrounds = void 0; /** * @file This is the main entry point for the newgrounds-api package. * It exports the core Newgrounds class and all relevant interfaces and types * for interacting with the Newgrounds API. */ // Export the main Newgrounds API class from its dedicated file. // This allows users to import it like: import { Newgrounds } from 'newgrounds-api'; var Newgrounds_1 = require("./classes/Newgrounds"); Object.defineProperty(exports, "Newgrounds", { enumerable: true, get: function () { return Newgrounds_1.Newgrounds; } }); var Audio_1 = require("./classes/Audio"); Object.defineProperty(exports, "Audio", { enumerable: true, get: function () { return Audio_1.Audio; } }); var Playlist_1 = require("./classes/Playlist"); Object.defineProperty(exports, "Playlist", { enumerable: true, get: function () { return Playlist_1.Playlist; } }); // Export core interfaces directly related to the API's functionality. __exportStar(require("./interfaces/search"), exports); __exportStar(require("./interfaces/audioDetails"), exports); __exportStar(require("./interfaces/playlistDetails"), exports); __exportStar(require("./types/search"), exports); //# sourceMappingURL=index.js.map