{"_id":"sorted-json","_rev":"1757609","name":"sorted-json","description":"Sort keys and array elements in a JSON.","dist-tags":{"latest":"0.3.0"},"maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"time":{"modified":"2026-11-22T01:09:26.000Z","created":"2015-08-28T05:58:30.740Z","0.3.0":"2024-12-26T11:57:52.223Z","0.2.6":"2019-06-18T07:23:40.746Z","0.2.5":"2019-03-26T06:19:03.254Z","0.2.3":"2018-09-26T11:27:49.722Z","0.2.2":"2017-07-06T03:43:00.058Z","0.2.1":"2017-01-06T09:28:45.204Z","0.2.0":"2017-01-06T09:21:52.140Z","0.1.2":"2015-08-28T07:27:40.652Z","0.1.1":"2015-08-28T06:01:52.100Z","0.1.0":"2015-08-28T05:58:30.740Z"},"users":{},"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/pastgift/sorted-json-js.git"},"versions":{"0.3.0":{"name":"sorted-json","version":"0.3.0","main":"sorted-json.js","devDependencies":{"mocha":"6.0.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/pastgift/sorted-json-js.git"},"keywords":["json","sortify","stringify","sort"],"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"homepage":"https://github.com/pastgift/sorted-json-js","gitHead":"54a486b7b86bb167d6c7cd39dc33d53831ab8744","description":"Sort keys and array elements in a JSON.","_id":"sorted-json@0.3.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-TsdYS8keXMENwDDIekhCt83DnV/n9wTGl+kAtYqjAWRDCYkTjFMuh7S3pXuIKhi4Yr43Mh7qyC1Zu57vI723Cw==","shasum":"9e949ba4f66355fc34f54ddfe641179451f08886","tarball":"http://registry-npm.ywwl.com/sorted-json/download/sorted-json-0.3.0.tgz","fileCount":6,"unpackedSize":10579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjO8nnNwhEFRRCWhQ+F/fRMS7zEpT0+duKq6i+cltwzQIhAIqGKgPSrJHkPQUOptWNCY6Ke2G3XvSqoPcqjIkTFJbe"}],"size":3086,"noattachment":false,"key":"/sorted-json/-/sorted-json-0.3.0.tgz"},"_npmUser":{"name":"pastgift","email":"pastgift@gmail.com"},"directories":{},"maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sorted-json_0.3.0_1735214271906_0.18108915606895182"},"_hasShrinkwrap":false,"publish_time":1735214272223,"_cnpm_publish_time":1735214272223},"0.2.6":{"name":"sorted-json","version":"0.2.6","keywords":["json","sortify","stringify","sort"],"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"license":"MIT","_id":"sorted-json@0.2.6","maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"homepage":"https://github.com/pastgift/sorted-json-js","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"dist":{"shasum":"609e30cd30248873a4197dcf4c083153593d479d","tarball":"http://registry-npm.ywwl.com/sorted-json/download/sorted-json-0.2.6.tgz","fileCount":5,"integrity":"sha512-Y9ZOAwhaMYG+9cFDc8LXlR7v9fWjiGHzh3HhjbTVFijU5zgPIa4Z6MGNSgGwYQ/x+QIeaFdQU+C1w1lCvLfP2g==","signatures":[{"sig":"MEYCIQCB8sl8ZgzyaBWsEHPoZCfYEZ9M5yGMudbDcPWsI3VMOgIhANUjPOYd119IAfbqI/PO4ClxZ4vJ+CS2KYrSTaKkF1tH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCJF9CRA9TVsSAnZWagAAQGIP/3wF3UqjWkC63y+3ygUR\nH3mw8ofHPhd5xTHDaCRrgxr001RhmannraMdsYT4GEJ46/poBiL+z/KWXFEQ\nyArUY6qYJI3zbw6kSIscpaQxmmQQKwOejX3bd0GE2KIosLLhyvm9ZhMAf0o/\n5f2NghyKJCP0+cuG2SzBC+0u1C6CO9vW7YuIC9N95Pv/sDwvK34OWlhKhk9w\n6pxoS9YuWe1ZxeG4IBhY83/VySjTN5BJUmcCMO0iiHuZqgNfnqiWI4vm1Lqj\nBFB8Mx/7JTP2Jdv/nhP+DgJIYq5o6lxssEKJENTk9L7tSxghQzN2zehSPSMi\nDSiWpr8GMPvW9rHGsOJ/tfvvouUo1lM3qubhGs8vutiPJC0qvj0T0mWPAea6\ntDJAM89X0W7n7k373sbNhnxQ+R38kGgjAeXwBdw2sBGVeTJyDWh5EjqZTQI9\nAtGmYqzN9FhTKHHjM+kLgL8uM5TEj0/KThiba26JDTV0TLOVVMKysyOQrtan\n6617w+qujzlxHlHX4bAT6dY0IrslmDbqKDHlkgtZczMb5hBFWEn20YFirkV3\ne/n5fxJ3KeHaTAhHnFd99JFY69fqq+agVgPM0MYy8vdmHr9H2DOsFDevSdHX\ngyARE6Bb/Z51fsV5nOecII5dxHohTqnEsvrKGbn+iUiSQ+1dDpC8rN12I3f2\nGl3M\r\n=3LA7\r\n-----END PGP SIGNATURE-----\r\n","size":3134,"noattachment":false,"key":"/sorted-json/-/sorted-json-0.2.6.tgz"},"main":"sorted-json.js","gitHead":"356706a1793edb210fda4c07b9e001fc3a12b8aa","scripts":{"test":"mocha"},"_npmUser":{"name":"pastgift","email":"pastgift@gmail.com"},"repository":{"url":"git+https://github.com/pastgift/sorted-json-js.git","type":"git"},"_npmVersion":"5.6.0","description":"Sort keys and array elements in a JSON.","directories":{},"_nodeVersion":"8.11.2","_hasShrinkwrap":false,"devDependencies":{"mocha":"6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sorted-json_0.2.6_1560842620603_0.8326737691340407","host":"s3://npm-registry-packages"},"publish_time":1560842620746,"_cnpm_publish_time":1560842620746},"0.2.5":{"name":"sorted-json","version":"0.2.5","keywords":["json","sortify","stringify","sort"],"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"license":"MIT","_id":"sorted-json@0.2.5","maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"homepage":"https://github.com/pastgift/sorted-json-js","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"dist":{"shasum":"bbe5d96622faaae79f84d5691bd6f9f67639658f","tarball":"http://registry-npm.ywwl.com/sorted-json/download/sorted-json-0.2.5.tgz","fileCount":5,"integrity":"sha512-Bl8rxFvRxB9S5ZVYdc+ltJep98mCvjroAt3/iBlb2CQ9csR93YZkg8DtyPJ2Kgb7FjyoRAnaL9EGs34LZCgiFw==","signatures":[{"sig":"MEYCIQCy3udgTm3YCKDMvyj05Kqqs1TeZwgtZOgs8gSd1JPkpgIhAKjEWWnH+jdl3Z34mXxUATccZe1VCYS6wKl0Aqoa8n34","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9490,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmcRXCRA9TVsSAnZWagAACOoP/28gUjK3CKTEOavURRwP\np+D82FT1pAMejFu52l7I8SsoWuBplbUvQN+ond70WATWr3hhjYE7iroP/Q51\n1UQVP6+oB7u9sfthkyXm2FfV414VCcy7wyl5VrDgGQn9i3zo/mC31uT4Xuf1\nhgi7RulhfV6iHGxDxL4Dh1MDOxkArzCHMzjlTt4XkPKz1GF9oY+NS+M+h1Pc\neytdyKrGpYJOzXk4Y4nGQBFsWnHv3Wq+N/6z1+4EFBWUvHyfmwakf8ImZ9ey\nQJscT6XHy9UVuOCiCPolk70fRJdMV3m+VpCxFh68c4FH6d+laiXCxWmIb5a7\nAgDXqdnmuOhl6qQo+p5KIzo5a56LOJMt41i/TstTnok61gj1Zp2jy0n2TK25\nmtedE3FdTB8tcJDOnYQsXovF8HTHhOqN4i8AOLi/P7BkPNuUwQWg0OzDtPQu\nFwiA7EJKTBN4P+Qu1iOKqQ7vGxs05BnNhtM8rzi2RcZVM6wISYcMIZ7Q8vJ1\nwB1pOq7gAfoz64YQyRUyTq/i27mz/OcEcYlRpxmlrl3+QplG7nomM5zyVcMY\ndSWoA1OGtlyALrLA6+jZfaZc07A7+vkMGihp3b1W4QFM8H+qLIKf3czpa4w/\nPckjQ+swU0awG3kQL0g84mjqruWMDjEY+Mvx4gxiwhthaPPJPAVKzTVdz9EX\ngg5e\r\n=L1uI\r\n-----END PGP SIGNATURE-----\r\n","size":3136,"noattachment":false,"key":"/sorted-json/-/sorted-json-0.2.5.tgz"},"main":"sorted-json.js","gitHead":"bdfe59102239838003003549c467f349f09ebe1c","scripts":{"test":"mocha"},"_npmUser":{"name":"pastgift","email":"pastgift@gmail.com"},"repository":{"url":"git+https://github.com/pastgift/sorted-json-js.git","type":"git"},"_npmVersion":"5.6.0","description":"Sort keys and array elements in a JSON.","directories":{},"_nodeVersion":"8.11.2","_hasShrinkwrap":false,"devDependencies":{"mocha":"6.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sorted-json_0.2.5_1553581143123_0.9208794179323734","host":"s3://npm-registry-packages"},"publish_time":1553581143254,"_cnpm_publish_time":1553581143254},"0.2.3":{"name":"sorted-json","version":"0.2.3","keywords":["json","sortify","stringify","sort"],"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"license":"MIT","_id":"sorted-json@0.2.3","maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"homepage":"https://github.com/pastgift/sorted-json-js","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"dist":{"shasum":"969cea164c01d67e7e013c5399a93b8fdfd8c721","tarball":"http://registry-npm.ywwl.com/sorted-json/download/sorted-json-0.2.3.tgz","fileCount":5,"integrity":"sha512-/tzmrQVr7NZm08s4OaHFNYNKXdeweE+JqfJemhpZ//+yWb/1CE2Khjfz5chyl4WyVwD6DL4fYE8pW5ZDk8+oPw==","signatures":[{"sig":"MEYCIQCgN1t9GYbxmDKC/tcD+y2mw82ehSZVlSdf1LvSrF9fkwIhAK2gBioFjGIU8qyk+CnWiEoAdVrP/2RkrEyhzZUI8CjV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9492,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbq202CRA9TVsSAnZWagAAX4IP/A+yc9HrtoH0BleLVi/q\nc6qafpdrTc79lhRy7dIZhjSCrt5vRrvMN2Sj4ay+1njAIfupMPaeZfeg6FD3\nCeSPHeq/9vZ1eREwntMOu1f9QfBgdk+iowrfcAa7kIAOToTdbZhVUAQ0xNXj\nYDbq89oxsZFbybQI0JkOuA6TQUMJ5ljiOzbcQwF+oCZpVI7/911iZIxMx4CJ\nn1OjFnZ4+e7muM4HGSj1MIbM5gK4N2ltDlaIQ5s1YzbbbRIrIk9toAdiQeNJ\neOXOyflDMjFwlakifahxdn7s2+tvt8BZ5oOz8xV9ulStgyK6LN5WDm7sKp5r\ndCOHlT10Beqk3HTFhH7hP2Oxg0A+CRZcIzILsyAF3QvmgQ+m4I9Wu1Atz4fV\n/+EKD/ZL+MoDUWgu3ApHbvEHus7wzqLtVhS5dWPWofi8fqkSByivKaX6sdgH\ng+S2s4Ednyp/eMgPZeR3f69ROgXUR6ApW1M5j0EPL849hUsSj/oVSTYqQt0X\noSap8JwkIBpt/ru+4MezMGu5RDjPszSSATK71FooIm4gb1Vp0t1n7DESuR/a\nLFiuPrZIbRgD6gtag1/aZvmxfsetMpOz41Rt5H6PMCZmyAE0MfNrDaPh5S10\nnXK4QlBWxcpX6Dyh7h4mkfiLfyjg47dXS2nwF4B9dav1hNw2T1EpWBPiBzXz\nMnOP\r\n=+79H\r\n-----END PGP SIGNATURE-----\r\n","size":3121,"noattachment":false,"key":"/sorted-json/-/sorted-json-0.2.3.tgz"},"main":"sorted-json.js","gitHead":"887a46b1efa1b7944c90e3aa7eb6b92ca7e3a8ca","scripts":{"test":"mocha"},"_npmUser":{"name":"pastgift","email":"pastgift@gmail.com"},"repository":{"url":"git+https://github.com/pastgift/sorted-json-js.git","type":"git"},"_npmVersion":"5.6.0","description":"Sort keys and array elements in a JSON.","directories":{},"_nodeVersion":"8.11.2","_hasShrinkwrap":false,"devDependencies":{"mocha":"2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/sorted-json_0.2.3_1537961269579_0.9946570702401731","host":"s3://npm-registry-packages"},"publish_time":1537961269722,"_cnpm_publish_time":1537961269722},"0.2.2":{"name":"sorted-json","version":"0.2.2","keywords":["json","sortify","stringify","sort"],"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"license":"MIT","_id":"sorted-json@0.2.2","maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"homepage":"https://github.com/pastgift/sorted-json-js","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"dist":{"shasum":"bfab8c2ed31a9829a6ef2fff9d3da0b9999267ad","tarball":"http://registry-npm.ywwl.com/sorted-json/download/sorted-json-0.2.2.tgz","integrity":"sha512-5rS8qS+Roq9ZDyDLNjTfXy/RFxZ98Up7Ge35aUptZtKLpvhie8j+XSKxjzvRrctRLI15idR+IBnJ0WO/ujjBeQ==","signatures":[{"sig":"MEUCIQDHAe2Pmzb9NDhpwcvHOqk7hIm+RKskjGby+L8H+5MqUgIgen/fon8g+6G0SxWXAxQgJ8htXbZR0gNaL/GGoKQIwUY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3448,"noattachment":false,"key":"/sorted-json/-/sorted-json-0.2.2.tgz"},"main":"sorted-json.js","_from":".","_shasum":"bfab8c2ed31a9829a6ef2fff9d3da0b9999267ad","gitHead":"ca13060258aa435a353f515c5e4540d9d7a810c7","scripts":{"test":"mocha"},"_npmUser":{"name":"pastgift","email":"pastgift@gmail.com"},"repository":{"url":"git+https://github.com/pastgift/sorted-json-js.git","type":"git"},"_npmVersion":"3.10.10","description":"Sort keys and array elements in a JSON.","directories":{},"_nodeVersion":"6.10.2","devDependencies":{"mocha":"2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/sorted-json-0.2.2.tgz_1499312579974_0.42275255685672164","host":"s3://npm-registry-packages"},"publish_time":1499312580058,"_cnpm_publish_time":1499312580058},"0.2.1":{"name":"sorted-json","version":"0.2.1","keywords":["json","sortify","stringify","sort"],"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"license":"MIT","_id":"sorted-json@0.2.1","maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"homepage":"https://github.com/pastgift/sorted-json-js","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"dist":{"shasum":"b34cba6fb416c06c88f29f80d0af22cb8f9ba2ef","tarball":"http://registry-npm.ywwl.com/sorted-json/download/sorted-json-0.2.1.tgz","integrity":"sha512-EFxmCx1QSmyESUT3nQimNQxCWQfq1Lw6K5gP76ifbM8qVO0ESOOALFhouD0vIzyaI+ck2WAzoSAeeuAN1xCF9w==","signatures":[{"sig":"MEUCIQCm9Roi+5/6OsOzWXUSIt6HKiNNtal7DB0u00ytNCsHZgIgJ2lHNvOLPnIOHRcO9jjuyXwtv96VvpWjccKbeB0EXms=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3449,"noattachment":false,"key":"/sorted-json/-/sorted-json-0.2.1.tgz"},"main":"sorted-json.js","_from":".","_shasum":"b34cba6fb416c06c88f29f80d0af22cb8f9ba2ef","gitHead":"06e9863923aace3378edbc4a90c0e2bba8a14a30","scripts":{"test":"mocha"},"_npmUser":{"name":"pastgift","email":"pastgift@gmail.com"},"repository":{"url":"git+https://github.com/pastgift/sorted-json-js.git","type":"git"},"_npmVersion":"2.15.1","description":"Sort keys and array elements in a JSON.","directories":{},"_nodeVersion":"0.12.17","devDependencies":{"mocha":"2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/sorted-json-0.2.1.tgz_1483694924961_0.6229724695440382","host":"packages-12-west.internal.npmjs.com"},"publish_time":1483694925204,"_cnpm_publish_time":1483694925204},"0.2.0":{"name":"sorted-json","version":"0.2.0","keywords":["json","sortify","stringify","sort"],"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"license":"MIT","_id":"sorted-json@0.2.0","maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"homepage":"https://github.com/pastgift/sorted-json-js","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"dist":{"shasum":"c19f74fba64ae7623af5c223fb9a8ea999d24a19","tarball":"http://registry-npm.ywwl.com/sorted-json/download/sorted-json-0.2.0.tgz","integrity":"sha512-UHIo2ihLF4YNyWZy7JWcUMTrphKCBJMe8Hi1ucl4p17v0bHHG0PcdidpN3gnaYhlOCtLnSyOls+RDqZ5YQiS+g==","signatures":[{"sig":"MEQCIGskF362uRC2UySwx84Lv5+t9Jzq4tb6AYiql83erZcLAiBz/k/ZrCYoQdRHg35+4R7m4j30rxX0aey8PCxfMJQEJw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3464,"noattachment":false,"key":"/sorted-json/-/sorted-json-0.2.0.tgz"},"main":"sorted-json.js","_from":".","_shasum":"c19f74fba64ae7623af5c223fb9a8ea999d24a19","gitHead":"fb4baa5586d1f7a1b3ead45f9b42d3ac7ae4228b","scripts":{"test":"mocha"},"_npmUser":{"name":"pastgift","email":"pastgift@gmail.com"},"repository":{"url":"git+https://github.com/pastgift/sorted-json-js.git","type":"git"},"_npmVersion":"2.15.1","description":"a sorting-keys-versiong for `JSON.stringify`","directories":{},"_nodeVersion":"0.12.17","devDependencies":{"mocha":"2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/sorted-json-0.2.0.tgz_1483694509956_0.3282241369597614","host":"packages-18-east.internal.npmjs.com"},"publish_time":1483694512140,"_cnpm_publish_time":1483694512140},"0.1.2":{"name":"sorted-json","version":"0.1.2","keywords":["json","stringify","sort"],"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"license":"MIT","_id":"sorted-json@0.1.2","maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"homepage":"https://github.com/pastgift/sorted-json-js","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"dist":{"shasum":"c2a6b05d57ca14699a2108385880c200f7f3d424","tarball":"http://registry-npm.ywwl.com/sorted-json/download/sorted-json-0.1.2.tgz","integrity":"sha512-eaQMwHyQwX5xLYHnpffAtheFT30WO1eTJuPlBwYyzDIXq/q/e3eYk//Ru07Lm1XqhbRaDpWicJM0xNlwbQbjuw==","signatures":[{"sig":"MEYCIQDf/F6l9CjJy0PeyWBbQcBnjmjTIptGUeJFgRViC5w/SwIhALYg1N0G5Mqg3fokBNLH8h/Rif+rkQ36byNRSF/2b638","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2051,"noattachment":false,"key":"/sorted-json/-/sorted-json-0.1.2.tgz"},"main":"sorted-json.js","_from":".","_shasum":"c2a6b05d57ca14699a2108385880c200f7f3d424","gitHead":"dc2f13778ff5a180995ca73b9a9e06c8fbb758ea","scripts":{},"_npmUser":{"name":"pastgift","email":"pastgift@gmail.com"},"repository":{"url":"git+https://github.com/pastgift/sorted-json-js.git","type":"git"},"_npmVersion":"2.10.1","description":"a sorting-keys-versiong for `JSON.stringify`","directories":{},"_nodeVersion":"0.12.4","publish_time":1440746860652,"_cnpm_publish_time":1440746860652},"0.1.1":{"name":"sorted-json","version":"0.1.1","keywords":["json","stringify","sort"],"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"license":"MIT","_id":"sorted-json@0.1.1","maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"homepage":"https://github.com/pastgift/sorted-json-js","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"dist":{"shasum":"7402c469c68a9f98cc7524dc295f525f1d0b448e","tarball":"http://registry-npm.ywwl.com/sorted-json/download/sorted-json-0.1.1.tgz","integrity":"sha512-rWCHfQCYrKvLedg5oGhWOKo9zN9LMbO1mJnJyQIBAK514/cCBhpmnm+RWYKskB7w+5w7JfrlLxHohfej04026A==","signatures":[{"sig":"MEYCIQC1b3T1ADxs9xA0ffUx/GC0uPi/AwgH/M3IQeC8rgrOfwIhAIOAeo1VmVBDyoawYJdUEyXl/P2Amd7zNiPSlJxrVlhq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2106,"noattachment":false,"key":"/sorted-json/-/sorted-json-0.1.1.tgz"},"main":"sorted-json.js","_from":".","_shasum":"7402c469c68a9f98cc7524dc295f525f1d0b448e","gitHead":"6ed68ef153b269d3bd6cf77475a02333548fd52b","scripts":{},"_npmUser":{"name":"pastgift","email":"pastgift@gmail.com"},"repository":{"url":"git+https://github.com/pastgift/sorted-json-js.git","type":"git"},"_npmVersion":"2.10.1","description":"a sorting-keys-versiong for `JSON.stringify`","directories":{},"_nodeVersion":"0.12.4","publish_time":1440741712100,"_cnpm_publish_time":1440741712100},"0.1.0":{"name":"sorted-json","version":"0.1.0","keywords":["json","stringify","sort"],"author":{"name":"Yiling Zhou","email":"pastgift@gmail.com"},"license":"MIT","_id":"sorted-json@0.1.0","maintainers":[{"name":"pastgift","email":"pastgift@gmail.com"}],"homepage":"https://github.com/pastgift/sorted-json-js","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"dist":{"shasum":"1a41f69c6baeaf67f84b99234ef975f83160c298","tarball":"http://registry-npm.ywwl.com/sorted-json/download/sorted-json-0.1.0.tgz","integrity":"sha512-78uKI8bG/SMn6D5tQmf6b7V377JOC5wKNW1VrCXy7q5VGUqNSDUf9nATJZ2viNeT3LzwS5iDRFp4IcQqjrsapw==","signatures":[{"sig":"MEYCIQCWE2OFrS6GJEp+kX8JkWuli3stZ6ijbbwTtre5C9TaawIhAKKPnvXvl1wYvZMTpD4TBM3YuQ4DxzC1R6LpTua2dKR9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2106,"noattachment":false,"key":"/sorted-json/-/sorted-json-0.1.0.tgz"},"main":"sorted-json.js","_from":".","_shasum":"1a41f69c6baeaf67f84b99234ef975f83160c298","gitHead":"64ea3509bf2d7cedb526901a81763f6b23f4b2c9","scripts":{},"_npmUser":{"name":"pastgift","email":"pastgift@gmail.com"},"repository":{"url":"git+https://github.com/pastgift/sorted-json-js.git","type":"git"},"_npmVersion":"2.10.1","description":"a sorting-keys-versiong for `JSON.stringify`","directories":{},"_nodeVersion":"0.12.4","publish_time":1440741510740,"_cnpm_publish_time":1440741510740}},"readme":"# sorted-json-js\n\nSort keys and array elements in a JSON.\n\n## Quick Example 1:\n\nUsing `.sortify(...)` with `{ sortArray: true }` options to sort an object:\n\n```js\nvar sortedJSON = require('sorted-json');\n\nvar obj_1 = {\n  numberArray: [3, 1, 2],\n  anotherJSON: {\n    stringArray: ['cat', 'book', 'apple'],\n    numberA: 2,\n    numberB: 1\n  },\n  number1: 2,\n  number2: 1\n};\nconsole.log(sortedJSON.sortify(obj_1, { sortArray: true }));\n```\n\nOutput:\n\n```text\n{\n  anotherJSON: { numberA: 2, numberB: 1, stringArray: [ 'apple', 'book', 'cat' ] },\n  number1: 2,\n  number2: 1,\n  numberArray: [ 1, 2, 3 ]\n}\n```\n\n## Quick Example 2:\n\nUsing `.stringify(...)` to get a sorted JSON string:\n\n```js\nvar obj_2 = {\n  numberArray: [3, 1, 2],\n  anotherJSON: {\n    stringArray: ['cat', 'book', 'apple'],\n    numberA: 2,\n    numberB: 1\n  },\n  number1: 2,\n  number2: 1\n};\nconsole.log(sortedJSON.stringify(obj_2));\n```\n\nOutput:\n\n```text\n{\"anotherJSON\":{\"numberA\":2,\"numberB\":1,\"stringArray\":[\"cat\",\"book\",\"apple\"]},\"number1\":2,\"number2\":1,\"numberArray\":[3,1,2]}\n```\n\n# API:\n\n### .sortify(obj [, options])\n\nSort an object and return it.\n\n| Parameter           | Type     | Required | Default     | Description                                                                                                                      |\n| ------------------- | -------- | -------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- |\n| `obj`               | object   | Yes      |             | The object to sort                                                                                                               |\n| `options`           | object   |          | `{}`        | Sort options                                                                                                                     |\n| `options.sortBy`    | function |          | `undefined` | Specifies a function that defines the sort order. Same to `compareFunction` parameter in `Array.prototype.sort(compareFunction)` |\n| `options.sortKey`   | boolean  |          | `true`      | Sort the keys in `obj` or not                                                                                                    |\n| `options.sortArray` | boolean  |          | `true`      | Sort the array elements in `obj or not                                                                                           |\n| `options.stringify` | boolean  |          | `false`     | Output the stringified `obj` or not (Using `JSON.stringify()`)                                                                   |\n| `options.replacer`  |          |          |             | Parameter for `JSON.stringify()`                                                                                                 |\n| `options.space`     |          |          |             | Parameter for `JSON.stringify()`                                                                                                 |\n\n### .stringify(obj)\n\n| Parameter | Type   | Required | Default | Description        |\n| --------- | ------ | -------- | ------- | ------------------ |\n| `obj`     | object | Yes      |         | The object to sort |\n\n# Install:\n\n```shell\nnpm install sorted-json\n```\n\n# Test:\n\n```shell\nnpm test\n```\n\n# License\n\n[MIT](LICENSE)\n\n[downloads-image]: http://img.shields.io/npm/dm/sorted-json.svg\n\n[npm-url]: https://npmjs.org/package/sorted-json\n[npm-image]: http://img.shields.io/npm/v/sorted-json.svg\n","_attachments":{},"homepage":"https://github.com/pastgift/sorted-json-js","bugs":{"url":"https://github.com/pastgift/sorted-json-js/issues"},"license":"MIT"}