{"_id":"dag-cbor-sync","_rev":"4652866","name":"dag-cbor-sync","description":"Synchronous serialize/deserialize for IPLD dag-cbor.","dist-tags":{"latest":"0.6.3"},"maintainers":[{"name":"mikeal","email":""}],"time":{"modified":"2026-04-10T20:50:05.000Z","created":"2018-06-30T16:46:59.879Z","0.6.3":"2020-02-11T22:15:45.438Z","0.6.2":"2019-11-25T20:45:57.750Z","0.6.0":"2018-11-07T23:47:59.095Z","0.5.0":"2018-11-07T22:15:36.492Z","0.4.0":"2018-11-07T22:09:27.392Z","0.2.0":"2018-07-03T01:53:35.003Z","0.1.0":"2018-06-30T16:46:59.879Z"},"users":{},"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"http://www.mikealrogers.com"},"repository":{"type":"git","url":"git+https://github.com/mikeal/dag-cbor-sync.git"},"versions":{"0.6.3":{"name":"dag-cbor-sync","version":"0.6.3","description":"Synchronous serialize/deserialize for IPLD dag-cbor.","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","dependencies":{"borc":"^2.0.3","cids":"^0.7.1","ipfs-block":"^0.8.0","is-circular":"^1.0.1","multihashing-async":"^0.8.0"},"devDependencies":{"babel-eslint":"^8.2.5","eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-config-standard-babel":"0.0.2","eslint-plugin-babel":"^5.1.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","tap":"^12.0.1"},"eslintConfig":{"parser":"babel-eslint","extends":["standard","standard-babel"],"plugins":["babel","standard"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/mikeal/dag-cbor-sync.git"},"bugs":{"url":"https://github.com/mikeal/dag-cbor-sync/issues"},"homepage":"https://github.com/mikeal/dag-cbor-sync#readme","gitHead":"32526d6d2a78775de92a38978937c70f04d5f538","_id":"dag-cbor-sync@0.6.3","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"shasum":"796fc98e0fcac6f1d4f7a04b300b62592dd0f4c2","size":2151,"noattachment":false,"key":"/dag-cbor-sync/-/dag-cbor-sync-0.6.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/dag-cbor-sync/download/dag-cbor-sync-0.6.3.tgz"},"maintainers":[{"name":"mikeal","email":""}],"_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dag-cbor-sync_0.6.3_1581459345263_0.13465066976395557"},"_hasShrinkwrap":false,"publish_time":1581459345438,"deprecated":"ipld-dag-cbor is now synchronous, this library is useless.","_cnpm_publish_time":1581459345438,"_cnpmcore_publish_time":"2021-12-16T20:50:34.211Z"},"0.6.2":{"name":"dag-cbor-sync","version":"0.6.2","description":"Synchronous serialize/deserialize for IPLD dag-cbor.","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","dependencies":{"borc":"^2.0.3","cids":"^0.7.1","ipfs-block":"^0.8.0","is-circular":"^1.0.1","multihashing-async":"^0.8.0"},"devDependencies":{"babel-eslint":"^8.2.5","eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-config-standard-babel":"0.0.2","eslint-plugin-babel":"^5.1.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","tap":"^12.0.1"},"eslintConfig":{"parser":"babel-eslint","extends":["standard","standard-babel"],"plugins":["babel","standard"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/mikeal/dag-cbor-sync.git"},"bugs":{"url":"https://github.com/mikeal/dag-cbor-sync/issues"},"homepage":"https://github.com/mikeal/dag-cbor-sync#readme","gitHead":"2b48599ae3804da5ea26c1b8f63b37ce507200f7","_id":"dag-cbor-sync@0.6.2","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"shasum":"cc584be3408cf70c346fbefc507f7485e89deacf","size":2176,"noattachment":false,"key":"/dag-cbor-sync/-/dag-cbor-sync-0.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/dag-cbor-sync/download/dag-cbor-sync-0.6.2.tgz"},"maintainers":[{"name":"mikeal","email":""}],"_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dag-cbor-sync_0.6.2_1574714757630_0.26662952579150545"},"_hasShrinkwrap":false,"publish_time":1574714757750,"deprecated":"ipld-dag-cbor is now synchronous, this library is useless.","_cnpm_publish_time":1574714757750,"_cnpmcore_publish_time":"2021-12-16T20:50:34.456Z"},"0.6.0":{"name":"dag-cbor-sync","version":"0.6.0","description":"Synchronous serialize/deserialize for IPLD dag-cbor.","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","dependencies":{"borc":"^2.0.3","cids":"^0.5.3","ipfs-block":"^0.8.0","is-circular":"^1.0.1","multihashing-async":"^0.5.1"},"devDependencies":{"babel-eslint":"^8.2.5","eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-config-standard-babel":"0.0.2","eslint-plugin-babel":"^5.1.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","tap":"^12.0.1"},"eslintConfig":{"parser":"babel-eslint","extends":["standard","standard-babel"],"plugins":["babel","standard"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/mikeal/dag-cbor-sync.git"},"bugs":{"url":"https://github.com/mikeal/dag-cbor-sync/issues"},"homepage":"https://github.com/mikeal/dag-cbor-sync#readme","gitHead":"f22588b0d76f38cb6d8224db5b7fcbfd5fc06385","_id":"dag-cbor-sync@0.6.0","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"dist":{"shasum":"d7a83b21ee89beb95a81decbe7179b55af94a96a","size":2160,"noattachment":false,"key":"/dag-cbor-sync/-/dag-cbor-sync-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dag-cbor-sync/download/dag-cbor-sync-0.6.0.tgz"},"maintainers":[{"name":"mikeal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dag-cbor-sync_0.6.0_1541634478986_0.8157998728769029"},"_hasShrinkwrap":false,"publish_time":1541634479095,"deprecated":"ipld-dag-cbor is now synchronous, this library is useless.","_cnpm_publish_time":1541634479095,"_cnpmcore_publish_time":"2021-12-16T20:50:34.670Z"},"0.5.0":{"name":"dag-cbor-sync","version":"0.5.0","description":"Synchronous serialize/deserialize for IPLD dag-cbor.","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","dependencies":{"borc":"^2.0.3","cids":"^0.5.3","ipfs-block":"^0.8.0","is-circular":"^1.0.1","multihashing-async":"^0.5.1"},"devDependencies":{"babel-eslint":"^8.2.5","eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-config-standard-babel":"0.0.2","eslint-plugin-babel":"^5.1.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","tap":"^12.0.1"},"eslintConfig":{"parser":"babel-eslint","extends":["standard","standard-babel"],"plugins":["babel","standard"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/mikeal/dag-cbor-sync.git"},"bugs":{"url":"https://github.com/mikeal/dag-cbor-sync/issues"},"homepage":"https://github.com/mikeal/dag-cbor-sync#readme","gitHead":"2d812eb29dc1ea9305de9d6010de9bd31d23fbda","_id":"dag-cbor-sync@0.5.0","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"dist":{"shasum":"79f77d488d856069adfb66d24e64fe0dbcd2545d","size":2162,"noattachment":false,"key":"/dag-cbor-sync/-/dag-cbor-sync-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dag-cbor-sync/download/dag-cbor-sync-0.5.0.tgz"},"maintainers":[{"name":"mikeal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dag-cbor-sync_0.5.0_1541628936311_0.9484128275731951"},"_hasShrinkwrap":false,"publish_time":1541628936492,"deprecated":"ipld-dag-cbor is now synchronous, this library is useless.","_cnpm_publish_time":1541628936492,"_cnpmcore_publish_time":"2021-12-16T20:50:34.902Z"},"0.4.0":{"name":"dag-cbor-sync","version":"0.4.0","description":"Synchronous serialize/deserialize for IPLD dag-cbor.","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","dependencies":{"borc":"^2.0.3","cids":"^0.5.3","is-circular":"^1.0.1"},"devDependencies":{"babel-eslint":"^8.2.5","eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-config-standard-babel":"0.0.2","eslint-plugin-babel":"^5.1.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","tap":"^12.0.1"},"eslintConfig":{"parser":"babel-eslint","extends":["standard","standard-babel"],"plugins":["babel","standard"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/mikeal/dag-cbor-sync.git"},"bugs":{"url":"https://github.com/mikeal/dag-cbor-sync/issues"},"homepage":"https://github.com/mikeal/dag-cbor-sync#readme","gitHead":"b479ddb8e043ce0dbc6d964346e01cae6fe81226","_id":"dag-cbor-sync@0.4.0","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"dist":{"shasum":"945339a598f2f3f94de89e9ea3546a25d6483054","size":2000,"noattachment":false,"key":"/dag-cbor-sync/-/dag-cbor-sync-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dag-cbor-sync/download/dag-cbor-sync-0.4.0.tgz"},"maintainers":[{"name":"mikeal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dag-cbor-sync_0.4.0_1541628567280_0.1955994103302865"},"_hasShrinkwrap":false,"publish_time":1541628567392,"deprecated":"ipld-dag-cbor is now synchronous, this library is useless.","_cnpm_publish_time":1541628567392,"_cnpmcore_publish_time":"2021-12-16T20:50:35.123Z"},"0.2.0":{"name":"dag-cbor-sync","version":"0.2.0","description":"Synchronous serialize/deserialize for IPLD dag-cbor.","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","dependencies":{"borc":"^2.0.3","cids":"^0.5.3","is-circular":"^1.0.1"},"devDependencies":{"babel-eslint":"^8.2.5","eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-config-standard-babel":"0.0.2","eslint-plugin-babel":"^5.1.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","tap":"^12.0.1"},"eslintConfig":{"parser":"babel-eslint","extends":["standard","standard-babel"],"plugins":["babel","standard"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/mikeal/dag-cbor-sync.git"},"bugs":{"url":"https://github.com/mikeal/dag-cbor-sync/issues"},"homepage":"https://github.com/mikeal/dag-cbor-sync#readme","gitHead":"e83b9a23c18633fb5e5d1b63b7735e2fcbc7c187","_id":"dag-cbor-sync@0.2.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"dist":{"shasum":"e8bd3611b29c624bc3fae43ddc6151fd7ee72def","size":1986,"noattachment":false,"key":"/dag-cbor-sync/-/dag-cbor-sync-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dag-cbor-sync/download/dag-cbor-sync-0.2.0.tgz"},"maintainers":[{"name":"mikeal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dag-cbor-sync_0.2.0_1530582814905_0.24093701888596497"},"_hasShrinkwrap":false,"publish_time":1530582815003,"deprecated":"ipld-dag-cbor is now synchronous, this library is useless.","_cnpm_publish_time":1530582815003,"_cnpmcore_publish_time":"2021-12-16T20:50:35.361Z"},"0.1.0":{"name":"dag-cbor-sync","version":"0.1.0","description":"Synchronous serialize/deserialize for IPLD dag-cbor.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"http://www.mikealrogers.com"},"license":"Apache-2.0","dependencies":{"borc":"^2.0.3","cids":"^0.5.3","is-circular":"^1.0.1"},"devDependencies":{"babel-eslint":"^8.2.5","eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-config-standard-babel":"0.0.2","eslint-plugin-babel":"^5.1.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.8.0","eslint-plugin-standard":"^3.1.0","tap":"^12.0.1"},"eslintConfig":{"parser":"babel-eslint","extends":["standard","standard-babel"],"plugins":["babel","standard"]},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/mikeal/dag-cbor-sync.git"},"bugs":{"url":"https://github.com/mikeal/dag-cbor-sync/issues"},"homepage":"https://github.com/mikeal/dag-cbor-sync#readme","gitHead":"85db1007bdf63fa4d5d0f158a28908df2daf3390","_id":"dag-cbor-sync@0.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"dist":{"shasum":"b7514f838f55b1bdd68253e7b2fdbe77c6107c24","size":2054,"noattachment":false,"key":"/dag-cbor-sync/-/dag-cbor-sync-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dag-cbor-sync/download/dag-cbor-sync-0.1.0.tgz"},"maintainers":[{"name":"mikeal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dag-cbor-sync_0.1.0_1530377219781_0.30819242776299616"},"_hasShrinkwrap":false,"publish_time":1530377219879,"deprecated":"ipld-dag-cbor is now synchronous, this library is useless.","_cnpm_publish_time":1530377219879,"_cnpmcore_publish_time":"2021-12-16T20:50:35.582Z"}},"readme":"# Synchronous seralization/deserialization for dag-cbor nodes\n\nUsage:\n\n```javascript\nlet cbor = require('dag-cbor-sync')()\nlet buffer = cbor.serialize({test: 1234})\nlet obj = cbor.deserialize(buffer)\n```\n\nWith links\n\n```javascript\nlet buffer = cbor.serialize(\n  /* Object with single '/' property of a base encoded CID represents\n     a link\n  */\n  {test: {'/': 'zdpuAkv7jA671owT26AnJiFXG9usHmCAW6MTzpwFJw46X1PLG'}}\n)\nlet obj = cbor.deserialize(buffer)\nBuffer.isBuffer(obj.test['/']) // true\n```\n\n## require('dag-cbor-sync')([maxsize])\n\nOptionally set the maximum size of the cbor node. Node's larger\nwill throw an exception.\n\n## serialize(object)\n\nReturns a buffer of the binary representation of the object.\n\n## deserialize(buffer)\n\nReturns the native representation.\n\nNote the link CID's will already be converted to buffers.\n","_attachments":{},"homepage":"https://github.com/mikeal/dag-cbor-sync#readme","bugs":{"url":"https://github.com/mikeal/dag-cbor-sync/issues"},"license":"Apache-2.0"}