{"versions":{"1.0.8":{"name":"canonicalize","version":"1.0.8","description":"JSON canonicalize function ","main":"lib/canonicalize.js","types":"lib/canonicalize.d.ts","directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"ca718f80d2c7e02c18478ffa92c7d8e6dac2db27","_id":"canonicalize@1.0.8","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0CNTVCLZggSh7bc5VkX5WWPWO+cyZbNd07IHIsSXLia/eAq+r836hgk+8BKoEh7949Mda87VUOitx5OddVj64A==","shasum":"24d1f1a00ed202faafd9bf8e63352cd4450c6df1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-1.0.8.tgz","fileCount":19,"unpackedSize":20659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoRhDCRA9TVsSAnZWagAA7xoP/0nMz1DKUJBjVfWi0ulJ\nFKnXON4qixn+CGSg2N5y5RW/LXJRFPUquDrNEQOmYr4hp9zmd19tFN6Mpv8L\npaDxVUvdfkiFKRcsji/HhdiNzYFZ2id2XmiXQydYdQptY+HjQWg8G690EnL+\ny8b18uvwAGHKUf/uHoH1ZfDqtY1pFB/AunoP6u9KhDmqZxIMno98ozk3h1ai\n/0jnCmZBeVqbilHU4ZP1itiD+l5rkSUlCCU31PwbnLw5mpT4wWUpmKjSOEeU\nueBGBYTM3hNBOkaMCu6Ms9URg986ZM5C0gOwS3tukuaBBIZ5a/wuS+sAmnmS\nGEcvZ47E7Pik5Jh609KU13RPBKOKYJUi4COcmeor+qaxSRfUHdyxMRFyNtYm\nEWRWOOjlCPCWTiK1baOsNh/9GPl5S+W4jONKBIQ7Nk9lWjWF8zr0QOoR4C+0\nr127DDdS7Kz2ZMfkQt9bl2PhpKhW/Dp+tTnBIvHccX4BomiMHM4Nl+j6VdZw\ny19vfk8+F54fEZ3RJTUyUegTC+tFg2j+tSyD5YZHKcd2ykAq47ypPSyxdubo\niFTfEkLimdjDGj+B17EO8erLgz83BJcxxk9Mxp9FbywPbEjNPSWOt+aN8hdE\n/6AC+3oM5hxn7KLnRGXefmojn2KC7+RJqVL1Fg+H6c7xK64/M6W1bby2Y7T2\nfN6g\r\n=wWHP\r\n-----END PGP SIGNATURE-----\r\n","size":7115,"noattachment":false},"_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonicalize_1.0.8_1637947459847_0.35803747379116846"},"_hasShrinkwrap":false,"publish_time":1637947459974,"_cnpm_publish_time":1637947459974,"_cnpmcore_publish_time":"2021-12-16T17:20:45.869Z"},"1.0.7":{"name":"canonicalize","version":"1.0.7","description":"JSON canonicalize function ","main":"lib/canonicalize.js","types":"lib/canonicalize.d.ts","directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"55e30513665ac34a17fa1fa377a40369c572b018","_id":"canonicalize@1.0.7","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9anCu2LYntOjUDgmuCpuXA4ZngUsMnjt1mS/5PbtAPY7kGrIXhX5eM+B61LlzrrJCsFq5KO7NO7oLNpWBkbmWg==","shasum":"812113c75558e23b321c1c0764c50b51a44cb1d5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-1.0.7.tgz","fileCount":19,"unpackedSize":20659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoRZBCRA9TVsSAnZWagAAyiIP/0FLwt93spYNDY7SU/iS\nSWmtNuoRMrz/6bpWVjsz9zL2KjA9AjmGyQHKfiCBuIwMbW/2QeVzFgCdPAjb\n9rn7ux+PM0tK+df5VhGoGDIcgXPzo/HIrvIFqOR4IfYS8eUZG1x1alJYUCr8\n5OVhWpKC8D3MwRHdTtK8LUMJvLKnibCJr3GaA8b7xju+hcJrneY9ww3OLx+4\nhV5IfWD4csaTg8Z2DDYcDio1QiOJHRTV0Zv4jjHztb43gRKSVdU/fJv3fl4y\n2yzrFZUYJyUljtmPaw/AZRrS69E0WXcvukgbKKBc4eAfq5jdPL92qL3mkUE4\nVvq8WEtZ0ptxYz1nnFZHly5VRs0i1NCuxLCpAEeQtZGDGnwokWTErWmCm6Wi\nLdBms/96qImcQTdCYJt7mVheiDmM7WXoZH2YGuJpz52Oskk0Zo+PhFfQVlUK\nZFv0F/wv38yv7OYf5j6bj4V9y1lVQcEDGhXzlfCMXW3RlE1VcOFlJ7TUcLNM\n/lTQOR/bn8FO04U89JZhk2NK/y+BaJJNFO2ZDHOEz22VR6atAqyOOOQlqLXC\nFxpuS5OXOK9dNvYRNbI3RowUVMer3dQUgt+c85wIn5KW4wYW4zMsoBwAv/j8\nFyCdH3J6eoYeyn9X31y34tJtsuCeGL011y6kToIghRWQEcUAvnethKUpbEWj\nHZQR\r\n=PCko\r\n-----END PGP SIGNATURE-----\r\n","size":7115,"noattachment":false},"_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonicalize_1.0.7_1637946945648_0.6125300477471043"},"_hasShrinkwrap":false,"publish_time":1637946945801,"_cnpm_publish_time":1637946945801,"_cnpmcore_publish_time":"2021-12-16T17:20:46.074Z"},"1.0.6":{"name":"canonicalize","version":"1.0.6","description":"JSON canonicalize function ","main":"lib/canonicalize.js","types":"lib/canonicalize.d.ts","directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"935b0390b8a7e757c90af0887cac420087219336","_id":"canonicalize@1.0.6","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8HtsDtx1fTp1KZfQq/Era3JXRpLp7QU9HOF2p7l8gU7ZDbEmDd/TcB99MVz+ptlTlk9MVHhJ74yzYeT/n10KLQ==","shasum":"91a1df17883f79f84666b16377d8bafc29444fd5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-1.0.6.tgz","fileCount":20,"unpackedSize":192518782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoJU4CRA9TVsSAnZWagAA6dMP/AyMKXcBPg0hoWYwAdWj\nel0rl5HCk/0CzJqgugq3HGyT8U1zU+g+ivbeccsIHgGgYUejnFS5uM4MBc7A\n0Be7RgcI0niR+MUsK3xzvOF72QmEccJLFEqAqQ8sfsn/Xzdd0zDLKtZJ+pn3\nBIhPLEOKcl1YFrrOc2MrDKmMj1ZMjUVogv/RxuIooq1R1wgwbRV0LDwte4zN\n+mTpA4CNgVFyquAhv/RIoHb367Z80oKyEypY70ucr0eSfJTsVqyT+++wgGl3\ngXzrnz8mswirrWVsQZ3VAvx2Yyg9Kbx+b5rVJ+KLEjF7Q4YNuWZAdXDY4HNI\nDT0XQ+n2OiJAxqLoq/zzz6f6pPIKt/XrfBqRHscclZFtBGtqymwOa+dX9bG5\nDCN+tXaKFB5wT0AlMQ91mYwTRXjwLNzH/ZtH7t5gn5IziOZy48HBbkern2t0\noXWw82jG5DTq+KZReeqESVQehuIhe6QRDL82PWbZ/uGJxkklgb0a4t8xAHZi\ncsd8wRRzCD9IFxIw82DZb+trdkYc2WwB5YjLw3UnmlnWGxxp5aeJ4w5wzJ75\nKdvmX/jmRBYyI+A2gfRYkTy2lfD0RbEV6Q4IN6zxDNfYDsOnjM7Cs8tCyvAV\nrtpf+wZVQBMM6a7f+mlIxS6+CoWz6w9O33rhIycKD1aLF7lgDBBTYMcAWAF/\nTiEO\r\n=RXc3\r\n-----END PGP SIGNATURE-----\r\n","size":47864955,"noattachment":false},"_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonicalize_1.0.6_1637913911427_0.6094024761722996"},"_hasShrinkwrap":false,"publish_time":1637913912582,"_cnpm_publish_time":1637913912582,"_cnpmcore_publish_time":"2021-12-16T17:21:00.082Z"},"1.0.5":{"name":"canonicalize","version":"1.0.5","description":"JSON canonicalize function ","main":"lib/canonicalize.js","types":"lib/canonicalize.d.ts","directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"b500b53937ae7f55d48155788f1414f035b1007d","_id":"canonicalize@1.0.5","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"b43b390ce981d397908bb847c3a8d9614323a47b","size":7110,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-1.0.5.tgz","integrity":"sha512-mAjKJPIyP0xqqv6IAkvso07StOmz6cmGtNDg3pXCSzXVZOqka7StIkAhJl/zHOi4M2CgpYfD6aeRWbnrmtvBEA=="},"_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonicalize_1.0.5_1605733174430_0.5885348800496786"},"_hasShrinkwrap":false,"publish_time":1605733174540,"_cnpm_publish_time":1605733174540,"_cnpmcore_publish_time":"2021-12-16T17:21:01.757Z"},"1.0.4":{"name":"canonicalize","version":"1.0.4","description":"JSON canonicalize function ","main":"lib/canonicalize.js","directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"f77502ad50038b16f2ef7f97119c353539b3e328","_id":"canonicalize@1.0.4","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"0ec3bd951bb84da1c09f65a46eb464e53bc0f33f","size":7042,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-1.0.4.tgz","integrity":"sha512-UlYtzVicOYAIOowuJBp+wAoWSLBKJxDbeANTbZNmVVMRgv6ZDLJ8M0WV8ZPDTKIniMyDUZ6GOJbiJSATh0NUmw=="},"_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonicalize_1.0.4_1605638333945_0.15086803043629238"},"_hasShrinkwrap":false,"publish_time":1605638334074,"_cnpm_publish_time":1605638334074,"_cnpmcore_publish_time":"2021-12-16T17:21:01.998Z"},"1.0.3":{"name":"canonicalize","version":"1.0.3","description":"JSON canonicalize function ","main":"lib/canonicalize.js","directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"1b08d0db94e71ae79a6bd5564fa121383a0a0d5a","_id":"canonicalize@1.0.3","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"7c65d89eaf4f8f78a589e3ae23eabb1ce941c563","size":6692,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-1.0.3.tgz","integrity":"sha512-QWAGweNicWIXzcl7skvUZQ/ArdecS8fOeudnjIU0LYqSdTOSBSap+0VPMas4u11cW3a9sN5AN/aJHQUGfdWLCw=="},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonicalize_1.0.3_1596659708335_0.4151536827215132"},"_hasShrinkwrap":false,"publish_time":1596659708477,"_cnpm_publish_time":1596659708477,"_cnpmcore_publish_time":"2021-12-16T17:21:02.234Z"},"1.0.2":{"name":"canonicalize","version":"1.0.2","description":"JSON canonicalize function ","main":"lib/canonicalize.js","directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"82cb0a863c15c21de3a400e5c23d6e8770cb6483","_id":"canonicalize@1.0.2","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"81c800732289a2446c6f88c36449c820f34ef70a","size":6534,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-1.0.2.tgz","integrity":"sha512-hDkfKrido7slnpvcYtAi4MY2eAI1+ZycaVXsaLSGbCV81ZPRCDqJkTS7v4ZCodK+t0UG3VDVzwOrBT//lfZbIA=="},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonicalize_1.0.2_1596658885156_0.812633173898867"},"_hasShrinkwrap":false,"publish_time":1596658885251,"_cnpm_publish_time":1596658885251,"_cnpmcore_publish_time":"2021-12-16T17:21:02.518Z"},"1.0.1":{"name":"canonicalize","version":"1.0.1","description":"JSON canonicalize function ","main":"lib/canonicalize.js","directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava test","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"0018e8a07292090950ed83a150518cb324978454","_id":"canonicalize@1.0.1","_npmVersion":"6.3.0","_nodeVersion":"9.11.1","_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"dist":{"shasum":"657b4f3fa38a6ecb97a9e5b7b26d7a19cc6e0da9","size":6565,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-1.0.1.tgz","integrity":"sha512-N3cmB3QLhS5TJ5smKFf1w42rJXWe6C1qP01z4dxJiI5v269buii4fLHWETDyf7yEd0azGLNC63VxNMiPd2u0Cg=="},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonicalize_1.0.1_1551305658430_0.7830498115826343"},"_hasShrinkwrap":false,"publish_time":1551305658535,"_cnpm_publish_time":1551305658535,"_cnpmcore_publish_time":"2021-12-16T17:21:02.718Z"},"1.0.0":{"name":"canonicalize","version":"1.0.0","description":"JSON canonicalize function ","main":"lib/canonicalize.js","directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava test","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"63a4176665b1d4fb98cea898242eaaf68d8414fe","_id":"canonicalize@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"dist":{"shasum":"d191a4550f0152c1d7d10934c860a96156f96bc6","size":6622,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-1.0.0.tgz","integrity":"sha512-J8+Ity/YmL6/4/zR57TCIhIsPnl7rGPM7OcD3yUPXvMsGZvMqFnz+VDFs1j7kzhp2S30xN33DBtTbUbJWirTxA=="},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonicalize_1.0.0_1525433751074_0.9551950223163819"},"_hasShrinkwrap":false,"publish_time":1525433751189,"_cnpm_publish_time":1525433751189,"_cnpmcore_publish_time":"2021-12-16T17:21:02.935Z"},"2.0.0":{"name":"canonicalize","version":"2.0.0","description":"JSON canonicalize function ","main":"lib/canonicalize.js","types":"lib/canonicalize.d.ts","directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"428d18f45ef7e6eeb9c64073f6a4b7f80ea12a38","_id":"canonicalize@2.0.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-ulDEYPv7asdKvqahuAY35c1selLdzDwHqugK92hfkzvlDCwXRRelDkR+Er33md/PtnpqHemgkuDPanZ4fiYZ8w==","shasum":"32be2cef4446d67fd5348027a384cae28f17226a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-2.0.0.tgz","fileCount":19,"unpackedSize":22686,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCX/tAXtrsurvagX5oiYHo/21jmYdAUXCisG25EOQTiAIgRuy52E8Gja1rYGEIvM6vswFj+DkRhALgPiYsiF2vAb0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKdtTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp47A/9GFWVpoSdKewVAQyiCP4VkyDLorOuKxqA7zEFcSk4MPIOPTvh\r\nOP73Dn0K9azlKq1s038imqus0m8nwgm1MnQ7z+YuL1/C0n044j9ZYP9Oj7yA\r\nFjjlFDpEg/ClWWihtYnKD3lj8Mu5MGgHCpF2PGEGvs2LGe4Wocrr6CY6yBlt\r\nrr5tOCSE9i6pBUwU3tyolyZRXop/BBNzrkFOHSzuHMOWBNu4xYK+5TASBFJZ\r\nA1tVITtfYwJJXLtn7edgm6+miBugn2y06K61zk9EzhnCoHesQOjZUF22IJy9\r\n1RNRzHcfWDs3OPtoNdh/8xiEqPKlQxHKLaUiWfyi6MqlHWwTSoe1a+gdLBDh\r\njKNW11pEnb08CNozl36r1KDpsIzsEmmo0aKxJMlUeE2msdVKkoe7GMbj+2R2\r\np+QPDfq5FzPmyqCX59trXXbfVEdVt89X2jF6Qtgkl/pUdg7fqEfKQmDv9K7R\r\nknI2AhtPjm7axBTPfoHKOSvo3bcpVIGgYf/7WMHOpEkh3UdgW36sx0wR1Ohk\r\nQ+04sP/6SBA8t4gEq58aZsjos7OMN2Sihb8IMhgSGRA1XmlSAKe+rwLXkjpS\r\nSf2SzPQ8ISvlpN2kBliAIviri1hFqNwkjdxQWpgovUZ/KXjmeFdcy+d7THn2\r\n+39KaFom5jnLDMU4chrnOS39A6FaK6rZn9Q=\r\n=MqZG\r\n-----END PGP SIGNATURE-----\r\n","size":7362},"_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canonicalize_2.0.0_1680464723553_0.9378452745724757"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-02T19:45:23.742Z","publish_time":1680464723742},"2.1.0":{"name":"canonicalize","version":"2.1.0","description":"JSON canonicalize function ","main":"lib/canonicalize.js","types":"lib/canonicalize.d.ts","bin":{"canonicalize":"bin/canonicalize.js"},"directories":{"example":"examples","lib":"lib"},"scripts":{"pretest":"semistandard --fix","test":"ava","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com "}],"devDependencies":{"ava":"*","semistandard":"*","jsonfile":"*","nyc":"*"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","gitHead":"7fed74ed8addd9f2fe4b2ea4c1c7caf7b793ead2","_id":"canonicalize@2.1.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-F705O3xrsUtgt98j7leetNhTWPe+5S72rlL5O4jA1pKqBVQ/dT1O1D6PFxmSXvc0SUOinWS57DKx0I3CHrXJHQ==","shasum":"92a20ecfb94e96591badf4977dc2fb1bfbc31dc5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-2.1.0.tgz","fileCount":20,"unpackedSize":23534,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFbiAk6MUdNWL8VXzlq+wT7u9E2cLAx+TLI6iOy5in6mAiEA/X0ZnkOroOwsPxqKaMgoAAEzzSvz87fxld32NjKK70o="}],"size":7709},"_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/canonicalize_2.1.0_1742334229733_0.003972141980738586"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-18T21:43:49.923Z","publish_time":1742334229923,"_source_registry_name":"default"},"3.0.0":{"name":"canonicalize","version":"3.0.0","description":"JSON canonicalize function","type":"module","exports":{".":{"import":"./lib/canonicalize.js","types":"./lib/canonicalize.d.ts"}},"main":"lib/canonicalize.js","types":"lib/canonicalize.d.ts","bin":{"canonicalize":"bin/canonicalize.js"},"engines":{"node":">=18"},"scripts":{"lint":"eslint .","lint:fix":"eslint --fix .","test":"node --test test/*.js","coverage":"c8 npm test","coveragehtml":"c8 report -r html","precoveragehtml":"npm run coverage"},"repository":{"type":"git","url":"git+https://github.com/erdtman/canonicalize.git"},"keywords":["json","canonical","canonicalize","signing","crypto"],"contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com"}],"devDependencies":{"@eslint/js":"^9.0.0","c8":"^10.0.0","eslint":"^9.0.0","globals":"^15.0.0"},"license":"Apache-2.0","bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"homepage":"https://github.com/erdtman/canonicalize#readme","_id":"canonicalize@3.0.0","gitHead":"aba9209d044f2729c51141d8a73b11e80816e42c","_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-yYLfHyDMIXRyRqsKBRLX023riFLpXY2YOfdtqKXZRZy9qsfOJ9U+4F9YZL7MEzL5+ziN2x2nlBvY/Voi3EBljA==","shasum":"a8073c48c1835631e1829d759078d2bbf48487fc","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-3.0.0.tgz","fileCount":6,"unpackedSize":16314,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC7cekEMq4Y2HaJhFm6/oWqL71xe17UTAXC/t8FFes1EAiAjuFKYI105yoU19D1BjfdYG31B/fVJ8WUnozdY/Xl6Vg=="}],"size":6020},"_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"directories":{},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/canonicalize_3.0.0_1775681432035_0.7688209301595388"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-04-08T20:50:32.230Z","publish_time":1775681432230,"_source_registry_name":"default"},"4.0.0":{"_id":"canonicalize@4.0.0","bin":{"canonicalize":"bin/canonicalize.js"},"bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"dist":{"shasum":"b13b8e26b9043a56cb751c27bee8e0c2203bb9cc","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-4.0.0.tgz","fileCount":6,"integrity":"sha512-FEdXzwWs+N3rZqEqpqleiY9M1A6IAf9oo1zHFABnLW9FcJ/jzsu+G/Ks3Hq3FglmPKe80GeGBw8ZXLEnwPB0vQ==","signatures":[{"sig":"MEUCIE4gbqKrxbKiOwFVR5aOxn4Dj0hYlhqH9ZV/pTowt6CaAiEAzJq5+DYSMkZYvd/qJdFsYnfFWjLQibrOOUUFuBN/5e0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCEG/ZSodfk3BKa56eDVZ2zbS9rZTFKPqjnc+/XNBOWaAIhAK0EjuljclrBRkwgH/wwb3AUc9veoldy8e9sGNMXoAm4"}],"unpackedSize":16897,"size":6205},"main":"lib/canonicalize.js","name":"canonicalize","type":"module","types":"lib/canonicalize.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./lib/canonicalize.d.ts","import":"./lib/canonicalize.js"}},"gitHead":"c1b08c3771d681c8bd9c4d8765e00f2f717482f8","license":"Apache-2.0","scripts":{"lint":"eslint .","test":"node --test test/*.js","coverage":"c8 npm test","lint:fix":"eslint --fix .","coveragehtml":"c8 report -r html","precoveragehtml":"npm run coverage"},"version":"4.0.0","_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"homepage":"https://github.com/erdtman/canonicalize#readme","keywords":["json","canonical","canonicalize","signing","crypto"],"repository":{"url":"git+https://github.com/erdtman/canonicalize.git","type":"git"},"_npmVersion":"11.13.0","description":"JSON canonicalize function","directories":{},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_nodeVersion":"26.1.0","contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com"}],"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","globals":"^15.0.0","@eslint/js":"^9.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/canonicalize_4.0.0_1786534564723_0.8715549599871353"},"_cnpmcore_publish_time":"2026-08-12T11:36:04.809Z","publish_time":1786534564809,"_source_registry_name":"default"},"5.0.0":{"_id":"canonicalize@5.0.0","bin":{"canonicalize":"bin/canonicalize.js"},"bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"dist":{"shasum":"a37d49eb594e311b142b8be6ae0fee74e8f2f345","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-5.0.0.tgz","fileCount":6,"integrity":"sha512-O/NCg79G0/TWoD3Fo6scOMfP4p7/TsxRXVmRo9mEfD6h/5y5o1wtVbKyBO0E2i7FEcqe5tRijyAH/IWHIHMH4w==","signatures":[{"sig":"MEUCICBagpTTEfeGaWyPfsSYbXlV2I5WFJTj7kxIXS27RU6SAiEAuN8QLZJWSIlUQCtK0eG110uhKgWYbX3LOqbpYZtE6BA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAdnmoPGxboF+NAspPj8T2FL1002GGJE97v+2aaGbkjGAiEAwVysWrFzSNZdNBWplWRzcEthwj8zvyRFRRBYYZKXFTs="}],"unpackedSize":23588,"size":8325},"main":"lib/canonicalize.js","name":"canonicalize","type":"module","types":"lib/canonicalize.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./lib/canonicalize.d.ts","import":"./lib/canonicalize.js"}},"gitHead":"7d97c70c79c9f52070e6c24c38a92f0dd9b32a57","license":"Apache-2.0","scripts":{"lint":"eslint .","test":"node --test test/*.js","coverage":"c8 npm test","lint:fix":"eslint --fix .","coveragehtml":"c8 report -r html","precoveragehtml":"npm run coverage"},"version":"5.0.0","_npmUser":{"name":"anonymous","email":"samuel@erdtman.se"},"homepage":"https://github.com/erdtman/canonicalize#readme","keywords":["json","canonical","canonicalize","signing","crypto"],"repository":{"url":"git+https://github.com/erdtman/canonicalize.git","type":"git"},"_npmVersion":"11.19.0","description":"JSON canonicalize function","directories":{},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_nodeVersion":"26.7.0","contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com"}],"_hasShrinkwrap":false,"devDependencies":{"c8":"^12.0.0","eslint":"^9.0.0","globals":"^15.0.0","@eslint/js":"^9.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/canonicalize_5.0.0_1788898594800_0.9856294192293287"},"_cnpmcore_publish_time":"2026-09-08T20:16:34.912Z","publish_time":1788898594912,"_source_registry_name":"default"},"5.1.0":{"_id":"canonicalize@5.1.0","bin":{"canonicalize":"bin/canonicalize.js"},"bugs":{"url":"https://github.com/erdtman/canonicalize/issues"},"dist":{"shasum":"4e429a81a542933e8db7647b7e916cbdb60d272c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/canonicalize/-/canonicalize-5.1.0.tgz","integrity":"sha512-bab9+WefZljqQ8jT0qRwVmTyzAUU63K97QIQD3agynIBrb6sa5M2eAy8Hv8K3p4V9+ONVYZKtGYl4Dg+/5Gumw==","fileCount":6,"unpackedSize":24474,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/canonicalize@5.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAJIFapJnNmSEens1O7RMuHVcQG0KR1avwmtShbt2mUIAiEAwdyEn3AMnGY0SavXfXUqaKOySYnXanfkCZZOluSfDkA="}],"size":8688},"main":"lib/canonicalize.js","name":"canonicalize","type":"module","types":"lib/canonicalize.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./lib/canonicalize.d.ts","import":"./lib/canonicalize.js","default":"./lib/canonicalize.js"}},"gitHead":"31fb117afde3ef305b2e1d99bde539bf6300bc62","license":"Apache-2.0","scripts":{"lint":"eslint .","test":"node --test test/*.js","coverage":"c8 npm test","lint:fix":"eslint --fix .","coveragehtml":"c8 report -r html","prepublishOnly":"npm run lint && npm test","precoveragehtml":"npm run coverage"},"version":"5.1.0","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:34722c95-a026-4671-b343-a58eac0401e0"},"approver":{"name":"samuelerdtman","email":"samuel@erdtman.se"}},"homepage":"https://github.com/erdtman/canonicalize#readme","keywords":["json","canonical","canonicalize","signing","crypto"],"repository":{"url":"git+https://github.com/erdtman/canonicalize.git","type":"git"},"_npmVersion":"12.0.2","description":"JSON canonicalize function","directories":{},"maintainers":[{"name":"anonymous","email":"samuel@erdtman.se"}],"_nodeVersion":"22.23.2","contributors":[{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},{"name":"Anders Rundgren","email":"anders.rundgren.net@gmail.com"}],"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"devDependencies":{"c8":"^12.0.0","eslint":"^9.0.0","globals":"^15.0.0","@eslint/js":"^9.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/canonicalize_5.1.0_1789764404011_0.06727641027281339"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-18T20:46:44.100Z","publish_time":1789764404100,"_source_registry_name":"default"}},"dist-tags":{"latest":"5.1.0"},"name":"canonicalize","time":{"created":"2022-01-26T16:03:45.301Z","modified":"2026-09-18T20:47:01.233Z","1.0.8":"2021-11-26T17:24:19.974Z","1.0.7":"2021-11-26T17:15:45.801Z","1.0.6":"2021-11-26T08:05:12.582Z","1.0.5":"2020-11-18T20:59:34.540Z","1.0.4":"2020-11-17T18:38:54.074Z","1.0.3":"2020-08-05T20:35:08.477Z","1.0.2":"2020-08-05T20:21:25.251Z","1.0.1":"2019-02-27T22:14:18.535Z","1.0.0":"2018-05-04T11:35:51.189Z","2.0.0":"2023-04-02T19:45:23.742Z","2.1.0":"2025-03-18T21:43:49.923Z","3.0.0":"2026-04-08T20:50:32.230Z","4.0.0":"2026-08-12T11:36:04.809Z","5.0.0":"2026-09-08T20:16:34.912Z","5.1.0":"2026-09-18T20:46:44.100Z"},"readme":"[![CI](https://github.com/erdtman/canonicalize/actions/workflows/ci.yml/badge.svg)](https://github.com/erdtman/canonicalize/actions/workflows/ci.yml)\n# canonicalize\nJSON canonicalize function. Creates crypto safe predictable canonicalization of\nJSON as defined by [RFC8785](https://tools.ietf.org/html/rfc8785).\n\nTypeScript type definitions are included.\n\n## Usage\n### Normal Example\n```js\nimport canonicalize from 'canonicalize';\nconst json = {\n\t\"from_account\": \"543 232 625-3\",\n\t\"to_account\": \"321 567 636-4\",\n\t\"amount\": 500,\n\t\"currency\": \"USD\"\n}\nconsole.log(canonicalize(json));\n// output: {\"amount\":500,\"currency\":\"USD\",\"from_account\":\"543 232 625-3\",\"to_account\":\"321 567 636-4\"}\n```\n### Crazy Example\n```js\nimport canonicalize from 'canonicalize';\nconst json = {\n\t\"1\": {\"f\": {\"f\":  \"hi\",\"F\":  5} ,\"\\n\":  56.0},\n\t\"10\": { },\n\t\"\":  \"empty\",\n\t\"a\": { },\n\t\"111\": [ {\"e\":  \"yes\",\"E\":  \"no\" } ],\n\t\"A\": { }\n}\nconsole.log(canonicalize(json));\n// output: {\"\":\"empty\",\"1\":{\"\\n\":56,\"f\":{\"F\":5,\"f\":\"hi\"}},\"10\":{},\"111\":[{\"E\":\"no\",\"e\":\"yes\"}],\"A\":{},\"a\":{}}\n```\n### From CommonJS\nNode 22.12 and later can `require()` an ES module. The module namespace is\nreturned as-is, so the function is reached through its `default` property:\n```js\nconst canonicalize = require('canonicalize').default;\nconsole.log(canonicalize({ b: 123, a: 'string' }));\n// output: {\"a\":\"string\",\"b\":123}\n```\n### Via CLI\nThe function can be executed directly using npx without explicit installation. This allows JSON files and arbitrary input to be canonicalized with standard input/output:\n```bash\n# Input from file\nnpx canonicalize < input.json > output.json\n\n# Input from string\necho '{\n\t\"from_account\": \"543 232 625-3\",\n\t\"to_account\": \"321 567 636-4\",\n\t\"amount\": 500,\n\t\"currency\": \"USD\"\n}' | npx canonicalize > simple-data.json\n\n# Input from web API\ncurl --silent https://pokeapi.co/api/v2/pokemon/pikachu | npx canonicalize > pikachu.json\n```\n## Best practices for signature schemes\nHere follows an example of how untrusted input can be processed and validated\nbefore being treated as safe.\n\n```js\nimport canonicalize from 'canonicalize';\n\n// The received document is untrusted until validateSignature succeeds\nconst untrustedInputText = /* raw document as received */;\nconst inputSignature = /* detached signature as received */;\n\n// Duplicate property names are resolved here, last-one-wins, by JSON.parse —\n// before canonicalize() ever sees the data. To reject documents that carried\n// duplicates on the wire, inspect untrustedInputText before this line.\nconst untrustedInputObject = JSON.parse(untrustedInputText);\n\nconst canonicalText = canonicalize(untrustedInputObject);\nconst isValid = validateSignature(canonicalText, inputSignature);\n\nif (isValid) {\n  // canonicalText is the only artifact the signature covers.\n  //\n  // untrustedInputObject is not that artifact. It was derived from\n  // untrustedInputText and was never validated. It is parsable, but it is not\n  // what was signed — do not treat the two as interchangeable.\n  const validatedInput = JSON.parse(canonicalText);\n\n  // From here on, operate on validatedInput.\n}\n```\n\nForwarding `untrustedInputText` downstream passes on bytes an attacker could\nhave altered while verification still succeeded; a consumer that resolves\nduplicate property names first-one-wins will then read a different document\nthan the one you validated.\n\n## Comparison with other implementations\n[A reproducible comparison of the JavaScript JCS libraries on npm](https://erdtman.github.io/json-canonicalisation-comparison/)\nchecks each one against the RFC 8785 test vectors, 10,000 ES6\nnumber-serialization vectors, and edge cases such as lone surrogates, alongside\nbenchmarks, maximum nesting depth, output validity and bundle size.\n\n## Install\nAs a library:\n```\nnpm install canonicalize --save\n```\nAs a CLI tool:\n```\nnpm install -g canonicalize\ncanonicalize < input.json > output.json\n```\n## Test\n```\nnpm test\n```","users":{}}