{"name":"dag-cbor-links","version":"2.0.2","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":"088531df54e67d51427a8b78afbb0e37a8fb500d","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.2","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-PS5skw2eGKVZ1VVu9wquoIoefgMvKhl9/OItzf+7UMot0Nnd3oe/Ai5AP48GvEkAi6GkmglhWwuoKF23hTHJqQ==","shasum":"aac10b4472ddedda05b2e7d606b3ca760f457e5e","tarball":"http://registry-npm.ywwl.com/dag-cbor-links/download/dag-cbor-links-2.0.2.tgz","fileCount":5,"unpackedSize":4712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgTzyCRA9TVsSAnZWagAAmXEQAJrcAdqLfmte+TpFeq2L\n3VBU36AjpVm2hgVnomRwRXOtx61X8pjrt2dpwN4FxXFiyK8hdJfJoKn+QTYj\nFubsDzjpAB+jfEFwbbhF4X9rfts5lXGScR9AuHmvcNz4ASz7U13u5bvIl00J\ndTlCOTYU5M9+uH6ypE6/uQ6MzaoHwLYgUf7WLCI931YxKf3TSa3I9XiSn89M\nftOogKbo0pywGxT4hwo9ibja4fQdfRdASlYMiLatSKJe0w+7kSTRXUowDEe/\nXKtwUF1WZUVhxwoDAKFiFXYd5yI3b/t20gPKRbjkzJliw/HYLZvsMTOr0XbW\nlVv80bo+aFvJpgbP4khnjftdpmln3ffE1jYlhp0alfyyqsixzvEziC2S2mkB\nxZ6u1cFiuYZ+Vjw8fXia80LY+Wbnz+hjJSu8rfgrGdski1vCjFXAmsm4jrgJ\n4V71k2lJmxkxyzjN/4c5tbiMn0H/P0x4p4QkUSH3eGE750oG2WfFt/ISwqze\ncjXmICV6bhsY1hk5wshpH71XfjPSAFKfRKAc2YUVmd1eSk/geBatogTsaeWX\nS1A58wHNllfygKZ5eh67CKxujtEbO0yG1RR5bO/dq/U1aJ83zEF5C7lGYNus\ntaC6zmY4gGd0bagrsV8qksXIZ1p0jyqWxyMFaOFmhO6v0K20cdzcJn3OdkfO\nhEqG\r\n=MzrQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUkK1mMsUaniLZ7Nxylot9q0OQJJ5mkmqcd0aMz+VyJgIgVoM28XDh9gWyOBHBMJENOVmrY49jsSBDKZfTZBrRNzM="}],"size":1961,"noattachment":false,"key":"/dag-cbor-links/-/dag-cbor-links-2.0.2.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.2_1602305266003_0.8876710153345018"},"_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":1602305266172,"_cnpm_publish_time":1602305266172,"dist-tags":{"latest":"3.0.0"}}