{"_id":"content-hash","_rev":"4617958","name":"content-hash","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","dist-tags":{"latest":"2.5.2"},"maintainers":[{"name":"pldespaigne","email":""}],"time":{"modified":"2026-04-10T18:16:58.000Z","created":"2018-12-20T13:02:29.869Z","2.5.2":"2019-11-19T08:41:16.524Z","2.5.1":"2019-11-18T14:32:20.332Z","2.5.0":"2019-11-01T20:37:49.157Z","2.4.4":"2019-09-17T14:09:51.810Z","2.4.3":"2019-07-22T15:36:19.694Z","2.4.2":"2019-07-16T18:02:35.439Z","2.4.1":"2019-07-15T21:06:09.121Z","2.3.3":"2019-07-14T19:04:23.267Z","2.3.2":"2019-05-07T09:51:27.578Z","2.3.1":"2019-04-27T16:15:55.424Z","2.4.0":"2019-01-28T08:03:56.696Z","2.3.0":"2019-01-23T13:07:57.835Z","2.2.0":"2019-01-22T08:21:25.838Z","2.1.1":"2019-01-10T14:34:57.259Z","2.1.0":"2019-01-08T08:35:03.391Z","2.0.0":"2019-01-03T15:06:41.273Z","1.1.0":"2018-12-25T21:43:20.580Z","1.0.7":"2018-12-23T18:15:33.989Z","1.0.6":"2018-12-23T13:41:27.028Z","1.0.5":"2018-12-23T13:39:41.029Z","1.0.4":"2018-12-21T23:08:04.095Z","1.0.3":"2018-12-21T18:23:45.021Z","1.0.2":"2018-12-21T18:16:02.251Z","1.0.1":"2018-12-20T14:10:15.754Z","1.0.0":"2018-12-20T13:02:29.869Z"},"users":{},"author":{"name":"pldespaigne"},"repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"versions":{"2.5.2":{"name":"content-hash","version":"2.5.2","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"./src/index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify ./src/index.js --s contentHash > ./dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha","lint":"npx eslint ."},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.7.1","multicodec":"^0.5.5","multihashes":"^0.4.15"},"devDependencies":{"browserify":"^16.5.0","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"26d97b0548ac6fa8a874a323fcb8afef3a40c80a","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.5.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"bbc2655e7c21f14fd3bfc7b7d4bfe6e454c9e211","size":118181,"noattachment":false,"key":"/content-hash/-/content-hash-2.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.5.2.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.5.2_1574152876366_0.7769552911355735"},"_hasShrinkwrap":false,"publish_time":1574152876524,"_cnpm_publish_time":1574152876524,"_cnpmcore_publish_time":"2021-12-16T17:05:09.168Z"},"2.5.1":{"name":"content-hash","version":"2.5.1","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"./src/index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify ./src/index.js --s contentHash > ./dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha","lint":"npx eslint ."},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.7.1","multicodec":"^0.5.5","multihashes":"^0.4.15"},"devDependencies":{"browserify":"^16.5.0","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"6a903f034c4be5853c4b97a923a3a48c03013600","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.5.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"99cd08560da4487f14f58a8feaf978f2fefc33dd","size":118058,"noattachment":false,"key":"/content-hash/-/content-hash-2.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.5.1.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.5.1_1574087540095_0.3985214361396554"},"_hasShrinkwrap":false,"publish_time":1574087540332,"_cnpm_publish_time":1574087540332,"_cnpmcore_publish_time":"2021-12-16T17:05:09.593Z"},"2.5.0":{"name":"content-hash","version":"2.5.0","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"./src/index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify ./src/index.js --s contentHash > ./dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha","lint":"npx eslint ."},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.7.1","multicodec":"^0.5.5","multihashes":"^0.4.15"},"devDependencies":{"browserify":"^16.5.0","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"4c4256fcb1ea89919bacd8449ff673d736f88e2e","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.5.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"6f8a98feec0360f09213e951c69e57c727093e3a","size":118335,"noattachment":false,"key":"/content-hash/-/content-hash-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.5.0.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.5.0_1572640669018_0.8403057136727934"},"_hasShrinkwrap":false,"publish_time":1572640669157,"_cnpm_publish_time":1572640669157,"_cnpmcore_publish_time":"2021-12-16T17:05:09.905Z"},"2.4.4":{"name":"content-hash","version":"2.4.4","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"./src/index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify ./src/index.js --s contentHash > ./dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha","lint":"npx eslint ."},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.6.0","multicodec":"^0.5.5","multihashes":"^0.4.15"},"devDependencies":{"browserify":"^16.5.0","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"5dcc9a3daeffc0d70bfd2bc84728fc2b692b3838","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.4.4","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"4bec87caecfcff8cf1a37645301cbef4728a083f","size":117793,"noattachment":false,"key":"/content-hash/-/content-hash-2.4.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.4.4.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.4.4_1568729391603_0.1885943762021769"},"_hasShrinkwrap":false,"publish_time":1568729391810,"_cnpm_publish_time":1568729391810,"_cnpmcore_publish_time":"2021-12-16T17:05:10.233Z"},"2.4.3":{"name":"content-hash","version":"2.4.3","next-release":"patch","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"./src/index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify ./src/index.js --s contentHash > ./dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha","lint":"npx eslint ."},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.6.0","multicodec":"^0.5.4","multihashes":"^0.4.15"},"devDependencies":{"browserify":"^16.3.0","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"77c938a3c9d3b96213f167ef4df6840c6abec148","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.4.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"89e6d295bbf2c53fb69b3d8fb43ae572ac7b6096","size":117840,"noattachment":false,"key":"/content-hash/-/content-hash-2.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.4.3.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.4.3_1563809779571_0.8874806000804085"},"_hasShrinkwrap":false,"publish_time":1563809779694,"_cnpm_publish_time":1563809779694,"_cnpmcore_publish_time":"2021-12-16T17:05:10.619Z"},"2.4.2":{"name":"content-hash","version":"2.4.2","next-release":"patch","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify ./src/index.js --s contentHash > ./dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha","lint":"npx eslint ."},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.6.0","multicodec":"^0.5.4","multihashes":"^0.4.15"},"devDependencies":{"browserify":"^16.3.0","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"3ad604de775da45fce0f40a7fb84d693bd38e429","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.4.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"7b76b973dabb5484fc1b89ade8870d93339678ab","size":118177,"noattachment":false,"key":"/content-hash/-/content-hash-2.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.4.2.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.4.2_1563300155301_0.8393942173539408"},"_hasShrinkwrap":false,"publish_time":1563300155439,"_cnpm_publish_time":1563300155439,"_cnpmcore_publish_time":"2021-12-16T17:05:10.946Z"},"2.4.1":{"name":"content-hash","version":"2.4.1","next-release":"patch","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify ./src/index.js --s contentHash > ./dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha","lint":"npx eslint ."},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.6.0","multicodec":"^0.5.3","multihashes":"^0.4.15"},"devDependencies":{"browserify":"^16.3.0","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"cceab4f1fbb08aca317b360f1be75541b01e54c3","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.4.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"76c81987adf6fb430eaa51ac6b746349cf74757c","size":117468,"noattachment":false,"key":"/content-hash/-/content-hash-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.4.1.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.4.1_1563224768953_0.3228753278155021"},"_hasShrinkwrap":false,"publish_time":1563224769121,"_cnpm_publish_time":1563224769121,"_cnpmcore_publish_time":"2021-12-16T17:05:11.304Z"},"2.3.3":{"name":"content-hash","version":"2.3.3","next-release":"patch","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha","lint":"npx eslint ."},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.6.0","multicodec":"^0.5.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"e66ea4cf32260691d1f6426f653c0e046610a52e","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.3.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"6351d0a1de0803cd9a00b38e777195e4ff7c6dc3","size":118095,"noattachment":false,"key":"/content-hash/-/content-hash-2.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.3.3.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.3.3_1563131063106_0.8481326966054712"},"_hasShrinkwrap":false,"publish_time":1563131063267,"_cnpm_publish_time":1563131063267,"_cnpmcore_publish_time":"2021-12-16T17:05:11.644Z"},"2.3.2":{"name":"content-hash","version":"2.3.2","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha","lint":"npx eslint ."},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.6.0","multicodec":"^0.5.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"431dfdfee580ff3376072282121aa20c3e087dcf","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.3.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"7b679631af539f10cab0baa6a82704bdf6d6b7c1","size":117726,"noattachment":false,"key":"/content-hash/-/content-hash-2.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.3.2.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.3.2_1557222687453_0.7879287878538865"},"_hasShrinkwrap":false,"publish_time":1557222687578,"_cnpm_publish_time":1557222687578,"_cnpmcore_publish_time":"2021-12-16T17:05:12.409Z"},"2.3.1":{"name":"content-hash","version":"2.3.1","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.6.0","multicodec":"^0.5.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"25dec3141317c899647bd792b19970e0d52d800f","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.3.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"656d5a17fa1106ed843cb7cfda28107df5aab135","size":117362,"noattachment":false,"key":"/content-hash/-/content-hash-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.3.1.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.3.1_1556381755269_0.7614222763845759"},"_hasShrinkwrap":false,"publish_time":1556381755424,"_cnpm_publish_time":1556381755424,"_cnpmcore_publish_time":"2021-12-16T17:05:12.883Z"},"2.4.0":{"name":"content-hash","version":"2.4.0","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.5.7","multicodec":"^0.5.0","multihashes":"^0.4.14","varint":"^5.0.0"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"9410f03e3f3c83322be36122f944efe384cb0812","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.4.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"4413fb854a2224c93ad2a30bc59a23e9776c5566","size":120344,"noattachment":false,"key":"/content-hash/-/content-hash-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.4.0.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.4.0_1548662636484_0.11305209168459895"},"_hasShrinkwrap":false,"publish_time":1548662636696,"deprecated":"accidental publish with wrong version","_cnpm_publish_time":1548662636696,"_cnpmcore_publish_time":"2021-12-16T17:05:13.403Z"},"2.3.0":{"name":"content-hash","version":"2.3.0","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"cids":"^0.5.7","multicodec":"^0.4.0","multihashes":"^0.4.14","varint":"^5.0.0"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"b5007f07937daae79b3877e4bdc370b339e9ad99","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.3.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"8791d81a33ef9cee3c962cc471ac1628f3f65fba","size":117415,"noattachment":false,"key":"/content-hash/-/content-hash-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.3.0.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.3.0_1548248877736_0.17278130370343714"},"_hasShrinkwrap":false,"publish_time":1548248877835,"_cnpm_publish_time":1548248877835,"_cnpmcore_publish_time":"2021-12-16T17:05:13.793Z"},"2.2.0":{"name":"content-hash","version":"2.2.0","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"multicodec":"^0.4.0","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"727593592600f59e1bf3396737169b85da18a2d3","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.2.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"6fc974272f0ff35aa8dd2f3cc159e310ba9a6524","size":107865,"noattachment":false,"key":"/content-hash/-/content-hash-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.2.0.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.2.0_1548145285729_0.23397475530526513"},"_hasShrinkwrap":false,"publish_time":1548145285838,"_cnpm_publish_time":1548145285838,"_cnpmcore_publish_time":"2021-12-16T17:05:14.315Z"},"2.1.1":{"name":"content-hash","version":"2.1.1","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"6b5889e69e78ee3d25ad0b69be74d3d53052f5bd","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.1.1","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"8bbc713dbce95218f6a05bfb5681973309356fb4","size":104267,"noattachment":false,"key":"/content-hash/-/content-hash-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.1.1.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.1.1_1547130897122_0.9566814393180789"},"_hasShrinkwrap":false,"publish_time":1547130897259,"_cnpm_publish_time":1547130897259,"_cnpmcore_publish_time":"2021-12-16T17:05:14.736Z"},"2.1.0":{"name":"content-hash","version":"2.1.0","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"bbc6d2bfd5e5ada9ec0bca20746731c6ba0c3297","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"3d900ec1da34e800d8fe30eccb7cf17fda051c8d","size":104261,"noattachment":false,"key":"/content-hash/-/content-hash-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.1.0.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.1.0_1546936503296_0.0816195092382761"},"_hasShrinkwrap":false,"publish_time":1546936503391,"_cnpm_publish_time":1546936503391,"_cnpmcore_publish_time":"2021-12-16T17:05:15.121Z"},"2.0.0":{"name":"content-hash","version":"2.0.0","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"b742f4ee3f30ade207a38172d6926297dcf49765","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"e4dd91ebcdfdc87976fc432c1d4bb58ee3a1a182","size":103000,"noattachment":false,"key":"/content-hash/-/content-hash-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-2.0.0.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_2.0.0_1546528001105_0.7010800880167354"},"_hasShrinkwrap":false,"publish_time":1546528001273,"_cnpm_publish_time":1546528001273,"_cnpmcore_publish_time":"2021-12-16T17:05:15.926Z"},"1.1.0":{"name":"content-hash","version":"1.1.0","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"bs58":"^4.0.1","buffer":"^5.2.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"21c6c726655b68cb3819fb2b7c9248cd8ec54be7","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"0f61ff6bf4d8eba655a13506899904413f836192","size":101990,"noattachment":false,"key":"/content-hash/-/content-hash-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-1.1.0.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_1.1.0_1545774200429_0.0766526026423262"},"_hasShrinkwrap":false,"publish_time":1545774200580,"_cnpm_publish_time":1545774200580,"_cnpmcore_publish_time":"2021-12-16T17:05:16.405Z"},"1.0.7":{"name":"content-hash","version":"1.0.7","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static ./demo","deploy-demo":"echo \"surge demo https://content-hash.surge.sh\"","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"bs58":"^4.0.1","buffer":"^5.2.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11"},"keywords":["ethereum","ens","eip-1577","resolver","ipfs","swarm","content-hash","content","hash","contenthash","contentHash"],"gitHead":"da798b0ade1573d8167722023dbd803958aecedb","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@1.0.7","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"5fab5eb452122c1ae8bce829d3ca64b640a7217b","size":101520,"noattachment":false,"key":"/content-hash/-/content-hash-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-1.0.7.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_1.0.7_1545588933580_0.39718678123119844"},"_hasShrinkwrap":false,"publish_time":1545588933989,"_cnpm_publish_time":1545588933989,"_cnpmcore_publish_time":"2021-12-16T17:05:16.777Z"},"1.0.6":{"name":"content-hash","version":"1.0.6","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static ./demo","deploy-demo":"surge demo https://content-hash.surge.sh","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"bs58":"^4.0.1","buffer":"^5.2.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11","surge":"^0.20.1"},"gitHead":"59201cc5ddc38ef1601cbfb172ba1898c36f3149","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@1.0.6","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"49a8fb2abd3107052a647cce917768c56eecbb27","size":101464,"noattachment":false,"key":"/content-hash/-/content-hash-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-1.0.6.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_1.0.6_1545572486883_0.41593947172076584"},"_hasShrinkwrap":false,"publish_time":1545572487028,"_cnpm_publish_time":1545572487028,"_cnpmcore_publish_time":"2021-12-16T17:05:17.513Z"},"1.0.5":{"name":"content-hash","version":"1.0.5","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static ./demo","deploy-demo":"surge demo https://content-hash.surge.sh","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"bs58":"^4.0.1","buffer":"^5.2.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11","surge":"^0.20.1"},"gitHead":"78cefc9d158151fb1f57a9378060749eed1c411f","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@1.0.5","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"dcad5c7ff9205ca8685fd2dcfa4db27de9522262","size":101341,"noattachment":false,"key":"/content-hash/-/content-hash-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-1.0.5.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_1.0.5_1545572380880_0.018477013652937524"},"_hasShrinkwrap":false,"publish_time":1545572381029,"_cnpm_publish_time":1545572381029,"_cnpmcore_publish_time":"2021-12-16T17:05:18.057Z"},"1.0.4":{"name":"content-hash","version":"1.0.4","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","test":"mocha"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"bs58":"^4.0.1","buffer":"^5.2.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","chai":"^4.2.0","mocha":"^5.2.0","node-static":"^0.7.11"},"gitHead":"93aa0f9890d788acb1618c47b1129af73baf6b03","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@1.0.4","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"efcaa01342a4797754aca406364cfaaa244c1848","size":26025,"noattachment":false,"key":"/content-hash/-/content-hash-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-1.0.4.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_1.0.4_1545433683965_0.9967454383415169"},"_hasShrinkwrap":false,"publish_time":1545433684095,"_cnpm_publish_time":1545433684095,"_cnpmcore_publish_time":"2021-12-16T17:05:18.301Z"},"1.0.3":{"name":"content-hash","version":"1.0.3","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","repository":{"type":"git","url":"git+https://github.com/pldespaigne/content-hash.git"},"scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"bs58":"^4.0.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","node-static":"^0.7.11"},"gitHead":"ba66967cb94f7786207fb850f47da1bbdfc2a368","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"homepage":"https://github.com/pldespaigne/content-hash#readme","_id":"content-hash@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"f81180e6312c77b32d6d97c0887602b61b661af0","size":25396,"noattachment":false,"key":"/content-hash/-/content-hash-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-1.0.3.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_1.0.3_1545416624835_0.392804687472849"},"_hasShrinkwrap":false,"publish_time":1545416625021,"_cnpm_publish_time":1545416625021,"_cnpmcore_publish_time":"2021-12-16T17:05:18.609Z"},"1.0.2":{"name":"content-hash","version":"1.0.2","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","scripts":{"build":"browserify index.js --s contentHash > dist/index.js","demo":"static .","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"bs58":"^4.0.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3","node-static":"^0.7.11"},"gitHead":"4de79aa079a7db3905318515ecae1f25c25a135d","_id":"content-hash@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"a009cb12b739386d610d9c6f13a15499faaac4f0","size":25371,"noattachment":false,"key":"/content-hash/-/content-hash-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-1.0.2.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_1.0.2_1545416162039_0.6444011349285501"},"_hasShrinkwrap":false,"publish_time":1545416162251,"_cnpm_publish_time":1545416162251,"_cnpmcore_publish_time":"2021-12-16T17:05:18.851Z"},"1.0.1":{"name":"content-hash","version":"1.0.1","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","scripts":{"build":"browserify index.js > dist/index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"bs58":"^4.0.1","multihashes":"^0.4.14"},"devDependencies":{"browserify":"^16.2.3"},"gitHead":"ee2e909e0ba9ae418cc7dfe2bb74039407939ac8","_id":"content-hash@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"db2ec9df01b13dd4983f0efc5e95f5e0aad32f61","size":23494,"noattachment":false,"key":"/content-hash/-/content-hash-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-1.0.1.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_1.0.1_1545315015652_0.5550218744362374"},"_hasShrinkwrap":false,"publish_time":1545315015754,"_cnpm_publish_time":1545315015754,"_cnpmcore_publish_time":"2021-12-16T17:05:19.158Z"},"1.0.0":{"name":"content-hash","version":"1.0.0","description":"simple tool to encode/decode content hash for EIP 1577 compliant ENS Resolvers","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"pldespaigne"},"license":"ISC","dependencies":{"bs58":"^4.0.1","multihashes":"^0.4.14"},"_id":"content-hash@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"pldespaigne","email":"pl.despaigne@gmail.com"},"dist":{"shasum":"4986456d8492282a3494632d1852d300b966ebd8","size":1479,"noattachment":false,"key":"/content-hash/-/content-hash-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/content-hash/download/content-hash-1.0.0.tgz"},"maintainers":[{"name":"pldespaigne","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-hash_1.0.0_1545310949744_0.8304928877697644"},"_hasShrinkwrap":false,"publish_time":1545310949869,"_cnpm_publish_time":1545310949869,"_cnpmcore_publish_time":"2021-12-16T17:05:19.379Z"}},"readme":"\r\n\r\n# content-hash\r\n\r\n[![npm package](https://img.shields.io/npm/v/content-hash.svg)](https://www.npmjs.com/package/content-hash)[![CircleCI](https://circleci.com/gh/pldespaigne/content-hash.svg?style=svg)](https://circleci.com/gh/pldespaigne/content-hash)![licence](https://img.shields.io/npm/l/content-hash.svg)[![Gitter chat](https://badges.gitter.im/content-hash/lobby.png)](https://gitter.im/content-hash/lobby)[![Beerpay](https://beerpay.io/pldespaigne/content-hash/badge.svg)](https://beerpay.io/pldespaigne/content-hash)\r\n\r\n>This is a simple package made for encoding and decoding content hashes as specified in the [EIP 1577](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1577.md).\r\nThis package will be useful for every [Ethereum](https://www.ethereum.org/) developer wanting to interact with [EIP 1577](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1577.md) compliant [ENS resolvers](http://docs.ens.domains/en/latest/introduction.html).\r\n\r\nHere you can find a [live demo](https://content-hash.surge.sh/) of this package.\r\n* link to [npm](https://www.npmjs.com/package/content-hash)\r\n* link to [Github](https://github.com/pldespaigne/content-hash)\r\n\r\n## ???? Supported Codec\r\n- `swarm-ns`\r\n- `ipfs-ns`\r\n- `ipns-ns`\r\n- Every other codec supported by [multicodec](https://github.com/multiformats/multicodec) will be encoded by default in `utf-8`.\r\n> You can see the full list of codec supported [here](https://github.com/multiformats/multicodec/blob/master/table.csv)\r\n\r\n## ???? Install\r\n* via **npm** :\r\n\t```bash\r\n\t$> npm install content-hash\r\n\t```\r\n* via **Github** : Download or clone this repo, then install the dependencies.\r\n\t```bash\r\n\t$> git clone https://github.com/pldespaigne/content-hash.git\r\n\t$> cd content-hash\r\n\t$> npm install\r\n\t```\r\n> For browser only usage, installation is not required.\r\n\r\n## ???? Usage\r\nImport the module in order to use it :\r\n* **NodeJS** :\r\n\t```javascript\r\n\tconst contentHash = require('content-hash')\r\n\t```\r\n* **Browser** :\r\n\t```html\r\n\t<!--From CDN-->\r\n\t<script type=\"text/javascript\" src=\"https://unpkg.com/content-hash/dist/index.js\"></script>\r\n\r\n\t<!--From local module-->\r\n\t<script type=\"text/javascript\" src=\"path/to/dist/index.js\"></script>\r\n\t```\r\n> To rebuild the browser version of the package run `npm run build` into the root folder. Don't forget to also run `npm run lint` and `npm test` before building !\r\n\r\n## ???? API\r\n\r\n> All hex string **inputs** can be prefixed with `0x`, but it's **not mandatory**.\r\n\r\n> ⚠️ All **outputs** are **NOT** prefixed with `0x`\r\n\r\n### contentHash.decode( contentHash ) -> string\r\nThis function takes a content hash as a hex **string** and returns the decoded content as a **string**.\r\n```javascript\r\nconst encoded = 'e3010170122029f2d17be6139079dc48696d1f582a8530eb9805b561eda517e22a892c7e3f1f'\r\n\r\nconst content = contentHash.decode(encoded)\r\n// 'QmRAQB6YaCyidP37UdDnjFY5vQuiBrcqdyoW1CuDgwxkD4'\r\n```\r\n\r\n### contentHash.fromIpfs( ipfsHash ) -> string\r\nThis function takes an IPFS address as a base58 encoded **string** and returns the encoded content hash as a hex **string**.\r\n> this function just call `contentHash.encode()` under the hood\r\n```javascript\r\nconst ipfsHash = 'QmRAQB6YaCyidP37UdDnjFY5vQuiBrcqdyoW1CuDgwxkD4'\r\n\r\nconst contentH = contentHash.fromIpfs(ipfsHash)\r\n// 'e3010170122029f2d17be6139079dc48696d1f582a8530eb9805b561eda517e22a892c7e3f1f'\r\n```\r\n\r\n### contentHash.fromSwarm( swarmHash ) -> string\r\nThis function takes a Swarm address as a hex **string** and returns the encoded content hash as a hex **string**.\r\n> this function just call `contentHash.encode()` under the hood\r\n```javascript\r\nconst swarmHash = 'd1de9994b4d039f6548d191eb26786769f580809256b4685ef316805265ea162'\r\n\r\nconst contentH = contentHash.fromSwarm(swarmHash)\r\n// 'e40101701b20d1de9994b4d039f6548d191eb26786769f580809256b4685ef316805265ea162'\r\n```\r\n\r\n### contentHash.encode( codec, value) -> string\r\nThis function takes a [supported codec](#-supported-codec) as a **string** and a value as a **string** and returns coresponding content hash as a hex **string**.\r\n```javascript\r\nconst onion = 'zqktlwi4fecvo6ri'\r\ncontentHash.encode('onion', onion);\r\n// 'bc037a716b746c776934666563766f367269'\r\n```\r\n\r\n### contentHash.getCodec( contentHash ) -> string\r\nThis function takes a content hash as a hex **string** and returns the codec as a hex **string**.\r\n```javascript\r\nconst encoded = 'e40101701b20d1de9994b4d039f6548d191eb26786769f580809256b4685ef316805265ea162'\r\n\r\nconst codec = contentHash.getCodec(encoded) // 'swarm-ns'\r\ncodec === 'ipfs-ns' // false\r\n```\r\n\r\n### contentHash.helpers\r\nThis object contain the following helpers functions :\r\n\r\n- #### cidV0ToV1Base32( ipfsHash ) -> string\r\n\tThis function takes an ipfsHash and convert it to a CID v1 encoded in base32.\r\n\t```javascript\r\n\tconst ipfs = 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG'\r\n\r\n\tconst cidV1 = contentHash.helpers.cidV0ToV1Base32(ipfs)\r\n\t// 'bafybeibj6lixxzqtsb45ysdjnupvqkufgdvzqbnvmhw2kf7cfkesy7r7d4'\r\n\t```\r\n\r\n## ????‍???? Maintainer\r\n*  pldespaigne : [github](https://github.com/pldespaigne), [twitter](https://twitter.com/pldespaigne)\r\n\r\n## ???? Contributing\r\nFor any questions, discussions, bug report, or whatever I will be happy to answer through the [issues](https://github.com/pldespaigne/content-hash/issues) or on my [twitter](https://twitter.com/pldespaigne) ????. PR (with tests) are also welcome !\r\n\r\n## ???? License\r\nThis project is licensed under the **ISC License**, you can find it [here](https://github.com/pldespaigne/content-hash/blob/master/LICENSE).\r\n> Note that the dependencies may have a different License\r\n\r\n\r\n","_attachments":{},"homepage":"https://github.com/pldespaigne/content-hash#readme","bugs":{"url":"https://github.com/pldespaigne/content-hash/issues"},"license":"ISC"}