How to use the fast-safe-stringify.stableStringify function in fast-safe-stringify

To help you get started, we’ve selected a few fast-safe-stringify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github winstonjs / logform / json.js View on Github external
module.exports = format((info, opts = {}) => {
  info[MESSAGE] = (opts.stable ? jsonStringify.stableStringify
    : jsonStringify)(info, opts.replacer || replacer, opts.space);
  return info;
});

fast-safe-stringify

Safely and quickly serialize JavaScript objects

MIT
Latest version published 3 years ago

Package Health Score

71 / 100
Full package analysis