{"name":"json-sorted-stringify","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/json-sorted-stringify.git"},"description":"Alternative JSON.stringify function with sorted keys, so the output is stable.","license":"MIT","version":"1.0.2","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","benchmark":"tsex benchmark","benchmark:watch":"tsex benchmark --watch","benchmark:update:small":"wget https://raw.githubusercontent.com/fraunhoferfokus/JSum/master/benchmark/fixtures/small.json -O tasks/small.json","benchmark:update:medium":"wget https://raw.githubusercontent.com/fraunhoferfokus/JSum/master/benchmark/fixtures/medium.json -O tasks/medium.json","benchmark:update:large":"wget https://raw.githubusercontent.com/zemirco/sf-city-lots-json/master/citylots.json -O tasks/large.json","benchmark:update":"npm run benchmark:update:small && npm run benchmark:update:medium && npm run benchmark:update:large","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["json","sorted","stable","stringify"],"devDependencies":{"benchloop":"^2.1.1","fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"json-sorted-stringify@1.0.2","gitHead":"b4b87427d471ec4e5972489638dbba100d47ef18","bugs":{"url":"https://github.com/fabiospampinato/json-sorted-stringify/issues"},"homepage":"https://github.com/fabiospampinato/json-sorted-stringify#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-6UiiM9hRn9P+nfznAif3TsmulMJTvlmfNDN8mAmDUvDW/JbSyczdgT0w7NVJvWQwMS83iLnYkH2IXNRZUB4iFg==","shasum":"68b3b05b082deb5a3cbb354be274c3fe472fa644","tarball":"http://registry-npm.ywwl.com/json-sorted-stringify/download/json-sorted-stringify-1.0.2.tgz","fileCount":5,"unpackedSize":3535,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFTq7OW92qUuTO8wL4HERNRxga/6xgHqGGZnVxzTERpEAiAPpm8YCrrOzcjZCEoIP2MjwXYIFwVuHisZJIzS0Nv/SQ=="}],"size":1811,"noattachment":false,"key":"/json-sorted-stringify/-/json-sorted-stringify-1.0.2.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/json-sorted-stringify_1.0.2_1755527960367_0.4244491602322089"},"_hasShrinkwrap":false,"readme":"# JSON Sorted Stringify\n\nAlternative `JSON.stringify` function with sorted keys, so the output is stable.\n\n## Install\n\n```sh\nnpm install json-sorted-stringify\n```\n\n## Usage\n\n```ts\nimport stringify from 'json-sorted-stringify';\n\n// Let's stringify in a sorted/stable manner\n\nstringify ({ a: 1, b: 2 }); // => '{\"a\":1,\"b\":2}'\nstringify ({ b: 2, a: 1 }); // => '{\"a\":1,\"b\":2}'\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1755527960559,"_cnpm_publish_time":1755527960559,"dist-tags":{"latest":"1.0.2"}}