{"name":"@ipld/dag-json","version":"5.0.0","keywords":["IPFS","IPLD"],"author":{"url":"https://www.mikealrogers.com/","name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"license":"(Apache-2.0 AND MIT)","_id":"@ipld/dag-json@5.0.0","maintainers":[{"name":"daviddias","email":"mail@daviddias.me"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"vmx","email":"volker.mische@gmail.com"}],"homepage":"https://github.com/ipld/js-dag-json","bugs":{"url":"https://github.com/ipld/js-dag-json/issues"},"dist":{"shasum":"95455575e3bf1c29e226c06ff29bfd10755e7ca7","tarball":"http://registry-npm.ywwl.com/@ipld/dag-json/download/@ipld/dag-json-5.0.0.tgz","fileCount":16,"integrity":"sha512-ZURuwb9vJktRLO4L0/hx3iMtoEAwpSgzuc9XQ5U2u3YSoT9ZK+6NxXqtWMaurst3PEFq+Fg1PBxTQmaNKcKrgQ==","signatures":[{"sig":"MEUCIQDtQwENztJxma/Vp1LJFJjUNYsPBDZ8oWkSogv0pqiCgQIgPsQN002u8gD2MkGKZWVoY/k+nC1lTWE9rFyyTsKYbeE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghkLdCRA9TVsSAnZWagAANEQP/iB+a33Gt41ugjrd+Pei\n8z7Jt+0ljsMGB6nfL+CWmtSxvo9+sdkgdfkNcYXiXZpzCv68xQLJWMoJKvF2\nMywLrvYPHkezGy/sJ74wRVKPiCAUsj2FnIilJcCN0+WibFlKXbs4ywgPeHqT\nR+8pWGv1ZT9EU5LqcSVHhRn7kPIoXz+u3ua2sQUCiRzX4owk/W3YnfiF6/uL\nLHsjvn+5oQQR60puGW2TtPQG7+uWfKGUC/fCe9nKqUibleDuhsNC0b8zifeq\nFGbv+whZ7U68th8SuWyF+bBqeGBIL/WVEPcq5yBsxzzZ3mZAAAQkPvctHBOA\nUxbITJ84Bk9wpQldulIfWrJg0kURxam3VL9SVgQdK/DykOaRzUeq5/EzIJ36\nZZtkJTCDdlo2McBk7H0NewZz1bqTHfVNvCrh0uVwuTQdtuG5B/onu2b8ZbQl\nMamjuh4JK7bxtDuBxVUY+X5ZCH4YVonwl389IVJ2C+D739KgtjAHknmX0yPX\nRggAs06yxuIhaOvgP/XGh8pRieHHfs0FDfnMeXA/m6KjJbczaB10rQ1Szt3U\n+NhUVwNXHO871SKxnD6gIlmIqUb/uWwwlk87EmwZEe5MCD+nvWK29PgabqhB\nMwzeVSt0GAZ6m6sz4DJMR/NdSGE5br78jmoqeLUpDq0YLajHYjdmJC3AgKdv\n/xaO\r\n=L9nW\r\n-----END PGP SIGNATURE-----\r\n","size":5436,"noattachment":false,"key":"/@ipld/dag-json/-/@ipld/dag-json-5.0.0.tgz"},"main":"./cjs/index.js","types":"./types/index.d.ts","browser":"./cjs/index.js","exports":{"import":"./esm/index.js","browser":"./esm/index.js","require":"./cjs/index.js"},"scripts":{"lint":"standard *.js test/*.js","test":"npm run lint && npm run test:node && npm run test:cjs && npm run test:ts","build":"npm run build:js && npm run build:types","publish":"ipjs publish","test:ts":"npm run build:types && npm run test --prefix test/ts-use","build:js":"ipjs build --tests --main && npm run build:copy","coverage":"c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080","test:cjs":"npm run build:js && mocha dist/cjs/node-test/test-*.js && npm run test:cjs:browser","test:node":"hundreds mocha test/test-*.js","build:copy":"cp -a tsconfig.json index.js dist/ && mkdir -p dist/test && cp test/*.js dist/test/","build:types":"npm run build:copy && cd dist && tsc --build","test:cjs:browser":"polendina --page --worker --serviceworker --cleanup dist/cjs/node-test/test-*.js"},"_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"repository":{"url":"git+https://github.com/ipld/js-dag-json.git","type":"git"},"_npmVersion":"6.14.12","description":"JSON Directed Acrylic Graph (DAG-JSON) for IPLD","directories":{"test":"test"},"_nodeVersion":"12.22.1","dependencies":{"multiformats":"^7.0.0","lodash.transform":"^4.6.0","@ipld/is-circular":"^2.0.0","@types/lodash.transform":"^4.6.6","fast-json-stable-stringify":"^2.1.0"},"typesVersions":{"*":{"*":["types/*"],"types/*":["types/*"]}},"_hasShrinkwrap":false,"devDependencies":{"ipjs":"^5.0.0","mocha":"^8.3.2","hundreds":"^0.0.9","standard":"^16.0.3","polendina":"^1.1.0","typescript":"^4.2.4"},"_npmOperationalInternal":{"tmp":"tmp/dag-json_5.0.0_1619411676838_0.24051104506671273","host":"s3://npm-registry-packages"},"readme":"# @ipld/dag-json\n\n[![codecov](https://img.shields.io/codecov/c/github/ipld/js-dag-json.svg?style=flat-square)](https://codecov.io/gh/ipld/js-dag-json)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipld/js-dag-json/js-test-and-release.yml?branch=master\\&style=flat-square)](https://github.com/ipld/js-dag-json/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)\n\n> JS implementation of DAG-JSON\n\n# Install\n\n```console\n$ npm i @ipld/dag-json\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make its exports available as `IpldDagJson` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/@ipld/dag-json/dist/index.min.js\"></script>\n```\n\n# Usage\n\n`@ipld/dag-json` is designed to be used within multiformats but can be used separately. `encode()`, `decode()` are available as exports, as are `name` and `code` to match with the corresponding DAG-JSON [multicodec](https://github.com/multiformats/multicodec/).\n\n# API Docs\n\n- <https://ipld.github.io/js-dag-json>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipld/js-dag-json/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](https://github.com/ipld/js-dag-json/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n# Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","publish_time":1619411677020,"_cnpm_publish_time":1619411677020,"dist-tags":{"latest":"11.0.1"}}