UNPKG

typerinth

Version:

A TypeScript library for interacting with the Modrinth API.

15 lines (14 loc) 535 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDefaultOptions = getDefaultOptions; const node_cache_1 = __importDefault(require("node-cache")); function getDefaultOptions() { return { baseUrl: 'https://api.modrinth.com/v2', userAgent: 'typerinth (default user agent)', cache: new node_cache_1.default({ stdTTL: 60 }), }; }