{"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.1","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.1","gitHead":"f9ec5b50522bc4051d5175b33f76077a2d00781d","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-pWv9hqWho37EpwpBgqDYVPKPCgT/ytuvqtlBvb6M44BrnvooTk/5D/aSeohsGDLp+g8waP5dUUGODR+Ley+Idg==","shasum":"4ce5784f4cb166a3e5816b83ab693e671948cf10","tarball":"http://registry-npm.ywwl.com/json-sorted-stringify/download/json-sorted-stringify-1.0.1.tgz","fileCount":5,"unpackedSize":3534,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOHMuK5I0JgrTan9/BFFXrwEeq40Ov01cQn2sVjhPt/gIhAMWntc/Wfiwon8Mgub3JWl4T/5f3Y0k5epg4qSN7aZ3A"}],"size":1811,"noattachment":false,"key":"/json-sorted-stringify/-/json-sorted-stringify-1.0.1.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/json-sorted-stringify_1.0.1_1737159114283_0.6151985051565008"},"_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":1737159114486,"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_cnpm_publish_time":1737159114486,"dist-tags":{"latest":"1.0.2"}}