1.0.0 • Published 1 year ago
json-sorted-stringify v1.0.0
JSON Sorted Stringify
Alternative JSON.stringify
function with sorted keys, so the output is stable.
Install
npm install --save json-sorted-stringify
Usage
import stringify from 'json-sorted-stringify';
stirngify ({ a: 1, b: 2 }); // => '{"a":1,"b":2}'
stirngify ({ b: 2, a: 1 }); // => '{"a":1,"b":2}'
License
MIT © Fabio Spampinato
1.0.0
1 year ago