@intrnl/stable-stringify
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Stable JSON stringify

import { stableStringify } from '@intrnl/stable-stringify';

stableStringify({ c: 1, b: [7, { y: 2, z: 3, x: 1 }, 1], a: 3 });
// -> '{"a":3,"b":[7,{"x":1,"y":2,"z":3},1],"c":1}'

// -> formatted: { a: 3, b: [7, { x: 1, y: 2, z: 3 }, 1], c: 1 }

Readme

Keywords

none

Package Sidebar

Install

npm i @intrnl/stable-stringify

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

2.37 kB

Total Files

5

Last publish

Collaborators

  • intrnl