json-sorted-stringify
Alternative JSON.stringify function with sorted keys, so the output is stable.
Last updated 2 years ago by fabiospampinato .
Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install json-sorted-stringify 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (4)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |