{"name":"dag-cbor-links","version":"2.0.1","description":"Usage:","main":"index.js","scripts":{"test":"tap test/test-*.js"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"http://www.mikealrogers.com"},"license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/mikeal/dag-cbor-links.git"},"dependencies":{"cids":"^1.0.0","ipld-dag-cbor":"^0.17.0"},"devDependencies":{"babel-eslint":"^10.0.1","eslint":"^7.5.0","eslint-config-standard":"^14.1.1","eslint-config-standard-babel":"0.0.2","eslint-plugin-babel":"^5.1.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","tap":"^14.10.8"},"eslintConfig":{"parser":"babel-eslint","extends":["standard","standard-babel"],"plugins":["babel","standard"]},"gitHead":"df0218835ebed6802cc9241fc4b630c9dc69d3ef","bugs":{"url":"https://github.com/mikeal/dag-cbor-links/issues"},"homepage":"https://github.com/mikeal/dag-cbor-links#readme","_id":"dag-cbor-links@2.0.1","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-sFuL9QVm9B39igSZjX5O0iUftlKZuXreFrlZ0XAHz8mXuqWZn7iUxeqX7n+m5bZ4ojq47MlMVkSfYlV4jMvnHw==","shasum":"45013562b6784311ae854407cc0981455a6163f6","tarball":"http://registry-npm.ywwl.com/dag-cbor-links/download/dag-cbor-links-2.0.1.tgz","fileCount":5,"unpackedSize":4673,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgSnrCRA9TVsSAnZWagAArnEQAJAwpeiD5onHPZrjScNX\nQLPrmFkTEzfQsh5vYJoQM4xYqGcKnyuCVkIUATiDIMELKB/zfjUtXXMlae/k\nrwZVLA0WPN2bqmaGwiTWdWrGUNwoA/XRGLNHK2ZBAE5pkpIp0EobGjYcQown\nSBD+ZgaY19sgqi3LRl8yLkqGfjwuVheeMN0ULOgq93X8sXRB6vzde3dRJwk7\nirbh2cpU2demOJw9Gd08D15LvxH+bXx/nt71X86W5R8sneq2XX00GtVsRBS6\nacO3VkN5bSqAD5VLUVQP4qcgsNh9JA9LnsAkZ90nb2+5wV9DuizKLfwOeq+s\n/M9vRvX4aShgmgCYWbMIeFmU4GsCnJgzAirzL7ixMnUNfMnXkWe9nYO0dtfY\n901Vyobb8hAnajs9M/TRrjAAd6IrngvfODMfIVFFLnc+C2fzvc7z5JhWkTvO\nEFXdbUxjdKLuAt1tvsNU6scN8Zp0kLRF8t8T2RPANX67twrLRgfVoZ95aL5v\ng8HHU8TIc2mkNHFnihlzjSZ/JxsIKwyUAlx9Boysn5BXEt7LEIWvSnvHYQ/l\nJOALO1DLhYMQYiIGdfVh5R+rgp4XQRmzt5D4tlC6XCsCwyo0Jh9u/tMn8/Yd\n7Wp9MZjF7MGZBceYkKYa82k9+lRYViIT1XkkQeLgC2teZpRWUm+z1xtPjmUL\neCmm\r\n=jeWz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRnY1dsNs/YAttIi5PAZ+qxgo8PNZd4KHBJgmdHNauPAiB966m5qYojXLOKxtHYxh4M7Y2ZI0LBMW9BiJ+bK2xMyw=="}],"size":1949,"noattachment":false,"key":"/dag-cbor-links/-/dag-cbor-links-2.0.1.tgz"},"maintainers":[{"name":"mikeal","email":"mikeal.rogers@gmail.com"}],"_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dag-cbor-links_2.0.1_1602300394845_0.42791317803821705"},"_hasShrinkwrap":false,"readme":"# Get all links in a single `dag-cbor` node.\n\nUsage:\n\n```javascript\nlet links = require('dag-cbor-links')\nlet cbor = require('dag-cbor-sync')()\n\nlet node = {\n  mylink: {'/': 'zdpuAkv7jA671owT26AnJiFXG9usHmCAW6MTzpwFJw46X1PLG'},\n  myarray: [\n    {'/': 'zdpuAkv7jA671owT26AnJiFXG9usHmCAW6MTzpwFJw46X1PLG'}\n  ]\n}\n\nlet buffer = cbor.serialize(node)\nfor (let link of links(buffer)) {\n  console.log(link)\n  /* prints:\n    ['mylink', CID(zdpuAkv7jA671owT26AnJiFXG9usHmCAW6MTzpwFJw46X1PLG)]\n    ['myarray/0', CID(zdpuAkv7jA671owT26AnJiFXG9usHmCAW6MTzpwFJw46X1PLG)]\n  */\n}\n```\n\n","publish_time":1602300394950,"_cnpm_publish_time":1602300394950,"dist-tags":{"latest":"3.0.0"}}