{"_id":"json-sorted-stringify","_rev":"3757943","name":"json-sorted-stringify","description":"Alternative JSON.stringify function with sorted keys, so the output is stable.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"time":{"modified":"2025-03-18T07:12:34.000Z","created":"2023-02-17T23:35:12.067Z","1.0.1":"2025-01-18T00:11:54.486Z","1.0.0":"2023-02-17T23:35:12.067Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/json-sorted-stringify.git"},"versions":{"1.0.1":{"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":{"shasum":"4ce5784f4cb166a3e5816b83ab693e671948cf10","size":1811,"noattachment":false,"key":"/json-sorted-stringify/-/json-sorted-stringify-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/json-sorted-stringify/download/json-sorted-stringify-1.0.1.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.1_1737159114283_0.6151985051565008"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-18T00:11:54.486Z","publish_time":1737159114486,"_source_registry_name":"default","_cnpm_publish_time":1737159114486},"1.0.0":{"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.","version":"1.0.0","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.0.0","fava":"^0.2.0","tsex":"^2.2.0","typescript":"^4.9.5"},"bugs":{"url":"https://github.com/fabiospampinato/json-sorted-stringify/issues"},"homepage":"https://github.com/fabiospampinato/json-sorted-stringify#readme","_id":"json-sorted-stringify@1.0.0","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"29b39af4e69d74e56bf4f689ba01645757f47175","size":2514,"noattachment":false,"key":"/json-sorted-stringify/-/json-sorted-stringify-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/json-sorted-stringify/download/json-sorted-stringify-1.0.0.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-sorted-stringify_1.0.0_1676676911920_0.34428061807293564"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-17T23:35:12.067Z","publish_time":1676676912067,"_cnpm_publish_time":1676676912067}},"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","_attachments":{},"homepage":"https://github.com/fabiospampinato/json-sorted-stringify#readme","bugs":{"url":"https://github.com/fabiospampinato/json-sorted-stringify/issues"},"license":"MIT"}