UNPKG

@renegade-fi/core

Version:
14 lines 468 B
import JSONBigInt from 'json-bigint'; const jsonProcessor = JSONBigInt({ alwaysParseAsBig: true, useNativeBigInt: true, }); // Helper to parse bigint values from a JSON string export const parseBigJSON = (data) => { return jsonProcessor.parse(data); }; // Helper to stringify bigint values to a JSON string for use with WASM utilities export const stringifyForWasm = (data) => { return JSONBigInt.stringify(data); }; //# sourceMappingURL=bigJSON.js.map