UNPKG

nodejs-order-book

Version:

Node.js Lmit Order Book for high-frequency trading (HFT).

20 lines (19 loc) 497 B
/* node:coverage ignore next - Don't know why this line is uncovered */ // biome-ignore lint/suspicious/noExplicitAny: <explanation> export var safeStringify = function (value) { try { return JSON.stringify(value); } catch (error) { return null; } }; /* node:coverage ignore next - Don't know why this line is uncovered */ export var safeParse = function (value) { try { return JSON.parse(value); } catch (error) { return null; } };