UNPKG

@hokuto/jam-node

Version:

JAM Node TS, guardians and utils

8 lines (7 loc) 269 B
import { CoreApi, } from "@hokuto/jam-core"; import { jsonFetch } from "../utils/api-fetch.js"; export function StatsApi(args) { const url = CoreApi.Stats(args); const headers = CoreApi.Options.getRequestOptions(args); return jsonFetch(url, { headers }); }