UNPKG

nodejs-order-book

Version:

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

19 lines (18 loc) 438 B
/* node:coverage ignore next - Don't know why this line is uncovered */ 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; } };