{"_id":"@digitalcredentials/rdf-canonize","_rev":"7-d670f11f1384e597976120017f221291","name":"@digitalcredentials/rdf-canonize","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@digitalcredentials/rdf-canonize","version":"1.0.0","keywords":["JSON","Linked Data","JSON-LD","RDF","Semantic Web","jsonld"],"license":"BSD-3-Clause","_id":"@digitalcredentials/rdf-canonize@1.0.0","maintainers":[{"name":"kimhd","email":"kimdhamilton@gmail.com"},{"name":"uligall","email":"ulrich.gallersdoerfer@tum.de"},{"name":"alexander.muehle","email":"Alexander.Muehle@hpi.de"},{"name":"stuartf","email":"stuart.freeman@c21u.gatech.edu"},{"name":"jchartrand","email":"jc.chartrand@gmail.com"},{"name":"kiliankae","email":"kilian.kaeslin@tum.de"}],"homepage":"https://github.com/digitalcredentials/rdf-canonize","bugs":{"url":"https://github.com/digitalcredentials/rdf-canonize/issues"},"dist":{"shasum":"6297d512072004c2be7f280246383a9c4b0877ff","tarball":"https://registry.npmjs.org/@digitalcredentials/rdf-canonize/-/rdf-canonize-1.0.0.tgz","fileCount":16,"integrity":"sha512-z8St0Ex2doecsExCFK1uI4gJC+a5EqYYu1xpRH1pKmqSS9l/nxfuVxexNFyaeEum4dUdg1EetIC2rTwLIFhPRA==","signatures":[{"sig":"MEQCIA6aRb3rqcaSAZgsGu1ixcHsUNtJWgxlonpDo2JH098yAiAaznFQYO8LqxL6WqLl79ehmfYsWQGZcHfmGsIZk/dYCw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":77928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpYrFCRA9TVsSAnZWagAApLIP/2JK53qXPZuz6QV+b7WR\n0Gd+K1NPVxpmx1RaSGy3k9qTbmBGqfk5gANlIhXLmo9l3OD8qEZCkgGEA+Io\ntuFbK5x0dEZOLwT+g9wXR2mVPoov7Z8SbDw8jq+myaRisOOpRu5oVS1enHlh\nGakmjxdOwH6eowpOVUFC0hH+gGQrSAuvvT7s4cruSMwUFme0sM/oNAFs+X4W\nrF8eW+dKO3q/fA9/HW1lBRLI0OTPmPrDWduAZvejCMneg5pjKW+Yy6R7eyNw\nOCt608ZGmw87oB5RdzQqHrq5CnKyFNUuSt60PJpiqMlWzJmxyG0x8WMl+E7t\nMqsZULds7N6uPzG6xtVXDRKVLfUlrZ41Xq48hp9tge7egjPH6u1SOdfWFo0x\nJcX597xtqZ8HOWMNnTUCucCPnJ/ULPlA5AoHptfiUxceiAzRf5txa6+h3ywD\nuuhoj9rLL4HF9UwbPNByehiz9wq7xLX3ClUloYfI36vjL5kiBDJ1mZr9KGE3\n5CiH5Xf3IFXRXRqnkxKB10fci/VoqXZmCaefm0iHWhteT7bAB4PWywj811kf\nafLlWctsRZCLJSJyKm3/cJXRg40E7G8Mfqox3zxr35D/3lM82bCNBtN9A6WY\navKJqRA5u6pj6MeMeiwpd/TTHwlpsk6yLodbbTW4KtaRMrV+GhUTS5bt6sPz\nOQyD\r\n=oYCQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","browser":{"fast-text-encoding":false,"rdf-canonize-native":false,"isomorphic-webcrypto":false,"./lib/MessageDigest.js":"./lib/MessageDigest-browser.js","./lib/MessageDigest-reactnative.js":false},"engines":{"node":">=12"},"gitHead":"13286c6fb612493c7a6d4a2cd15e789fafb315b9","scripts":{"lint":"eslint '*.js' 'lib/*.js' 'test/*.js' 'benchmark/*.js'","test":"npm run test-node","coverage":"NODE_ENV=test nyc --reporter=lcov --reporter=text-summary npm test","benchmark":"node benchmark/benchmark.js","test-node":"NODE_ENV=test mocha -R spec --check-leaks","coverage-ci":"NODE_ENV=test nyc --reporter=lcovonly npm run test","coverage-report":"nyc report","fetch-test-suite":"if [ ! -e test-suites/normalization ]; then git clone --depth 1 https://github.com/json-ld/normalization.git test-suites/normalization; fi"},"_npmUser":{"name":"kimhd","email":"kimdhamilton@gmail.com"},"repository":{"url":"git+https://github.com/digitalcredentials/rdf-canonize.git","type":"git"},"_npmVersion":"6.14.8","description":"An implementation of the RDF Dataset Normalization Algorithm in JavaScript","directories":{},"_nodeVersion":"14.8.0","dependencies":{"fast-text-encoding":"^1.0.3","isomorphic-webcrypto":"^2.3.8"},"react-native":{"rdf-canonize-native":false,"./lib/MessageDigest.js":"./lib/MessageDigest-reactnative.js","./lib/MessageDigest-browser.js":false},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.2.0","delay":"^5.0.0","mocha":"^8.3.2","eslint":"^7.23.0","nsolid":"0.0.0","benchmark":"^2.1.4","mocha-lcov-reporter":"^1.3.0","eslint-config-digitalbazaar":"^2.6.1"},"_npmOperationalInternal":{"tmp":"tmp/rdf-canonize_1.0.0_1621461700712_0.2408705159159099","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-05-19T22:01:40.411Z","modified":"2026-09-30T17:44:44.122Z","1.0.0":"2021-05-19T22:01:40.912Z"},"bugs":{"url":"https://github.com/digitalcredentials/rdf-canonize/issues"},"license":"BSD-3-Clause","homepage":"https://github.com/digitalcredentials/rdf-canonize","keywords":["JSON","Linked Data","JSON-LD","RDF","Semantic Web","jsonld"],"repository":{"url":"git+https://github.com/digitalcredentials/rdf-canonize.git","type":"git"},"description":"An implementation of the RDF Dataset Normalization Algorithm in JavaScript","maintainers":[{"email":"dzagidulin@gmail.com","name":"codenamedmitri"},{"email":"jc.chartrand@gmail.com","name":"jchartrand"},{"email":"kerri@dccommons.org","name":"klemoie"},{"email":"nate.otto@dccommons.org","name":"nateotto.dcc"}],"readme":"# rdf-canonize\n\n[![Build status](https://img.shields.io/github/workflow/status/digitalbazaar/rdf-canonize/Node.js%20CI)](https://github.com/digitalbazaar/rdf-canonize/actions?query=workflow%3A%22Node.js+CI%22)\n[![Coverage status](https://img.shields.io/codecov/c/github/digitalbazaar/rdf-canonize)](https://codecov.io/gh/digitalbazaar/rdf-canonize)\n[![Dependency Status](https://img.shields.io/david/digitalbazaar/rdf-canonize.svg)](https://david-dm.org/digitalbazaar/rdf-canonize)\n\nAn implementation of the [RDF Dataset Normalization Algorithm][] in JavaScript.\n\nIntroduction\n------------\n\n...\n\nInstallation\n------------\n\n### Node.js + npm\n\n```\nnpm install rdf-canonize\n```\n\n```js\nconst canonize = require('rdf-canonize');\n```\n\n### Node.js + npm + native bindings\n\nThis package has support for [rdf-canonize-native][]. This package can be\nuseful if your application requires doing many canonizing operations\nasyncronously in parallel or in the background. It is **highly recommended**\nthat you understand your requirements and benchmark using JavaScript vs native\nbindings. The native bindings add overhead and the JavaScript implementation\nmay be faster with modern runtimes.\n\nThe native bindings are not installed by default and must be explicitly\ninstalled.\n\n```\nnpm install rdf-canonize\nnpm install rdf-canonize-native\n```\n\nNote that the native code is not automatically used. To use the native bindings\nyou must have them installed and set the `useNative` option to `true`.\n\n```js\nconst canonize = require('rdf-canonize');\n```\n\n### Browser + npm\n\nInstall in your project with npm and use your favorite browser bundler tool.\n\nExamples\n--------\n\n```js\nconst dataset = {\n  // ...\n};\n\n// canonize a data set with a particular algorithm with async/await\nconst canonical = await canonize.canonize(dataset, {algorithm: 'URDNA2015'});\n\n// canonize a data set with a particular algorithm and force use of the\n// native implementation\nconst canonical = await canonize.canonize(dataset, {\n  algorithm: 'URDNA2015',\n  useNative: true\n});\n```\n\nRelated Modules\n---------------\n\n* [jsonld.js][]: An implementation of the [JSON-LD][] specification.\n\nTests\n-----\n\nThis library includes a sample testing utility which may be used to verify\nthat changes to the processor maintain the correct output.\n\nThe test suite is included in an external repository:\n\n    https://github.com/json-ld/normalization\n\nThis should be a sibling directory of the rdf-canonize directory or in a\n`test-suites` dir. To clone shallow copies into the `test-suites` dir you can\nuse the following:\n\n    npm run fetch-test-suite\n\nNode.js tests can be run with a simple command:\n\n    npm test\n\nIf you installed the test suites elsewhere, or wish to run other tests, use\nthe `TEST_DIR` environment var:\n\n    TEST_DIR=\"/tmp/tests\" npm test\n\nTo generate earl reports:\n\n    # generate the earl report for node.js\n    EARL=earl-node.jsonld npm test\n\nBrowser testing with karma is done indirectly through [jsonld.js][].\n\nBenchmark\n---------\n\nSee docs in the [benchmark README](./benchmark/README.md).\n\nSource\n------\n\nThe source code for this library is available at:\n\nhttps://github.com/digitalbazaar/rdf-canonize\n\nCommercial Support\n------------------\n\nCommercial support for this library is available upon request from\n[Digital Bazaar][]: support@digitalbazaar.com\n\n[Digital Bazaar]: https://digitalbazaar.com/\n[JSON-LD]: https://json-ld.org/\n[RDF Dataset Normalization Algorithm]: https://json-ld.github.io/normalization/\n[jsonld.js]: https://github.com/digitalbazaar/jsonld.js\n[rdf-canonize-native]: https://github.com/digitalbazaar/rdf-canonize-native\n","readmeFilename":"README.md"}