How to use the typeon.jsonStringify function in typeon

To help you get started, we’ve selected a few typeon 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 deepsweet / foxr / src / json-protocol.ts View on Github external
export const stringify = (data: TJsonValue) => {
  const str = jsonStringify(data)
  const length = Buffer.byteLength(str)

  return `${length}${SEPARATOR}${str}`
}

typeon

Typed JSON parse and stringify for TypeScript

MIT
Latest version published 4 years ago

Package Health Score

57 / 100
Full package analysis

Popular typeon functions