{"_id":"ipfs-http-response","_rev":"144-fac57d53c52c5dce18694046b7997038","name":"ipfs-http-response","dist-tags":{"latest":"6.0.1","next":"6.0.0-7b79c1b8"},"versions":{"0.1.0":{"name":"ipfs-http-response","version":"0.1.0","description":"Creates an HTTP response from an IPFS Hash","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release","build":"aegir build","test":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"async":"^2.6.0","cids":"^0.5.3","debug":"^3.1.0","file-type":"^8.0.0","filesize":"^3.6.1","ipfs-unixfs":"^0.1.14","mime-types":"^2.1.18","multihashes":"^0.4.13","promisify-es6":"^1.0.3","readable-stream-node-to-web":"^1.0.1"},"devDependencies":{"aegir":"^13.1.0","chai":"^4.1.2","dirty-chai":"^2.0.1","ipfs":"^0.28.2","ipfsd-ctl":"^0.36.0"},"gitHead":"91b99b3390e22a0884693eb0778bbcc436ea7734","_id":"ipfs-http-response@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"vascosantos","email":"santos.vasco10@gmail.com"},"dist":{"integrity":"sha512-nFNq0lyaF2abiseY9l58LgqbPHQSF/8enVuTFeyP34hy77da1QIAtokGCmKOlLijIqv2+rll34wRI22sX9eE2w==","shasum":"ab3b75514cf8ce5f11efea8e23c5ce3b22a041c8","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.1.0.tgz","fileCount":19,"unpackedSize":1317211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBpmFCRA9TVsSAnZWagAAS90P/3kNmLzxECIkXFx91kLW\ncO3CseKmvtbx9YkFq8gyw9ZolJ2skw9jHNe0oz+NqIoH03yl9apDAZ54PT3G\n+lkIPIxoCEy1clQIXE35jPaN2ukK1I4Z+eCflHO0ub+g/pEUhiSHqjSAU00q\nxtDP6ixNRckjxaTxreU7pNeCjrcJ1ULW8gh1OQp1LqUjwiIhKnqWb8UYpZRk\nVnw3qbcOvS4aTJbmm08qXnnnyOSGRxJ/Zf8dHyumJuOq/UM0JUDxKC1vXlTK\nNEsF/NQcdEjfcwuRUBi44HmQcJBaZLi7tn6ahmqaXabQGcJI2lH9uIHi40am\nmJdPqzXao5bYY//eiIv6fTiujB747m+RqvWr0tOnpBH0fAoAnQslkwomB0Ga\nWIL2/7N96uCx2Btg6acX7FU8jtR4In+o4nbeNU28qq9u8FVd2kpKWy60XdKM\nDnZLZeGRlJ1HKyktliABU888ojrfBtaz4D4qVxZfSEWQqkQ4aJ0jXTTMKU4X\nFQOiTA/lpADfjlYK5cNkxbeAXI9TyDiksA3MAFOdjhyF4H7S2ndc4VQqArNf\nOlX0CiwLiCYkxerPGgJsKmef1NXNmAX0IUSs8yKDIDCBmnPecUhVFqCrKnBG\n2r+WDl9tJLiD1irCaZWvj3j2s+uWM1DE3kHXxwPnFLAIffyzbAGwSFIOYCk9\naOuU\r\n=XHzX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwWwKZzWGMVsDUlmvWSiEmWB9zYyAlIUCt+JGNrJzhxgIhAI7qYMXKxKwu9NKbIwcVJ+tpplrTmR+sDmYqszwND3wD"}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.1.0_1527159173270_0.8951844692884574"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.1.1":{"name":"ipfs-http-response","version":"0.1.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release","build":"aegir build","test":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"async":"^2.6.0","cids":"^0.5.3","debug":"^3.1.0","file-type":"^8.0.0","filesize":"^3.6.1","ipfs-unixfs":"^0.1.14","mime-types":"^2.1.18","multihashes":"^0.4.13","promisify-es6":"^1.0.3","readable-stream-node-to-web":"^1.0.1"},"devDependencies":{"aegir":"^13.1.0","chai":"^4.1.2","dirty-chai":"^2.0.1","ipfs":"^0.28.2","ipfsd-ctl":"^0.36.0"},"gitHead":"a02a518a8d1e95b4600abf9ab6428bebd6f2c58e","_id":"ipfs-http-response@0.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"vascosantos","email":"santos.vasco10@gmail.com"},"dist":{"integrity":"sha512-KY0cFy2kzGqYecBzOvXj7qKxL/yesWj837rB6KTtIh0D5Pjbz0OviuGdzlhlFCGTSXAj6Ty1mIvupREy4HhsUQ==","shasum":"dbd73e5647d6edf2c89a2b8793e6f24f40967399","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.1.1.tgz","fileCount":19,"unpackedSize":1317992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbCr9hCRA9TVsSAnZWagAAJuUP/1KE6KWgmeH2Nbwbmoqc\nuZIa1ppIFG167hbvym5kwzUjSdRVrNeCyhtLkWov+CnJOLu6FJuYaiHVYJnH\nteokuFtWuLrLlfy8sauojTWkSeQzZmCqcNDh+X6SfyOfjR+i0g3d16e+q4g5\nrCk44a9CEKiJ6oTw/Nq4Ir3ptUUNcsJBiwjwrwALGCFqdmII/AEpYL6R/CRW\n16wOis2Uqitu+j7dtdcTu4n/70mZuyR1vuD8xe7bX5TvoRch59CAFSWbikYb\n2vfGhH7mosSXeTOywfRbWHI04pApFgjeWluifDeEc3j0KWn+jRCwzff7xMdr\nMKzuvbhJiWU+yn2h+9eVTba+3+XXiZak0WveGp5TljApcYpXkZVg49p2IeAJ\nSSYmyKIhd4e7AmUoy3y35cqmfYb3I0+w0xj0CXhDzScdrofK5U/fFTVO5mvX\nNudWYZIaNbBMycmn5WImO4MvcTQzT+znswuavT3vYDveeEShijm4e4BMfoKn\nT2NF8BGrvnkMe6YEsZf7fUJLd2kYMw844gINwEDM7REVwd+yeOdtLqWmMiSV\nmMRq59U/fvwLvzaGnZdFnbo+w4Xnxy0xdCADLvroU5Wpb+wXh627cO9vHs/7\nEaAMPKHGkcgTelr7FUbjqPC9kZ8aRHRZu7OFzvHRE/UEfXPqOOXCnOZp3XRj\ng7rB\r\n=TpOT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIY0cc3X+CY5LfVGV31I5q2q7UQFJSAHNR0nYQfq02zQIhAI0uAzhwVnkJK3dRIWIp9e/X1iKreeFBvMtL61s5SeGm"}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.1.1_1527431008691_0.28798146185783824"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.1.2":{"name":"ipfs-http-response","version":"0.1.2","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","build":"aegir build","test":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"async":"^2.6.0","cids":"^0.5.3","debug":"^3.1.0","file-type":"^8.0.0","filesize":"^3.6.1","ipfs-unixfs":"^0.1.14","mime-types":"^2.1.18","multihashes":"^0.4.13","promisify-es6":"^1.0.3","readable-stream-node-to-web":"^1.0.1"},"devDependencies":{"aegir":"^13.1.0","chai":"^4.1.2","dirty-chai":"^2.0.1","ipfs":"^0.28.2","ipfsd-ctl":"^0.36.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Vasco Santos","email":"vasco.santos@ua.pt"}],"gitHead":"1f3db7d94f2c81677070459decdbb682c1ba5c37","_id":"ipfs-http-response@0.1.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"vascosantos","email":"santos.vasco10@gmail.com"},"dist":{"integrity":"sha512-mJRFX3mlcv4yAxh0qMnlBuOyoB/3DiMj54sv12upubQckN0nPGJREldar8nHjVr4biuQKwyMPyxK5O1bK42UDQ==","shasum":"4a131892fc0394b8d0255b0538da22155add4148","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.1.2.tgz","fileCount":20,"unpackedSize":1312287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbEWK4CRA9TVsSAnZWagAAJyIQAJa0xpjwCpFeG+YjjrwR\nhGlxZeZbRw9jZ2dmRAufkRIg4lJQGWZixtQ7LNnvUT2y4FhYVC7u0Hr/uT0G\nHUA865wgqo/aJosgBTz+PzRQc5veuKLSUosr+2m61g6UAvgcu9nXtiZJeYlo\ntnNon9/fEliGrFLYeoRENIogLExFJgL/5JYpWOT1XqItTr58tw31y8aO0rxk\n/+4tYRakqmCsP/s0iT74+DHaJPcRn9vHzdSRGMh3HS/1vy2bOXIJol/9skCr\nxJCz1PjXQ6brxbnUK8+0RN8W/8ikBMPc+kXV4z49OOAfaNCVk4An8l4yjdue\n5GAdOzB7J+wgz9vldHeyViglK07y+RtVuw3m9tfoHpBsqgn/opLrvzoPCmQP\npNz2Hgb16Jz+OKxTtlLWDR9ciz6DcY+1qGbmvxiQNWwUIvMZ1c6drDQJCn8h\nvR0H17h5kWbo4a7L141I1pSD9GT1g5R3L7XDPK6a11LAc21TY1KRJ4Uo5Vsh\n+wlypY2bHbjJh0MAsoVkwUmR6DH59sKrR/ACzLrMAOSSmMQhPwyxEN5ksdkH\nimS0KEv1ZUr4ZtdtuPMD8V1MA+jHqSOHG+HNog/0Qfq/A/LqIbuyuzUuT/Rn\nN+YKkJI25siwvD8nGHTuYjLmOMgYRUuTsBoWxkLwWlV3JqlSlEZUZJOpkEUW\nYlFh\r\n=gBO/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDclsAQv/+v0vVsKSRXnfARJJn3vwG4wIS0lqikF8RpzgIgP3PpqeJNk+4CsaewZELj8/jGuwPRCWf69lbRiYTfh/c="}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.1.2_1527866039518_0.14404573146754118"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.1.3":{"name":"ipfs-http-response","version":"0.1.3","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","build":"aegir build","test":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"async":"^2.6.0","cids":"^0.5.3","debug":"^3.1.0","file-type":"^8.0.0","filesize":"^3.6.1","ipfs-unixfs":"^0.1.14","mime-types":"^2.1.18","multihashes":"^0.4.13","promisify-es6":"^1.0.3","stream-to-blob":"^1.0.1"},"devDependencies":{"aegir":"^13.1.0","chai":"^4.1.2","dirty-chai":"^2.0.1","ipfs":"^0.28.2","ipfsd-ctl":"^0.36.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@ua.pt"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"}],"gitHead":"ca3f64f7c8534e119b7095b681eea62b4a867233","_id":"ipfs-http-response@0.1.3","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"dist":{"integrity":"sha512-B060Mj51duni3mi+KUkVDhoj0buJy3+zUK4I6MuQM31DdPOlKQjQoDT/3zdLlmMFVLqL2RjNTUiV9sqAAZzk5w==","shasum":"9be572705b19e490d0d7317e22ef7b389dc3f179","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.1.3.tgz","fileCount":20,"unpackedSize":1312885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbXKEuCRA9TVsSAnZWagAA78YP/3wTbhPrUJhvoDrRt7Gs\nIaoLu1SJpSiiQpwismNDbFfVHNSMvh9oxywdQ/cKHCiH00paWnBDjkVSB5fR\no9X26WAad0PfYiiyo+vTFgrqClQLV9b1yHosH/jNBrDW/6x3gLQzh8Em4FB7\nSwuqqYgTDcKkYT8kADF6ADRddWvkTzFbKThBigw1z1Z48V9HOUSTXdsvBrVn\nfb/M4xzuHPK4lvkqPLMBDuhyocox8BqLiR9M6TqR5nMBnMfuYJbeKbUXhcCb\nEkROF8OzP8JGqETNrzSRNK9NGuKLFX7pzb2PlRdA/xJ/aW3PuIBIVvnGBWaB\ny+L93ZluWPRwaqX2ALR5mP1bLGBte9Kx1D8hWHq155++Zpz5F9eUUvxqcfR3\nX88ZrIcYPFjcevo/2wrkrvu3uInnTlgdv18MKWiYsAYdhwu5QMHehy8GnkBz\naO0PVsukdCcOsfuSgkJD9ZRZAEGIUqn5sWCS4eY4pSTZ6jnKJ3GYV1QQ+DwQ\nlrsqTSXDtYW+NoE49KshWD4MUDg4mZRjKfQBaEWQ/OUQlQUqCo5TAZA8JZ4n\ned7nCR/3VyBOuWKlKZaCyvk9PV2YKUzx1TmpnymKMK5qTCPubYerl3F9bF6d\nkT0p0UUqKoXaYKBAtOZOgwK4puGoMSBWGyZOD7d4YSYFq4QYZnab9TcW5G53\n1Sbp\r\n=fLBp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFqGV2H5FLX3mJv/eKdsrt6iVWqO3N6RPgsDuUOg5FiAiBBumcN5xbYMMjAfIzuP6fk9wCwZ5Ky1SeetxCgZyPIpg=="}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.1.3_1532797230364_0.19869153256349992"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.1.4":{"name":"ipfs-http-response","version":"0.1.4","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","build":"aegir build","test":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"async":"^2.6.0","cids":"^0.5.3","debug":"^3.1.0","file-type":"^8.0.0","filesize":"^3.6.1","get-stream":"^3.0.0","ipfs-unixfs":"^0.1.14","mime-types":"^2.1.18","multihashes":"^0.4.13","promisify-es6":"^1.0.3","stream-to-blob":"^1.0.1"},"devDependencies":{"aegir":"^13.1.0","chai":"^4.1.2","dirty-chai":"^2.0.1","ipfs":"^0.28.2","ipfsd-ctl":"^0.36.0"},"contributors":[{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Vasco Santos","email":"vasco.santos@ua.pt"}],"gitHead":"4f1ace2917e344eb8e0148034923b75e3820122d","_id":"ipfs-http-response@0.1.4","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"dist":{"integrity":"sha512-qVi0AK3evZBbHljePgmeFy6o8RBVTOmPXUgRNHrwFr99DmJHPhbgJ/Wse0vpQsKwo3dd1m7RP33GHE9Xd1vmPA==","shasum":"b27303bb7430978b0a182379189900a034bda9d9","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.1.4.tgz","fileCount":26,"unpackedSize":1775705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbYytACRA9TVsSAnZWagAAJpUP/jcBFzVoA4gInDSJh8FD\n4rYN8HfQUwML2HugvquXVKECHvdaXS5s5iV5Q9wIfl6qc/YRjSF5kxBl/4JV\nNpFUjh0KQHx25IGqwUfDrguQ07quxL8qmGKExHOgPjv3OfHiskvc1H99ZBhf\nnSpnV5YnLQb+bmX8srZKOnToaGU6mPx5023wRcxvg3hEswWwsyzp2akVc0Gx\nFC5t0uHrm2FhVagyzMMUmGumwCTK7qdcw4z80vGmuUoKRx6FAIr0O8cc3COf\nXinswnCa7BeQDJ+tzbr3lStkiNIDsWAkOZTsfhJKBm9m+wn9WfOKtyasj90Y\nUfF9tEfQYkbel4Vr0yvab0zbvQRL9dOAXp5Zbx6rSX2LMDoH2ulX1DogehuB\nWr8Jr99ownb7TcQMyoqb2ncd8C1Up8hiE6VSfufBsOgRJeoFlK/6EDIhdfP+\nUCWS+OkEoOl5oV9YUeFpz65pyCXL6aIMOsWOABfmjCogwMc9KIgFkjC6qkB9\nJj5u3KSvA9xpKZRQDNffrgbNBifrRCxsHvmB3E8KDV6EZ8my+Wx8XKhjgRsq\nOt8mmaLmkWghOQWLlRUr2Q4PPlsKU8NEKcv342n7W7z8FynlmC1p3LegeD/6\nopsEARhAHJMZmNqTyvQ9zQVHrk4OxzM5cYfiloJ7n+kK+07SKGq0X9EZebyA\nNKd2\r\n=9QWB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1QZSsngyMXQW7W19cw7jOXufeEF+trKdBZziW5EYkAQIgepfDEslHR8s8kNTTqWWiSdYKfn/zN7RNkzBLwXohCWk="}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.1.4_1533225792449_0.7625062092644428"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.2.0":{"name":"ipfs-http-response","version":"0.2.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","build":"aegir build","test":"aegir test -t node","test:node":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"async":"^2.6.0","cids":"~0.5.5","debug":"^3.1.0","file-type":"^8.0.0","filesize":"^3.6.1","get-stream":"^3.0.0","ipfs-unixfs":"~0.1.14","mime-types":"^2.1.18","multihashes":"~0.4.13","promisify-es6":"^1.0.3","stream-to-blob":"^1.0.1"},"devDependencies":{"aegir":"^13.1.0","chai":"^4.1.2","dirty-chai":"^2.0.1","ipfs":"~0.32.2","ipfsd-ctl":"~0.39.1"},"contributors":[{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Vasco Santos","email":"vasco.santos@ua.pt"}],"gitHead":"7dd731099a87379e97061fc8dd046d465d3e61c7","_id":"ipfs-http-response@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"dist":{"integrity":"sha512-E4atwGKflYNzynrJQ6VYguREiPWgQDmgXOwEsGOM8EdHHQWOkWsPNl6CGnlHGC2ESj0iUJx1CYMmXNmNzzOlGQ==","shasum":"2afeea7cfebbe07593c9ea02c25d26ae8219f4e8","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.2.0.tgz","fileCount":26,"unpackedSize":1789981,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbrlArCRA9TVsSAnZWagAAkoUQAIcJRFB/NHz34YOJaYHu\n3Io4V7jTku/JkQocJ8xKT62hyutKOmGFwnKP0nZp0GiM9I8w+kd0HZo+wOoO\nqxy7KO1Q2xUmx7StNIM8dAN2ehQY6taNEpzw+IIozfnSbPNvGN7P25Ln5OwJ\n9xd4TsuukKLB3aMP+QcZslbzJvEcYxnlU5d2+D16SRdrs5r/G1By1HFiuAHw\n7F8XJQqASeE/uDZVwEsYSugxtuwxRM2EMQxg3bxzeHirdpzeVX2gjmEakd2n\nNrem/wqXuAInscfxPxhkwEG1TfXcKVJqzFWKc49oEUELBpTlubCProFgYqCP\np7PztghuiuNABY/MnUymcBoUxC1fcbQjh7ZwySe5dSRXaX7CVC3705gi4qq2\nyjs4hG2DL2XJrcpaF00v9UzAeu8f5GbAF0JAW/TDTjALbeVbfzJ395prGlfP\n25VP2/tWk7Iw1Slxj4ohjQQniaL9gStsofdfz0rPq89psUd/zOuMv9mwP0hb\netCjl3Iub0ZtXAkxZzXnqgjFSnKJF6V4b+smWTKDh+KGcv45HJmCd2Gg0uwe\nD7zXQHpPRoT6+VLHcnKL1wH2RCBbeLuOSK5gdnw7spD0eiWkNEDJm+JR5En9\ns2QkXKvhlCkNu6PQxxuc9kwlYgdxYW+JWDz7o1iEA54zUXq6syRh+W2muiQm\ne+G9\r\n=/+ao\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGSMPcqG+5OB7yAOFgCUroGaP/Nksr5vZrhtIlSZTHtSAiEAny+wT3z+BbRSjNyEfgYTF/n3d8EMXvkv9ch/6RzxxQ8="}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.2.0_1538150442186_0.08268385473256568"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.2.1":{"name":"ipfs-http-response","version":"0.2.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","build":"aegir build","test":"aegir test -t node","test:node":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"async":"^2.6.0","cids":"~0.5.5","debug":"^3.1.0","file-type":"^8.0.0","filesize":"^3.6.1","get-stream":"^3.0.0","ipfs-unixfs":"~0.1.14","mime-types":"^2.1.18","multihashes":"~0.4.13","promisify-es6":"^1.0.3","stream-to-blob":"^1.0.1"},"devDependencies":{"aegir":"^13.1.0","chai":"^4.1.2","dirty-chai":"^2.0.1","ipfs":"~0.32.2","ipfsd-ctl":"~0.39.1"},"contributors":[{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Vasco Santos","email":"vasco.santos@ua.pt"}],"gitHead":"076fde380f38abd404e21f87797e548e2e1b81f1","_id":"ipfs-http-response@0.2.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"dist":{"integrity":"sha512-A3FPRa/IqiGE0dNRDDYRdDnPsq5eBuJWpASWGuEzTeGAh7Ad5dvIaU9JyIcLlcLLF3tAhueUnaFxjgAhot7xog==","shasum":"94aecd9a4732fb4cceb0931ad68af5d5b5e34172","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.2.1.tgz","fileCount":26,"unpackedSize":1790348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5bRaCRA9TVsSAnZWagAAUeMP/Rh5WIqF/mMjmpnmyL+E\nIm5Ygd6blWI/i9Q80iI95X7dF4zWqt2szsCs4ADnxTsevqYbqT4H3D7FJmhY\nRsYHQtaTQ+OvDiwmU0+0xf6gXLqJSLAs3WDcC8ZH1ETzWimwuPoXVpckQHXH\ndrCIg+zrvUtNCOrSEPpl3wfT2Cw/+AoE0C4QzwNFhTwRrC0hd0tmMvg6nhzS\npT3SNjcMokGSLlv35TzU7VRTyI0VjzijXaUgURedc2lmzfNZyAG97G8tgmSG\nTBO7a6o/QjAFFB5vii3aAUTZZdxQBylThU4oO8QERk8t4XwKpu/WJN1vBd/R\nxf6y0MCUUHtmNh/ReV26oFV6LwjEuTHuOOM3ibvTTq66gabJdssQ2KxZlN7A\nXtPbLNJb4iI81sHR9OfP34YZvtegG72HrVOEM7sqH77PaWQ04uZcdpTjWVmW\no7qP8/qLDW19a5suSaQGAD4YGVvC35aBOCh/FjVflPQeErKa4XACS/ZvrEMD\npo/BlGD6f6gpf+/c+cXZbyOiZ3XUbfU1pKRJTmP5NcHSjbdAR6s8CSnrjU/8\nKWzIKKnZ4J4P3E3OwXluJHxvEuTaOkOImSc64yBecK9NtDZZ5M5SAshZDfL1\nGuPoxp2QHLmial0EZr5CmZvRwud7YUdl5j3LElyK/TRZyPqq0YvGxZL5Aiks\nV8PB\r\n=GBiY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEs310tu5TZGq1qA6FQvetfYBSxez2/mxaQ2MoxLN1R4AiEA3qCok079RIoQuYGSGNOef77bvKtZP6StJpecrU0nVmM="}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.2.1_1541780569487_0.5516609885738535"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.2.2":{"name":"ipfs-http-response","version":"0.2.2","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","build":"aegir build","test":"aegir test -t node","test:node":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"async":"^2.6.1","cids":"~0.5.7","debug":"^4.1.1","file-type":"^8.0.0","filesize":"^3.6.1","get-stream":"^3.0.0","ipfs-unixfs":"~0.1.16","mime-types":"^2.1.21","multihashes":"~0.4.14","promisify-es6":"^1.0.3","stream-to-blob":"^1.0.1"},"devDependencies":{"aegir":"^18.0.3","chai":"^4.2.0","dirty-chai":"^2.0.1","ipfs":"0.34.0","ipfsd-ctl":"~0.40.3"},"contributors":[{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"Vasco Santos","email":"vasco.santos@ua.pt"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"}],"gitHead":"3c6ffcd937479b653f7c37e31af3ab65edfb159a","_id":"ipfs-http-response@0.2.2","_npmVersion":"6.5.0","_nodeVersion":"10.14.1","_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"dist":{"integrity":"sha512-RMc9GUdyfFdOclobCXslfS+tGevJJs9ZhUv1xuJd32d1CVEd3PlZB2VBgWPMP5jXyZJWQ9kkAha8fBHGtC55Cw==","shasum":"40f1dad22c73b4d64fcfad8a2cbe55f634f4a2ec","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.2.2.tgz","fileCount":26,"unpackedSize":1790383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQ0IlCRA9TVsSAnZWagAA4eoQAKCZJPVn8oYrMzbjgh6m\n2YjdlhATMCOHyd5GYEt0lK7k1eiva5FkI8+XnkR6flOE8IJnu7ki35QT9nbp\nAwSlmVAvNwDHVTagHN4FIS8OAjpNx9Uochyh/FmEgWnTWnwXVoZEGRBf9RfC\naKYKUZhO212LeaYMbzdD7oysJSJ9O2fafH7+qDoeukF19asfYJlXwQ3qhuY1\nsecVJrhzn3SVvwyZRG4/kMSaY4AwL11vNHN8s9u8CHolUfsH9CQIocppqTNK\nZMY3iy8Mh7TwUPtKWGJbc3K/UWZAvq8X5AkSFZfHmjBld/aPpyz/Tk4yw15h\n0IWZ8E9veZTDnssrWTh8P8KRONfvfgjW39YCnPh00LLXpA8MV0oDBsQ4HuOs\nmiY73L3C6v5vPKwpqJ2/nEljItvVzvFoJ705/4W5Yzvh8boPjX3NnqiMOsj2\numvJqLgug+NXVIACBAx5uIYKcwhiVheblVSAbdK5NKJt4O+Dcyv6/EyV3+Yy\nXo+8UOQaibk5s0KPg8isFY9tNebsHjus6w4y4/+4jTbyNh+VoHyhI9CEek3P\nWmAHdgV0gUb1Smhe4fRRFTWWJpZ5wdwUoTDFweDaYjxReeOE4THYGXpWNxfq\nj4YCoR8sAsAPi38ucj15rtaImeVToEthcErrxT6ZZmO88d5tAr38xI3A8s5N\n+IGq\r\n=g+oK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDqMXJWuAbDve6KAGOA8o3uaS8zOF10d4I8fhAQ6d/MAiBUNvZ1kDWz8AUXRWXwAnocW+j+fveBtB4C2ggx000rdA=="}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.2.2_1547911716511_0.7742744726972195"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.3.0":{"name":"ipfs-http-response","version":"0.3.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","build":"aegir build","test":"aegir test -t node","test:node":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"async":"^2.6.1","cids":"~0.7.1","debug":"^4.1.1","file-type":"^8.0.0","filesize":"^3.6.1","get-stream":"^3.0.0","ipfs-unixfs":"~0.1.16","mime-types":"^2.1.21","multihashes":"~0.4.14","promisify-es6":"^1.0.3","stream-to-blob":"^1.0.1"},"devDependencies":{"aegir":"^18.0.3","chai":"^4.2.0","dirty-chai":"^2.0.1","ipfs":"0.35.0","ipfsd-ctl":"~0.42.2"},"contributors":[{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"Vasco Santos","email":"vasco.santos@ua.pt"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"}],"gitHead":"28c39e8e586d17fd9b455b35962776059c2eab66","_id":"ipfs-http-response@0.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"dist":{"integrity":"sha512-h4TabA7XpLxyyl1tlWVZKciXaP/A02LG55iIFREZTLtbnS5vBGOH2B1XbpgsrNMFjAG/p8pFTUeNiZfQGqi6qA==","shasum":"e049031031c479e8424f896323c2eb10e00524de","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.3.0.tgz","fileCount":27,"unpackedSize":1797401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc49tnCRA9TVsSAnZWagAAUGsP/jUBMyOiNr11EebGE0d6\npqIYI3Sp87fXh7+o2lmv1iWIiYMDTxRiuQ2JWQU/Ho8L6uvNzRy5QJKDQYEy\nN5Vpud0KCBbcdEsrwO2T2jUZXX6Vmk6TDIcH3K7s6Jow+RzMgAy+VCmjlyso\neseJgf7FxVXxAw1YSwfMwk59K/srwujH1pUEGlgSslWu1qN+c1E7irOg823p\nJ0hG6iO6mnqU3hHvPm7AI3NYtoVF9eqefgsNNQMDAEoWa0+5LwLzy0WUWupR\nftVEq6nYjYssGmWFEY5SmGU8xukMMpeOHNG82WHTeYEU1hRvF6mGPYVWRTFg\nncWScm58Oa0sjamDAPC2evIiKMPg9tJOVsjtZGc5QL7lXW0ws1O0sWoFfEEv\nq8VdHwFFUDTYQrCCppivLr+rpRHMv2p2Rxt2fAvw5sj9S3EL0yi1QVYrLX5B\ndVoOq9Ft4UGjVx4f3TaD99O12f8yrrJ9d3pKO9GaYa+rB0RrTbKNLYzy4Yag\nq16MVaY3VThkZy2J7sBuQPEMG9R2D7Z9ZoKx5X+++jRpP21PKPdzpzkxS9GI\nWpAYNlTH50DRSlSG0DblgzSIkD58e0Gy9O5GjSL4ADFixutD6FN7SohRNC0X\nm9V1DHLcn6xkPUotrIFHRccEymnD5GmUVrvaZYUEMBUFa5tfSF5PVAFwLNqp\nEi4o\r\n=47eG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOYwmMHjYHdVjr3muA3owj9jwKb+BQmd69HpyH3Q8TrwIgSK/3CqdxK1U+lpHk9/fmsZUBQC3HS6cB3taTmvXLRcA="}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.3.0_1558436710314_0.005547735577982937"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.3.1":{"name":"ipfs-http-response","version":"0.3.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","build":"aegir build","test":"aegir test -t node","test:node":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"async":"^2.6.1","cids":"~0.7.1","debug":"^4.1.1","file-type":"^8.0.0","filesize":"^3.6.1","get-stream":"^3.0.0","ipfs-unixfs":"~0.1.16","mime-types":"^2.1.21","multihashes":"~0.4.14","promisify-es6":"^1.0.3","stream-to-blob":"^1.0.1"},"devDependencies":{"aegir":"^18.0.3","chai":"^4.2.0","dirty-chai":"^2.0.1","ipfs":"0.36.0","ipfsd-ctl":"~0.42.2"},"contributors":[{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Vasco Santos","email":"vasco.santos@ua.pt"}],"gitHead":"5f9e3e3d1fb003697ae1691e0ca43145e208643b","_id":"ipfs-http-response@0.3.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"dist":{"integrity":"sha512-C2Ld9/MVnUujXPLVGLYJEgi9troi0QLyhkygsQ6c4c9VG7/BYES+t45N6uM2Be8TkAAMIWFkXSi5zfoGcHCOsA==","shasum":"5cc351f8abf5f77dae47a41781fd7bc0c88fcaf8","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.3.1.tgz","fileCount":31,"unpackedSize":4177456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+VubCRA9TVsSAnZWagAA+bMP/1+k7L+8aB/eVtqhgV3C\n0WA1T/zfziwM+IbOF31i8NixqR9ENm7uxhOsxQyrfq6LdWBsi7i5+l+ZBoDm\nmOE0bWcdY9+k8R30m/bkUqU4Rnod/75vGHtYdBS2XQZeNG3UkhWRkBJROGHC\ntmMBidI7XkqBgSBhuSkf/RQFVaowOxiyhNZS4+gPZui74AH7CHrIB+n5gvou\ns+LQclhgeotRB1W/oCOTxb7mv45c+U9OqP/jP3KOLpmkrfadhgMNRIs+/O7o\nZsATVtnIXIFhFNblgBZYq9aGp9e/0JDCYgN/9NSIhqe/405f9fFmq5cXf6pJ\n+9M2ifnV8kN9H/G/+iIKfeEkZ7auWFeyxXlK43rlgFkVQHfPBGyTU9PT4vWK\n3CxjTd+2JLmlvvb63IluEnlpubEKjDZYWIO4pbkg5bjvp0enutbsd/WOgJ5Z\naIaT7zR9e5Bb8+JgwEe0Myax8bhnGiAgZHV7GjXkvMLD/V/A2KCTzVat4FpH\nROCTWIHmKsI+vwVPvtOtutmvS/drWriqmuqNiSSVh3bIyRGcsXfP+ZCPMOe0\ne+2+aCBk02lBI4uLtFbkSHD5L0MR6ho7eWXOGIt2As7ST+8638b5wHaGJq4c\ni6ZQ4L/muS+qRDZl6GvTSszRyELUngly7sHork+QUFdMGRY1yT9QVrYDzWPy\nIGjk\r\n=TZne\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRBMWRwlG7hdVqjvKuqSygHex/8BvWHGdDN8yjR3ghKwIhAJFi1bOVAkzOi7GU7uojUzcTc5uRLKGU1t0Q4kRE9kmj"}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.3.1_1559845786669_0.9511056804807292"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.4.0":{"name":"ipfs-http-response","version":"0.4.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","build":"aegir build","test":"aegir test -t node","test:node":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"cids":"~0.7.1","debug":"^4.1.1","file-type":"^8.0.0","filesize":"^3.6.1","get-stream":"^3.0.0","ipfs-unixfs":"~0.1.16","mime-types":"^2.1.21","multihashes":"~0.4.14","p-try-each":"^1.0.1","stream-to-blob":"^2.0.0"},"devDependencies":{"aegir":"^18.0.3","chai":"^4.2.0","dirty-chai":"^2.0.1","ipfs":"0.36.0","ipfsd-ctl":"~0.42.2"},"contributors":[{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Vasco Santos","email":"vasco.santos@ua.pt"}],"gitHead":"ae6d61e6c7d0589ab239645219573720c7be7aa2","_id":"ipfs-http-response@0.4.0","_nodeVersion":"10.15.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-9IgrP9NzE8oOMRN0uiQNvDg8V7YbUGQucBY2cXtuANTUcs9DZjkhSFz+ypbQw/UBZMZTjTmB1eG+YODy9VZByQ==","shasum":"acf7c32d3a9117af8b15e79e5d5ccf0a6c80f05f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.4.0.tgz","fileCount":31,"unpackedSize":4154432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpEoaCRA9TVsSAnZWagAApoQP/1wGqzMkA9XfpHIlogqE\nlUG5u00XkCAJjh51+yZy1Wd98rXrymguNbJwzXCg3B9Y/Zj+nMP/2zaav+sk\n3d5+znr76E8QdoVg7ZjyQt9jvgZs3eGNGcPw9+VbnTfIoJG//vbec9ztwGTI\nnswhrDJ4sxHUlGHnWE7O2BPCgDMr7Ei2dFpuWA2sq8HnRVCjLgP1LdqIIrCk\n6IZSS3aMJfvbpAlm1aqM1w1ceDeVEJa5bRpKqK+AyfLk23s3nuFH9pQbVJPX\nvmGydkekPbT6z2nXYcKZ9jE3lQG+8xPGc9cmikazzz2dpRfA+FAGiNDJQGP2\ngfi9B7APQIvLM8G+GVMq+BI+pH0S0Op/jyo7DpcYQ/bKKTvHGHsjv+W35De/\nxSltoz5PAONNB19o/ltdUbRw5AKzTq0rb+qi71u9I3gqY2+zhcFx536Gcvfm\nIuZ/Re84wPlo0u3+z7L5XuG3rJ09khCofrBSPj1hV0Gll7HCPMO1kz9zlhEx\nvsaT869O2aGvXAGfoCLc79BGiDm+xr2DjZfDoj76tZ+E1q2MSCFSRxyyTBe6\n0LC6J7qF8pkXpxltGA01KZXBNX/FLMqrcEG6qLqWvdFu6gUjGVJDR26aoYF4\n0BZoUvtGYRRdbhHp4jIP1gtfBVkJbIv5ONM/18NHhWyUlzxXssl3auiVURHn\n3At4\r\n=SAY6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBaQ+GZInvCotKML5ABje7Zk4JtB+e2638+dme2TW8sLAiEAzCIpDNnNn68um3q0bD+gUz+YSudWCFaBWAMnv7/AgO0="}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.4.0_1571047961320_0.17863770672731238"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.5.0":{"name":"ipfs-http-response","version":"0.5.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","build":"aegir build","test":"aegir test -t node","test:node":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"cids":"~0.7.1","debug":"^4.1.1","file-type":"^8.0.0","filesize":"^3.6.1","it-buffer":"^0.1.1","it-concat":"^1.0.0","it-reader":"^2.1.0","it-to-stream":"^0.1.1","mime-types":"^2.1.21","multihashes":"~0.4.14","p-try-each":"^1.0.1"},"devDependencies":{"aegir":"^20.5.0","chai":"^4.2.0","dirty-chai":"^2.0.1","get-stream":"^3.0.0","ipfs":"github:ipfs/js-ipfs#refactor/async-await-roundup","ipfsd-ctl":"^1.0.2","it-all":"^1.0.1"},"contributors":[{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Vasco Santos","email":"vasco.santos@ua.pt"}],"gitHead":"54209440d76ce2587aa117afd744b2300dd711bb","_id":"ipfs-http-response@0.5.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-+z0HxqD6rxEPQCINgTvvMVsdr48pS1P9jzgz1hRjbufVugcpf5r2FGGjwXKCYGjKrWUT83CjpN0PWFI/dSQBmQ==","shasum":"2ab4f9ed6537c0876d7fcf785b7aa925957ab77e","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.5.0.tgz","fileCount":56,"unpackedSize":5383970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFIjVCRA9TVsSAnZWagAAWOUQAIHSCITPsTZtALclIoX6\nuMDjREaokQQuP214EHILZBdgYtD7zdAQEoGvD2V1bPzr9VNTepG6SIYx8mhs\n9zPMd77tL3oJwppw5vaJjTc3l4r8GGXUFjtr0knszjY2W9M6tTGmrsEbZkih\nEzkUxoUHVx+/nFw/ALpJEoEFJ4YFiR8QAx6hpJsAFmAqbZmLdr+0ZKdWuuPs\n5tO1FIplzz9hukwajmzJ5spra2PPklVQHzmaQnF1fihCkV3B71dZ8qLvFNd9\nOTeksuuEAqJ7O0G17Avu+hfz6MAUZhFQNxKAc1EMVogpRZl18F5X4Iq1EVL6\nkp1/B1oOG+OlKeXYVQ4R5QChh45zbjYvUVeIyXNOvUZRpU1auFQbTXDt3hJD\nLHr5hkpugcbY+11+aTyvQJUPmA1TY5wiJNA7gbs9EZCs2n5gWfAXCbwOYKyn\nogpp9BTlvZQv+yEZ6kJ6axQG/F+PWDVeDdl/w6gZwDm0cDdxGM6n9IUjUg+B\n3sE57/HWkX8Dv5A3yVLJelmYoFNUdjiWqnyHx7LFrmS9NZViSLwH6E4clO7K\n6p5XUR7SrqVm8jaf6yoo8Lc4xU9zwGCI9mefAaidfDIW9KmJR60xCMEnFnl1\nD8T1AffVTK36L47kOrpvEwV8p5iF4Tdrks1hZhBQCqFNl7o4dZfne42fnzFQ\neoxU\r\n=iGAk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCB+oLQhMSx8tZC46YkLBSPapUBQO/q5RDOHzq1HJk9ZQIhAJ/o/ZbftDsCjro+qIvfrSZVB4wfIOBG+jz46ADsOiIL"}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.5.0_1578404052550_0.8832383520564766"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.5.1":{"name":"ipfs-http-response","version":"0.5.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","build":"aegir build","test":"aegir test -t node","test:node":"aegir test -t node"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"cids":"~0.8.1","debug":"^4.1.1","file-type":"^8.0.0","filesize":"^3.6.1","it-buffer":"^0.1.1","it-concat":"^1.0.0","it-reader":"^2.1.0","it-to-stream":"^0.1.1","mime-types":"^2.1.27","multihashes":"~0.4.19","p-try-each":"^1.0.1"},"devDependencies":{"aegir":"^22.0.0","chai":"^4.2.0","dirty-chai":"^2.0.1","get-stream":"^3.0.0","ipfs":"^0.46.0","ipfsd-ctl":"^1.0.2","it-all":"^1.0.1"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Marcin Rataj","email":"lidel@lidel.org"}],"gitHead":"0674f1030f295b95e7dca683ec639afc1db3ec69","_id":"ipfs-http-response@0.5.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Mu7LWkCCE2C8H0he2jJKY7KtmmjuSaft+wSzAZedT1WRvsgv/05JI4XXlGc2Z37eB9q0nQPFKIE83I7gJRNEaw==","shasum":"c3e8aeb2473eef0b06f5df4239fb3cb00d54267c","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.5.1.tgz","fileCount":56,"unpackedSize":3725286,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+vknCRA9TVsSAnZWagAASHwQAJ+ppJe+TmxNVUbVWvjX\nwULb0hF7X2OLEKCIIkvHTGlLke7N4jivPZcx8Bktylkc0DvTxpfRVbKnMon2\nJ3Qunt4BBmSkwTEwC4x2GEdIfOHUP0jvpT8rJVRIcT6nEMdWAyrD208Sam5O\nxJMGOOHsyvVHOflD8HSSV8SEh1hq1fsyFrljyDP2rbAx8sDrddkWBSfDf4EI\nN39fJ9divVxUXoqHzdENM6yczQ3mgIIe5StO+KiQ6E6a4so8+0T1elAuawZi\n4O2dsHZPG+Iu0cuyivWEpePoCrGbkvN8A2jKq3HOaggSWRbnyCYQYt/82N1r\npw1JhgLJtXOEq9ehCLWWtZ092xuM/T4tXNSBm9tM8oi61SjcaolnpWxBhO3o\nkm941kAHkKNX4ACM7IcdW+PZUzD6dWCnqMFejYoP+jUQIB5XfDuziGLnK4Sw\nVaBhslwCLpbZqgbp+IwOjzuEKuwMdEu5XPfW7o+BtJrgZNG4SlxJdJH/3m14\nlAiDLfhKf9EZ9T6JL/ZaL5JDXyW1OgUkbeZzhXLgPKQcUdan7IHjCxRcBBGx\nAif1b1vC84NBRVSCh6AZqxkTEq3BoGdTBu3Kg+3qOwV8VIT6SjXet/tRyHj7\nnZTcHCXnJZ4lhGwlLHclOe1LEq8ASWtN89B5gRsj3l6Vto4j2xkqXGrTdybY\nSLYy\r\n=2IKs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDl7Rj0yXUCR5xOen78ZCOb5hgP8VT68HUhr+54Yivn1gIgWU4ceUp7nhTGsSuF99EAZX9EIJ8Mi8O+LfowyEPUY+s="}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.5.1_1593506087251_0.8944608094524704"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.6.0":{"name":"ipfs-http-response","version":"0.6.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{"file-type":"file-type/browser"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.1.1","file-type":"^14.7.1","filesize":"^6.1.0","it-buffer":"^0.1.1","it-concat":"^1.0.0","it-reader":"^2.1.0","it-to-stream":"^0.1.1","mime-types":"^2.1.27","multihashes":"^3.0.1","p-try-each":"^1.0.1"},"devDependencies":{"aegir":"^25.1.0","cids":"^1.0.0","get-stream":"^6.0.0","ipfs":"^0.49.0","ipfsd-ctl":"^6.0.0","it-all":"^1.0.1","uint8arrays":"^1.1.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Marcin Rataj","email":"lidel@lidel.org"}],"gitHead":"65580582b559b613499d07f6062a8835a264a655","_id":"ipfs-http-response@0.6.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-x1x4ZGvR0azgasT2ql6qKjiH+aPVjra9rJbNq89KzQVxrQLf9zlEHfLzfL7p8m0iYY4MiD+fW+QZF8xA18Xh2g==","shasum":"95d6d8e7617a35b69a0b3dc551b5f728a985f941","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.6.0.tgz","fileCount":56,"unpackedSize":3777215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNkhNCRA9TVsSAnZWagAAKLYP/0OPyI4F75PLEmks5o9K\nUVX5e6ZjQmV1FXbQVy5RShWc4KmeF1Ftbhx3DdeniDp5e5oDRH+i2MjTdyXf\nOpAUUDBxze9I9DOcYcz/HoK0C2s1Y5e/xuuPtdALjeI6muXe5rLFxIQ/8rPW\ntEdAO52MP6H8FZmaIizJIhK5NjlUNrt02XcW9LcqQ8+iErfAQk4i+mxXfJBo\nkawa8OLK9itgWqce2VE8k77kLC59A+7PSbU73Q8QAMleMHUaeSRYgwpf1aiN\n/rLjsgpoLfwAaOZr3L+W/T00KXHbFjQMXlgeR85+IrfXdstNSdvxgG13NMz0\nIurwCXwu/3+RKi3XZ0E7vH8wH7xe/cHBdd6BEkp0PMGeqhdT23P5ITN5cGBn\n6g2Jd4fSSTfHch7Mv42QLgjFzdGFwrDK4GKkGvCcaecr82+8EHxjM3P+szjg\nRkknnzcfA8K2nWwiTpSlgXPjcn3dLLSHV1LOplVZwYpwNudUEIbo6cir/Vn6\nOip2UW+4LrAgu/BuQ432txgMVHrdwDUEnjz8q7lnAT9QH4xndKjQb7ueUCxC\n8CV7HMqw45uSQ1CvSWjM0yrA3a7KOkzSUYuaXr41aMInE9nzp+PPfDy7iRON\nGvxmQSbHU1Jk4Y/dtAER9fKQmNuGYgHndc63Sds8FXifJddF3aqVqpqldkdP\nhzxp\r\n=vB1I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNq1zWeRqGs1qHWZRdQ8RrviNrWVylGgDSnEo4kBqNZgIhAPKUQQ78yGZ3fmLfosPyp8lH3vPoW8s1Ab7/eConoutG"}]},"maintainers":[{"name":"vascosantos","email":"santos.vasco10@gmail.com"}],"_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.6.0_1597392973032_0.7218084681987862"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.6.1":{"name":"ipfs-http-response","version":"0.6.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{"file-type":"file-type/browser"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.1.1","file-type":"^16.0.0","filesize":"^6.1.0","it-buffer":"^0.1.1","it-concat":"^1.0.0","it-reader":"^2.1.0","it-to-stream":"^0.1.1","mime-types":"^2.1.27","multihashes":"^3.0.1","p-try-each":"^1.0.1"},"devDependencies":{"aegir":"^29.0.1","cids":"^1.0.0","get-stream":"^6.0.0","ipfs":"^0.52.0","ipfsd-ctl":"^7.0.0","it-all":"^1.0.1","uint8arrays":"^2.0.5"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"98d887d22e04029d06513ed6a5af3029337c14c3","_id":"ipfs-http-response@0.6.1","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-tfvgB0xtciDyIsjrpAooyLvj28rKsnFXAOcPjbWdB8atejo9Rh96bkcHa+mq51KZLo0VpAUYJCVCV38gcIpObQ==","shasum":"fa1fc685264318112481195898f56178522c57b8","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.6.1.tgz","fileCount":31,"unpackedSize":2186430,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4eLVCRA9TVsSAnZWagAA27QP/RG2sQM6MZ8TGOiUoqtH\n2ABh97EPdsJi1QmhOxcCQuXvYqZJo7QLKFZPVgnHt9NfOT7jcJ73Ox8vajW8\nTBvCkMhBinD3TLZ+6KbLAOpVtYIMC3UsDEhC4UrqkmOm2sO/xCY5MmiOOZXD\nKuNkfYOeP6Colhx5MDoBJG/oC+knB/VG6d+8Ayv9wybTVJ04qmhy8UvCLgjR\n2m8ta+E5Q8+wSZ1sZpnzBAcwi+oLUSAoDrmG3xV5uNAAEgSgRcLjxB/Hc/Vp\n9XHfLqw1Eg0O5yoq0mgWzmnCo1H4Uq9CzCX8Okr+8HvOzPAP7fi7f7/Wz35o\nREr0Oba7WyEf4PUdBgk+tJZN5n2Dnl8bcoKir+bA6vXicP6DrFzbP09kyLHb\nxdJEdZKhMYj+mFWp/ueEOLY89XWEdsBiICSlZxURA+PfmpRxSFe1rfG6NwbG\n6Fum3aHAAuSncRsJAFp+f/eg2Dir05xyX6uJbB0TDGUaoJX+51/YjDh6g2aQ\nqX/Ci0eMpIxBcBC+WgZAYB9Ukqf0Yf9QImBAQI0d2D+I2p15CFqk9hBaPfGn\nx1rGLcH3334AP9Iz2AgAmu/Iq9cFzNIs+79fS9Gw0NRtp4NPFELCtKeVh5dY\nC+RdFqbHCEXMlZ6r8l608CTdnU9+an4Ae3MSZpdvmweROMBB274ATrwweBZT\n6PNW\r\n=al38\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA30xMkvMJIbscPwSrxIReO9DwqeWrfKKcxx7F32NrhIAiAKmriHoDvce6aufwSlr2sJ1DAtKUL/bq7RxXLYSZ025w=="}]},"_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"directories":{},"maintainers":[{"name":"vascosantos","email":"vasco.santos@moxy.studio"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.6.1_1608639188344_0.8157717748884596"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.6.2":{"name":"ipfs-http-response","version":"0.6.2","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","build":"aegir build","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{"file-type":"file-type/browser"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.1.1","file-type":"^16.0.0","filesize":"^6.1.0","it-buffer":"^0.1.1","it-concat":"^1.0.0","it-reader":"^2.1.0","it-to-stream":"^0.1.1","mime-types":"^2.1.27","multihashes":"^4.0.2","p-try-each":"^1.0.1"},"devDependencies":{"aegir":"^32.0.2","cids":"^1.0.0","get-stream":"^6.0.0","ipfs":"^0.54.2","ipfsd-ctl":"^7.0.0","it-all":"^1.0.1","path":"^0.12.7","uint8arrays":"^2.0.5","util":"^0.12.3"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"10db886365c6c74a67e992c7c11af9031692dd34","_id":"ipfs-http-response@0.6.2","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-ouJlAdDC3clOzMlJbYQGNIxfj73BG9YGAxwSNM50wIZRl6WMAILlKVCuhJei0PsNTezbZHgDFx1WkqHff0HqDQ==","shasum":"1a7164d5c3d529ddebab01c327f24b9d0bb7e361","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.6.2.tgz","fileCount":30,"unpackedSize":2203473,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUcVzCRA9TVsSAnZWagAAQvUP/i126JDlPpFUs3z/Xxgd\n85LKLA2T+GCa3vy9TS1A/JKTxsMctUMpS14nhHeY2BSQw0wGHvq9D31iajtw\nEApusOsgHFhqLcule74QZZQkFw3gryRy4YQKgv4DwM/IpvrebVs21VOW8AEm\nk/KRgZVAI7XSkmcOCzr+FPno3mobEt9irY0nUQAv50/I5hk6p8+kh7pWjS3s\nS44I9MWicBiIchabkjHjXALSpl+LnONidioBt3NTfUMan5FLrh5icZDGgdvr\nRJvUXb47Ak9gb3DA8ivTkDVBdyG9llLzsb12w97uvKAmoLes+P+sKs+Bvhl6\n/chBwSbwlIc8MqcJvDjRaInjh+BpKj8pTrYD++ZOR3capZGkg9sIKnaTvfnZ\ngFXMEWm2+qsu8HmhLUw6OHe8lh7jy7ZXIBmvyX6aD6UdL0hgA2HEeG9MwqOc\nNPKi/2VfhbwJO2Ruzf07gsKcAZzgzCuNwxvP+S20f2tQcqQBCWWTr8QGWc4p\nea8Nnd2e82KaHM8Yn7F3v62nKqCltbOcRUyEnpI91VAB0e8PhdyM69d7EDIp\neTOX52VRbyNe2n1DMHopL5jEn4Os9V3Dmux+oKmzA1cKjo3uQSwom4UhelgN\nUsHw2nEUXSwa+tAxTYSdRooj2h9c346bRNnRJ1wrp0cBDmrlAALMcqsqE9Ho\nF9Gq\r\n=FY0Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5iKgKOdCl6WNBIuGixiFt21DeYryYkyXtoVIpjtZ/RQIhAPTA1gIMeM60ke8Xltru1Sx/D7fn12slUAfEAWpYkuCk"}]},"_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"directories":{},"maintainers":[{"name":"vascosantos","email":"vasco.santos@moxy.studio"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.6.2_1615971699478_0.9334772167768846"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.6.3":{"name":"ipfs-http-response","version":"0.6.3","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","build":"aegir build","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{"file-type":"file-type/browser"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.1.1","file-type":"^16.0.0","filesize":"^6.1.0","it-buffer":"^0.1.1","it-concat":"^1.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.27","multihashes":"^4.0.2","p-try-each":"^1.0.1"},"devDependencies":{"aegir":"^33.0.0","cids":"^1.0.0","get-stream":"^6.0.0","ipfs":"^0.54.2","ipfsd-ctl":"^7.0.0","it-all":"^1.0.1","path":"^0.12.7","uint8arrays":"^2.0.5","util":"^0.12.3"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"73888217e19877cf305f947018ad254af74194d7","_id":"ipfs-http-response@0.6.3","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-8aaobgOl6GUo39oTIIYwEiQrcvjDH9A79hAHMJdUlHmNyBW4bZZSFWZ7xGak3btVPHDhknzSQ1LExFTFD3/rwg==","shasum":"3de6ebdca47c0d1cb83142d240c120b1d2cb109a","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.6.3.tgz","fileCount":30,"unpackedSize":2232014,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdELvCRA9TVsSAnZWagAAtm8P/RayDClj3JO5dnF+Rtlj\nZr4xvQeGMzTPXH8Ojn521BoYyMIjUNHUZRPZP9nj3izCT/QoUIyzu2NM35or\nuRCyzVU92vxqMsN64Nv2IzPELIQuVSUd7GJMwsJgeWipFRAgIO80Vt9up8Ul\nkVlJAMVN4iysnqQzUO4J5OHmwo3uAUQUUKB/3Rk1Yq/9M31RVoCQXVKYon+d\n0a2jum8EcO+MXMKZWaphYABdkKnaabncDHkUEFkkUQNquDMZQtsjKXfjkVtZ\n3rGfjOdsBO74PSgR2nOBo+3owtv31zlWopCCPpt5fDc9rp+viGhQ7RV38BVP\niR1urxYwzDh6p6F6K89MnWuwemEZZlmmQuxJX+Syr9G+fVs3dCtDuG3Zy9K8\newjLikgcG7r5AVX4C39YgWH8EEiEGzlBDlde77FdPM0aPgFWVdOEXMI2N2Xg\nbNckFLfNUnH3nqlvFNGMLY4aCIUSxicsgvwqAbIQei7+B3Qzchknv/RWGUEc\npwyt68mgnhs68O8HXF0Koz0ehwq0Lbe4oI07o0CXxkcnym778aopynk/T/Ox\nsMjOKGxaHDv0OOLYx9fDlsg9e4r0dDlQaAHCpyoUmEAONdKx4l1B57lBUJeS\nfluIf10lHBlj3y3F5PUE8vulgWnwfBzOby781emN4sgXuAtkQL13iSwoO+VR\nnSwH\r\n=KauI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFW8gGHXJyodO5LS43WAgJfqIsIIMovnuMQlszKj2VK+AiAfhlJUlMvj58hH7M/ZTNAnis498+IeAU1VRUgs4z7Asw=="}]},"_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"directories":{},"maintainers":[{"name":"vascosantos","email":"vasco.santos@moxy.studio"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.6.3_1618232046639_0.2407865649359926"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.6.4":{"name":"ipfs-http-response","version":"0.6.4","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","build":"aegir build","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{"file-type":"file-type/browser"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.1.1","file-type":"^16.0.0","filesize":"^6.1.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.27","multihashes":"^4.0.2","p-try-each":"^1.0.1"},"devDependencies":{"aegir":"^33.0.0","cids":"^1.0.0","get-stream":"^6.0.0","ipfs":"^0.54.2","ipfsd-ctl":"^7.0.0","it-all":"^1.0.1","path":"^0.12.7","uint8arrays":"^2.0.5","util":"^0.12.3"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"b797d2fe73539d197ecaaf8bffc888110e6555cf","_id":"ipfs-http-response@0.6.4","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ltQgWaK72IJC7wmwrCZdhewA5Rq2G666y9R4CXkU1rgcqvXDyC0izEDJZN9xNXg17ib9ieS3Dcqc4k+A1te8xw==","shasum":"f129386704fecbc9bdee6cb404ac0b922e1634dc","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.6.4.tgz","fileCount":30,"unpackedSize":2181351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeYE5CRA9TVsSAnZWagAA0PQQAKFQAB6gF9QNU+N3kn7f\ndiASQy31YuuB0toe+5DLSFRx1SNyvfkMBQeimnoJFGyH17Zm2sVT7yITe98r\npDYVdWBeuv8Dc7NtV9mp6FQFlsT5kdQzF8XaKh60g4C4pdRs37D+yUqr90zL\n2c1llOydyh3G+ldwtwkjHwnp0UPDreaUWBzJInnVx0wVBUqPahE2Zk5WiL0a\nn+263fiWYP6th4YlDd0Dewaou0wGomokI8Fo2ZWs6mdydaN81BPjRAp5JDEK\ntkJDDEmP/vu/dr0cWp9g45y8WKbbMQQkmky5Bo/J3zD7Ti+FTQyfwFbc+tMs\nBf0csqAE7ofYkRuCIeGF5V27EORIm7fKwVd1Nig8GkALN8d3l1UP8SH82XeP\nD5K2SLwFsMPTZG4tNd54l1mheX7nVx7o0oeSHIEPQdNdADACH/aTyJi/BhEr\nKa51X3/ji3ZJ6GDk/nLVsczMXII1m/A5DzHYj7kXKVTM+TthcfUvHmJS1xHA\ncU9VM438+7LSNAv32iAebemYnbSLyUFqSzL6YMupctoxdp0h05XZ8UPcjUep\nAPOZgYIZsYUIAfLLRKapCbBMTV6sBmSwvRX9sueYPQtkdViLWlBG0Ncp1tow\nRjM9kHNOrq6yXuJuhUjDHsjEOUXMZsgFA7uDHsEwiWKUhfNVaUVJZ6S8wT6Q\nyO0u\r\n=XMcm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE07fUigXO9+dDjiNP+C8d7tOpIG+Vlyr3Zh+nOhiU7XAiBaSaio0m/bRiXQu+atQkx/nEVpfP+C/1A7swgSwNCR2w=="}]},"_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"directories":{},"maintainers":[{"name":"vascosantos","email":"vasco.santos@moxy.studio"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.6.4_1618575672504_0.23185552607354887"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.7.0":{"name":"ipfs-http-response","version":"0.7.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","scripts":{"lint":"aegir lint","build":"aegir build","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{"file-type":"file-type/browser"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","file-type":"^16.0.0","filesize":"^6.1.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","multiformats":"^9.2.0","p-try-each":"^1.0.1"},"devDependencies":{"aegir":"^34.0.2","get-stream":"^6.0.0","ipfs-core":"^0.8.0","ipfsd-ctl":"^8.0.2","it-all":"^1.0.5","path":"^0.12.7","uint8arrays":"^2.0.5","util":"^0.12.3"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"7ccbfee4936f4121f67e111405206d83b54bb424","_id":"ipfs-http-response@0.7.0","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-X9KRQohTCb48aqu5nF9MYz8Z43HsnF2at2J/Lo5PcetAH2rzY/KUz6vAHDWPmL/SWqoCMI1oesaTs6hd9e7lgQ==","shasum":"9b54792eb51c70809fa7a86a5c5ae67533d3710e","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.7.0.tgz","fileCount":30,"unpackedSize":2165135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6/8zCRA9TVsSAnZWagAA1r0P/R4ws9txo/hB1aCjpsVb\na3OORTGIVB+5vFM7DdL3eW2hI2SiGROVqvSlkgj1YB8fAaKRLnJmDGNFMUVF\n4AxtMALCvCaGakJ7MH8cPu+RKK5V7tX9w9qNTeVYtnfwOMzF+3HKgw6px3Au\nSA1XpeqIEq6I/kMN+Nmbv1nbiH+OfrMud4X3Bc/S96/7j/R0eUERY8EBKQiU\npkITA89cDkrceA/Sfo0WAxTaaykyLMtlG3XspFTcMoL4kkUkeXEjw9nkloi6\nQTyixD6V/XqKrikeWjJbXBKPnHaECeTT0OMJBktFEJFEFLOQqB8CkBHkpkUA\n+zWDv03XS3vP/1cHhIFfwVAuX4aXtAXPpN39UsqOpi8PrwhYKxHiP9LOeNuF\nmsh840l1kHDd/le4yXyOpC633C2oIeTMJdx90zb+6MyulDbzJ5DhH8LHUEDD\nX61Al0IT5JcWHGM1kieieF8YEdxb1fDdn7wGG3R1VSFRAD/5OG7vp+CdoKP6\nZl1WZrIVHne3vH+iB/WqzNa6fnr/rtA1ps1vZ7+mAfdhBCSIfNFrSYsdjzOg\nx0P8rlu8TK5xmgL9ZbGQcz5jrV73w+lQpvJioRsa7h2yTtnrXKiVpKzhyH/C\nJ7YztDLBTNy1h/o/pJ4ItiOCB5aWs0gmtIuBN6Z0Djq/ZTf38ngS8NzOxkdP\nzV1b\r\n=VYAw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBOgenesCoNW07pFownzhJOuOnRPbzmTlbc6+0TkDy6JAiEArfeeRoiiDdE443bXpyNZwInBPYE+lSGIp9aa6rsINCQ="}]},"_npmUser":{"name":"vascosantos","email":"vasco.santos@moxy.studio"},"directories":{},"maintainers":[{"name":"vascosantos","email":"vasco.santos@moxy.studio"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.7.0_1626079027257_0.8739328138521218"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.0":{"name":"ipfs-http-response","version":"1.0.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"types/src/index.d.ts","type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"prepare":"aegir build --no-bundle && cp -R types dist","lint":"aegir ts -p check && aegir lint","build":"aegir build","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","release-major":"aegir release --type major --target node","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","multiformats":"^9.2.0","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.0.3","get-stream":"^6.0.0","ipfs-core":"^0.10.5","ipfsd-ctl":"^10.0.1","it-all":"^1.0.5","path":"^0.12.7","uint8arrays":"^3.0.0","util":"^0.12.3"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"188acd1a147631466dbe0707038ff11fdb0e899a","_id":"ipfs-http-response@1.0.0","_nodeVersion":"16.9.0","_npmVersion":"7.21.1","dist":{"integrity":"sha512-tO6sY/i27kU0L85K3rMPaksk556JJyYZFUXNi5noYYVyNaL7nn+E/2JSR6j78TVco0GoIv3h65mNafr8CsbZtg==","shasum":"1320c3a0c0b3d9b0a65cf9429d93408cfe9e6c5f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.0.tgz","fileCount":77,"unpackedSize":2398613,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhN+PWCRA9TVsSAnZWagAAu0IP/Ris4dCK4dW/DOESTQVX\nhpcVZ2o0VPnIQ61qv3YZD0GsdTK2w6AYA2vQfSAYwvTMdOM4dLx4J/gLjO7i\nBk+HunKbqbAZU7bEzIU/xd35EOqC94ndA/oQWkPXYOtFRWdfmxklwv2s+ndU\nCmsQbpDz2XIE4MLpgj9VG3WHb96BveusW8nLMpyVoX03KBgoTG4NqsswQhye\nWe1l8cKY2wsYuOw9MkDY8WrHNPIw9hzs5ocajkKELx5rlRVytjHfSak6Seuo\nNHMsEuoHdUBgVHc/dScR5Kr4ums5HQkOF+xXr3Nu0EJcHtYjfbMAPEpTyAc2\nwxY2DSyrPXfN0TklZCsyiAEIq0qJ55wci/aZ146Pj6utFAatdMV62qNAnjbT\n2qPbbteBZVPHyhsxS6xWdfMLmlaw4r/N0OZp3HmtK0MOB0kUY3+Hsx0Kixtk\ng1brgnRYZdoLCKDgw+8QcyZgiws032MLkDtIFlllrfr7mt0iq2cxvCUehtoZ\nbrF9TyveKTCq/5DGgFaslBuUHPSzpm/pRPSAOFnPvj2U6Kynh6sLjJxM8dId\nRdHKu/ZkmBXHt5PhucQ0HJEOuPK3qyB5XnFxDrJqqOtHQaHH9KaxSZqoZkAC\nW773JLOkUP7G29YRMbcqav0ox4yyVXimw8QO6wtCg194ho/pa5vt/qEkcD2i\nbTq2\r\n=MI+r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEb54WWezmiSETJOei3d5326Go0c2tgCvbl22BQ5T7bCAiB92oHGAamRT6QOAqvGhWLxu3jOKqGFowjENlkDRe/IWg=="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"vasco.santos@moxy.studio"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.0_1631052758329_0.3157179927720817"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.1":{"name":"ipfs-http-response","version":"1.0.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"./types/src/index.d.ts","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"scripts":{"prepare":"aegir build --no-bundle && cp -R types dist","lint":"aegir ts -p check && aegir lint","build":"aegir build","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","release-major":"aegir release --type major --target node","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","multiformats":"^9.2.0","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.0.3","get-stream":"^6.0.0","ipfs-core":"^0.10.5","ipfsd-ctl":"^10.0.1","it-all":"^1.0.5","path":"^0.12.7","uint8arrays":"^3.0.0","util":"^0.12.3"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"_id":"ipfs-http-response@1.0.1","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"integrity":"sha512-rRKcN84uRSNd+Sr+yHrGL1xcBTCP0ovqrChw6b2b72Jp1JrbqgPd2fZEFs33TNbcl5Um5tnDG+AkKB/hkcxfWw==","shasum":"0f709917c69dc527ff7c75d025d54f9ee010ef3f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.1.tgz","fileCount":46,"unpackedSize":993636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOGuxCRA9TVsSAnZWagAAqDUP/32CTu7zvbDlKpNRmWLZ\nGfolvt+6LrQKveccjCUMyHTugGrXnyqPaGgl/AnifoeKT8USrSYwNJS4N5Ow\nh3jM9qkuV1OkamTdc9orzZJW5OyofqayLXiFk+lyJcsDc74xsydcYWaDCuRX\nIp/E6ZMCevQbdMIc4yyvhdIcPFvT4EiGpsocEcKwxfwLskrR/nOmCPQTvETU\n9W1xMa4BAKuWz7RR8RLvhmydexSkUrZ9Y67y5Smsy2FI5jsMIJVw1tSASTf7\nSsclaNKmwnzoacjlzjFycakuP0Cx0XlQF8zayBl2P2UqRHF/9c4USHbyKUtz\nspqgBEZiQ8k+Up91f/g3ZAh7OzAcnK7zWtCQSpH0tYaGzZ7XhiuMeM2KPWuS\n2PW4kWUN+7LTOheuPJtyl+ORYddCyqDVnBv62XZRkGbyQlNyGz9zIIsB4/eF\nB4NPjgxnapC9/yJwlOXhfAp9RZm4jqcEo8tw78b2fHxXjVz3BW+c3Z3vGNez\nGII96aB3INzjhSnMYck4Cbp9H8/vjPxNVGKtfjrShNrjzoUQhFNaGgEeVF03\neFxew4nC7uUd6t9u+Vma4M1d2rYY6Sx+VLNCr/ZFmaZknP+Hu9NWqO9GJVfr\nEhv8YT6WHDJlQvx3M3IegmPrp7XnfkYwsnc7vDQyQgQQwgxvzYH+Ny5rK2r3\nc73m\r\n=HHU3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICBtlZUOra+QKncyfqtnucpDfDLSbUwYtEGV4TexNRLTAiEAkgdZGx6YEYFlG8H62jOyYPW+skH6BFPdUJmP4N9BO9g="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"vasco.santos@moxy.studio"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.1_1631087537236_0.38159824823844235"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.2-rc.6286":{"name":"ipfs-http-response","version":"1.0.2-rc.6286","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","build":"aegir build","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","release-major":"aegir release --type major --target node","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","multiformats":"^9.4.1","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","ipfs-core":"^0.11.1-rc.5+4dd8acf4","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","path":"^0.12.7","uint8arrays":"^3.0.0","util":"^0.12.3"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"4dd8acf4d7df0ece0afa764d44dbdfbf788807e2","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.2-rc.6286","_nodeVersion":"16.10.0","_npmVersion":"lerna/4.0.0/node@v16.10.0+x64 (linux)","dist":{"integrity":"sha512-sj51DYQK84EnwZOCYtzcoco/T/X19i3bmlqofxGBBrIZlL5MJUk3DHFt7LOuS+2jc5ar+9iWk+xSJiC52b4vXw==","shasum":"3961506c17a90d8933f35f28bc47d2ac81e9053e","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.2-rc.6286.tgz","fileCount":31,"unpackedSize":770560,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBwlJOSVMmifM1jCcqZp77ZPmH+kdNT6zqblqRbWlThkAiEAnkpVYMOpVf+TRPiSqIJFZO+ieQHoC2Ww75/4ccLgixc="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"vasco.santos@moxy.studio"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.2-rc.6286_1632830409990_0.7683634734143174"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.2":{"name":"ipfs-http-response","version":"1.0.2","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","build":"aegir build","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","release-major":"aegir release --type major --target node","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","multiformats":"^9.4.1","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","ipfs-core":"^0.11.1","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","path":"^0.12.7","uint8arrays":"^3.0.0","util":"^0.12.3"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"5ddd0c555cc6577ee15667f4ef4e7f3a3b17d04c","_id":"ipfs-http-response@1.0.2","_nodeVersion":"16.8.0","_npmVersion":"lerna/4.0.0/node@v16.8.0+x64 (darwin)","dist":{"integrity":"sha512-F10io6gqG3zy/253bQE71SesWCz8hzJ8w9595RZrRsZMbU5p2F45vAJtCjKlcBZIoM3ymvLuJji58hEvLwNXvA==","shasum":"7f8c22676794578a8063c021241e9bbba0d296af","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.2.tgz","fileCount":32,"unpackedSize":839381,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBmhy7ZFag4AuxVhGNXXKD8H0guBj82/QmPfSc6tqwvAiBw9C/XnPtDeZ3Lx+IH4BrVlySswd6Qxo/SwnwFbXeJlw=="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"vasco.santos@moxy.studio"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.2_1632830592561_0.8737136559923355"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.3-rc.0":{"name":"ipfs-http-response","version":"1.0.3-rc.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","build":"aegir build","release":"aegir release --target node","release-minor":"aegir release --type minor --target node","release-major":"aegir release --type major --target node","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","multiformats":"^9.4.1","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","ipfs-core":"^0.11.2-rc.0+5ddd0c55","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","path":"^0.12.7","uint8arrays":"^3.0.0","util":"^0.12.3"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"5ddd0c555cc6577ee15667f4ef4e7f3a3b17d04c","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.3-rc.0","_nodeVersion":"16.10.0","_npmVersion":"lerna/4.0.0/node@v16.10.0+x64 (linux)","dist":{"integrity":"sha512-IS4HxJNUvaO0PpQ2XDaojvv419Vd+SdG7RqZ+cP+2LxJf/g4PI6tO1uqd1xw+Y+qZSSrv8B7mu3xHsxllqrcBw==","shasum":"ca48c5e5666174c0ade124b506fd723e17e3eada","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.3-rc.0.tgz","fileCount":31,"unpackedSize":770557,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJxWc5o6njFYy5g9K8V4u0Jz7Ih45PoZoE4GrRvk1LhAiEA102I/CCjA5rcfGj+xJhUZvVDEdShL7Eb4P+eeCkl0Gw="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"vasco.santos@moxy.studio"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.3-rc.0_1632830857561_0.4051874188701574"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.3-rc.1":{"name":"ipfs-http-response","version":"1.0.3-rc.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.11.2-rc.1+3ce2f769","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"3ce2f7693b59ad4176e245c4c7e75a91dd1bf94f","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.3-rc.1","_nodeVersion":"16.10.0","_npmVersion":"lerna/4.0.0/node@v16.10.0+x64 (linux)","dist":{"integrity":"sha512-u8m47iVyeJp8jrCdvCu2xEsZC1IWAznA+IrUZnMPOj9IiItmN0V7Jrq/HyYC1GK5QwOLlYNnDBJqc01g+Ict0w==","shasum":"5c87da789e0a6c7fb5367b74e530fec18f4a2556","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.3-rc.1.tgz","fileCount":30,"unpackedSize":375956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAHTKYcogBteBUBh1QGLckXqvbwdrgfgRmpn7WuCvSvdAiB0yez7fqjoCS3cVxmko3d1LZs4ZPywB0FzvOh6MXSxzw=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"vasco.santos@moxy.studio"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.3-rc.1_1633016927862_0.8831328244342409"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.3-rc.2":{"name":"ipfs-http-response","version":"1.0.3-rc.2","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.11.2-rc.2+b09a18cd","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"b09a18cd98883662353d116a8ff25a3ddaa48fc2","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.3-rc.2","_nodeVersion":"16.10.0","_npmVersion":"lerna/4.0.0/node@v16.10.0+x64 (linux)","dist":{"integrity":"sha512-Y1XBOWWygbKcqLw9bueYhpcWUlKLwdPc0wPwEMwKjBnoMtv697uymdbl6hJeDm7JkYqvSF7XF6Cc+xd0RDBZZg==","shasum":"54ddc3899bad07e7628350dc7426cbd6a1bbac3f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.3-rc.2.tgz","fileCount":30,"unpackedSize":375956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2fSvdF404oeSA2t+ArpumZsV1r3Y2vLx3zpZRKm//7QIgNPPxdPLQa+0aPmDiQjMzqU7w8RBp6R+vxzt9HT5oVeI="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"vasco.santos@moxy.studio"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.3-rc.2_1633023545898_0.1810821457708307"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.3-rc.3":{"name":"ipfs-http-response","version":"1.0.3-rc.3","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.11.2-rc.3+bb0dd96b","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"bb0dd96be3e570f5a43a4f31f43d1c97e8322605","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.3-rc.3","_nodeVersion":"16.10.0","_npmVersion":"lerna/4.0.0/node@v16.10.0+x64 (linux)","dist":{"integrity":"sha512-TgPgVRwauNvdyEWhiERDcZRquTc5mDBfSYrkyt8y1ieCOq0Sjw3ta9pKfYtxoaOjVy5njIgjWsT2u61YWmHKzQ==","shasum":"0bd34662627cfaaee0ec019078309c74fff10dfd","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.3-rc.3.tgz","fileCount":30,"unpackedSize":375956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDKJBtS4+W7PatJcmW4gGQDhWKXHUtuyGYMWZFGU8KBxgIfYPcM+EvO2R5enRGcxovZ0ols0EtnqPbJxxl72xhF8g=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"vasco.santos@moxy.studio"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.3-rc.3_1633179490102_0.24723504144839636"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.3-rc.4":{"name":"ipfs-http-response","version":"1.0.3-rc.4","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.11.2-rc.4+09c7bf7b","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"09c7bf7b63620f84d50c8a3983a5d4c28410cd82","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.3-rc.4","_nodeVersion":"16.10.0","_npmVersion":"lerna/4.0.0/node@v16.10.0+x64 (linux)","dist":{"integrity":"sha512-xsB+5BarDHG1BhVzKG1Rz16W1pMo+mdENzUAPV7fk1RyyFeyrHO76oppS0tjNEB/Ur2aP7RlYFKC7Y96oQc8Zw==","shasum":"265ed5636e27fdbedd661f7a80d2b612bc8e9cff","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.3-rc.4.tgz","fileCount":30,"unpackedSize":375956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYlQOEZg1CZ8XGLBvTqrBGDsNl2Ns9/e/QkkG+/l+8ewIgF0+qbXW8AP7fXclTaNi+jK0OyBw/fh7L1HKEyVIe2C8="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"vasco.santos@moxy.studio"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.3-rc.4_1633703576557_0.793946805058803"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.3-rc.5":{"name":"ipfs-http-response","version":"1.0.3-rc.5","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.11.2-rc.5+15184bf1","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"15184bf1838956a44c079660a4d82c24166407db","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.3-rc.5","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-YIoAszlO7QF5HTBSVJh2hk6TJhsc7yO6CNZOUc/JcDpK/sGD2BWgQGa4l071LKg4FH+BVDTlFv8SHKD3SBoq6g==","shasum":"90fe00aeb00797d0b96aa7af8bab49a20ab03b46","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.3-rc.5.tgz","fileCount":30,"unpackedSize":375959,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHlVeArYRh6WMw+cTJt6kwiK5l//n6FyeWN+yQJmsuHCAiAvHNKOBZeRRLSQ0CEGP5xr9uFDPXNRw9p2iuf1kuT+MQ=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.3-rc.5_1636010774562_0.22750295338410043"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.3-rc.6":{"name":"ipfs-http-response","version":"1.0.3-rc.6","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.11.2-rc.6+8a3ed195","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"8a3ed19575beaafe5dfd3bce310a548950c148d0","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.3-rc.6","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-RXW7JOMM51MjajaJcxhD1uKoIirC6AuMRm3ipdxRPcSSbs8XUggVx0C1tncIDBIutCcnz7wkYJu/LBa3QJqRWw==","shasum":"c48d7cc75470d0872915483c3f6e50675b1eaa9b","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.3-rc.6.tgz","fileCount":30,"unpackedSize":375976,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG8314MP9mRpkTb0rfzgbG6pwgoTVPlDBbde3ejOdE9WAiEAgBqegvdoXbmWjWVYOnTj5eI0/ZsahIZSQbGdt23gBjg="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.3-rc.6_1636716670007_0.028198043747669876"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.3":{"name":"ipfs-http-response","version":"1.0.3","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"568aeadd8f308cc230de06a956c1a9e6102094b6","_id":"ipfs-http-response@1.0.3","_nodeVersion":"16.11.1","_npmVersion":"lerna/4.0.0/node@v16.11.1+x64 (darwin)","dist":{"integrity":"sha512-kT/fcU0NCGFV9HjR5l2b971K7HdtYtPMSS1EzeNWvv9Fmrivb0iZaKpnkQrpDB5Yt/kpCGcuvcQbg3agTxwu4g==","shasum":"ea2be6547f4f51e3dab36e8bcad1c16c1c0666f5","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.3.tgz","fileCount":31,"unpackedSize":447496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjB55ddgXzPG2RqWUa5ORpPqJfkyqEdXZzjne/hjdv6AIgAX2GAqv6k97YeWNIjqoBlNTy5U+Xen71wirx+Y6LtQg="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.3_1636718067833_0.5194166334867107"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.4-rc.0":{"name":"ipfs-http-response","version":"1.0.4-rc.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.1-rc.0+568aeadd","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"568aeadd8f308cc230de06a956c1a9e6102094b6","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.4-rc.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-jovRiyPb7fEy3YF5lO9YQDC9q+q1KfiVOVNLlRQfI+go1efaHcYcqz1z8Da2UMPcWZa3MxRHtCecW2etAHdwZw==","shasum":"b680b1457b837bc798ae914327c9e06909e49a03","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.4-rc.0.tgz","fileCount":30,"unpackedSize":375976,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9UTMcBzzLFYMXezaal/zm7HxjHCCgaavjcwHgCfN7ZwIgMBnKnEyibTUmeYDS2EDMUAlMs4XRnLdc29x0Ly+FgYk="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.4-rc.0_1636718163875_0.4603542698352212"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.4-rc.1":{"name":"ipfs-http-response","version":"1.0.4-rc.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.1-rc.1+f419553b","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"f419553b9dccc0a1172f399c41b766a754a3ac56","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.4-rc.1","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-oUbm0YYPG0MFrDts0yCvqEXvt926k9sjZotrJuUKtOMYs2TxpK8nYEEsjgVEQqOU2kGD7RowRelR9egDHvswPQ==","shasum":"ece48abbd2d9edf6f248f54dab4e4e41dadb3fa3","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.4-rc.1.tgz","fileCount":30,"unpackedSize":375980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhl8XKCRA9TVsSAnZWagAAobMP/0pU98ttiYcHXORn/+jl\nChZAOC2cPYNOyNwXQxZ3nTKlh8PTyqv6ZtSLoWOnYbaqhWvmyBn0lB7sjO06\nkaWr4tayjc+ZkrYhngFda4KfymDupDUbcSXznDSu+q2OSsBF3qe2msZrPrcF\n+LyznqfMDaQfVsR6EbKudAMk8c0ESab+686SFDQjMqGx516Qryh9x3a+hcV/\ngqPLSC2L5x2I/TJGRJzQb75gXfZT1GuEViYDWEFknCbWoMwdLuhxbGeMMZTY\n2W7yPgK5taYr62uifzYBmv56XtHunmiMxlf0EOrqyChEgauKfYJ9bAp62i2r\nUOQdmo3cySrfdq3GDOhr+UBWfEm7iHUXjahAwb1oVkWVi2W/5pTQLUnO7OaA\nR+vi1Qzk/RH8ttPdMXighSUy4F46BDyTiH1zIqPYDETAB5s0WpUN66NnnZtR\nEa7jQxNZiMYHo6GoZqmcBPPT6uBAwQhOjHIVqi2QSsUu4k/EVXIK0TIKapg6\nXpgmfPhOqWzgMhBIdSZgjbwHQVvTqKvGgsTG2FUJczchXHAMTE+KTTB/fyoo\nvcM/BWzxvoACQ115J2DnIdIi+xL/9jAdNsPrvhbkLHb/bhGuUuRdL1EBzlRD\nZ749xz0QUfEpLFpV3THmAUAQJMzNcYNUsdeJWRi1mjLUf6vHGJhRwJQMNLMM\n35F9\r\n=/rEV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNaygQwXAFZGO52npD02lBQgjc859CWKPG4eRymp74SwIhALhwdKGsAhIoFALm82rQYo15n7HO0wAz0pWVLIPOwTCG"}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.4-rc.1_1637336522168_0.24158788072095683"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.4":{"name":"ipfs-http-response","version":"1.0.4","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.1","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"fdc148b5c08c0be49eef77a18259d5baa895e3f9","_id":"ipfs-http-response@1.0.4","_nodeVersion":"16.11.1","_npmVersion":"lerna/4.0.0/node@v16.11.1+x64 (darwin)","dist":{"integrity":"sha512-CvmP4hyF5x+n4UbNRV2/tsuX17XmGB2oIylrYWjlfM8Zw5q2rAdLvE67xKjW8KIM0/HXQ6NrljUZ/PlVaosV2Q==","shasum":"586b5fa6070ae45208111da06961d6594dfcfcf4","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.4.tgz","fileCount":31,"unpackedSize":447500,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhl8bBCRA9TVsSAnZWagAAceYQAIXIdxAkJiRuSQda2iK6\n5VXutkRqWo9fBgWz6hE3qGITFxbqEi5+HGyT+Fo7J6HZU6he1CHZTnCeCrJM\nBct9HS3Mf2VTAFWFxh/DclVE50+SBEu09SvwfWv6/bWBC+mDPpriiaLva6Bv\nJ7ARciSI9LC2DoXdfozI2LAddzU7+XCCy72QqhBvnsA+Gg+dI7bLLb5KteIB\nhwPz01+//66bhyy6Jl/tYdrzZp9imVNF2kf69+whKcEGXVYh+gXO9843jWHp\npV7Knf8c1bawIwjTph67AKn8WV50RYy8KFjRs1gXuA4X76r/IyIu7gvde0y1\n4GUwc+HJQf9R8nTxyhaVFIYhr3Z46uRr7C1UScew61PWxzXCyRNADZb5hBA7\nhHfi1yERTSoWUziVnt1jvr5ErgGpdbo2gMcHI4LxltZWOk9AEUNMyRrphX07\nIei2vpkmN76R9c3nwKJd8hSjIby7x4ia4uKGKUqRKjcEP0EqUcfq7ZoawzqT\nMKTCUmCHVZQaReCaMetior3zCrv21orE+tgT/JfT7Ui5V7F9aNKCbxXAb/T8\n4g0zVrrZOBJeoXnGud7LJbEyST+WyKR3yk0bAi8NTFL8IKHNXLzHIBu4abCP\ngCtZA8PfkUAv7+gv8ViDRihmNk+sOBbrzwOvaOMdoMiXKJ7lAvXWFVpm7bP5\nIowG\r\n=mdTm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBRbykFa3MdWXq/BaC93lmAcUMsieJAyyyUuQwWmDXbdAiEAs0ZQCZr9re1RNW32R6fAX01WoGtXyWm4U/GHfG/zIHs="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.4_1637336769322_0.6919233694066591"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.5-rc.0":{"name":"ipfs-http-response","version":"1.0.5-rc.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.2-rc.0+fdc148b5","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"fdc148b5c08c0be49eef77a18259d5baa895e3f9","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.5-rc.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-Un76e6m20F/6ktBv+7quuaCHaZgUmCdVCqD9ivyrQ7zrGU6KNvQkND2oA/vwJHCUwyHLqwm3aNntg55FtfXjRA==","shasum":"d705a910ffd6e53c7f6b423b6c24cdf93df86902","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.5-rc.0.tgz","fileCount":30,"unpackedSize":375980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhl8dHCRA9TVsSAnZWagAAmg0P/A3JEEdAK2QLnLwpnzhw\nMTRw2ISe3jg+oB3EvG9OB7rpY+G20km29pRMvsJYlE++jZkDqP1IP5gZ1eLs\nxFdobtSoyUPhbXsLK9Znrnm3Wyh1qKA08304nGLdN6Tuwu0VrU7uHKcb2lDn\nn/v9mMktvi6170JraCfxdjhhta3jeOGe57z+PTTnpmsIWPYirReBqDA4LTNu\n5C48OJViagDLacLX8L1p0wDff1jnqopvAKOzjnHWsCf4PD5fwwDO2UCeR8v2\n+qPWBQHyCYfFovKDZskPqMTDHupy4zZBIB+oaYvzu3zf7wt3cPNaYsca0rBg\n8gXnX5Y2+IiLEkg4U4V2et7xd48j4Fba0b4x/eWzn4pWgTbHHpNJwDEMjeRN\nsehkTzwMN3i3kSu/W7jqI5Fq/OL4VCr2ejmF2oBESP0nAZG85Pba4/taVHct\njDbEuMMb6/A2bLCxD8MX3bwzIvXqjyYI1IXirW/J8Tt9lVRtunX6XmexkNu4\nSyazL/FfR8tl2OwzL+ZfXVeds1TZx/u2nQCXO2v4Fbt1rPWFvF9eb6aDJeBW\nqmLnS2t0Zg2vPJmB2ksm8eX7Y6Qa8OAxXakNvVTizse4nFOFy6VPg+17jXTO\nK9cc2HCTp/lfTMtzPG5k7MtnJBcRfa3QvJzwr3PE70KGkkrnMoDNZPdoZzgq\nd0+d\r\n=4zLx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBDXjchEgpX8vSZ2yGr/U+kY3fwyBxB8/9UkfDfUCExAiEAoRbatA2nxAz1hzOFY9leRPF6IMOF38NFEa/8tLGAZN4="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.5-rc.0_1637336903044_0.36047739329084094"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.5-rc.1":{"name":"ipfs-http-response","version":"1.0.5-rc.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.2-rc.1+041fc29d","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"041fc29d151e8727ce9aaafd2c46a4cd34baa8ce","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.5-rc.1","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-igxs+Imh7Khqkd1mcs5hnjVvalPGTYKXXg8lDBnxOz80egLUqvpcCfPA5X+/5Wq0RUQ2nWRPBNQL3Z0351TK4g==","shasum":"087602bdb2ab1a4488d347c51c5d16b4d814421c","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.5-rc.1.tgz","fileCount":30,"unpackedSize":375980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhl92MCRA9TVsSAnZWagAArqIP/RhgaY1o510qXI16lNyH\nJYwecN7wL+9j4jazQu01A8zWs9H3Q1kesq2oi0Gni/Vo3jV4ZO3PctQW0apE\nNC+hgJ4y+Wp3EerQLtzYtalLgOW16R0dWACcKgvPjgNHauI2v4xoRwIVev85\ngK5AhTBxbCXLutqb3EoU4Xfoqyp3K+V2/APeRWMEOZle/pK+tIHsH0jxvLKS\nWkdhCnkYWzej8tGF63Da6ZIv40GB5+hBWkZ8VrZk8hES0XjfYkAtCMGgCIo4\nca2BXO6D1mQH/U5vSi2SoSXAL1szNj+XwTASRUB+tb7OkiqpBfxE/dwh3hty\nfIhs1ntMi2RKhsX1ifm6JdL3ES1A3C/j8xZTKqTgIHdTsuGMjAVbsTZF0nr6\nOz8oCPiTSyWNNWnhHZpTChEt4Vsho1T7hLidLT4x18rwP2IW0xPhJ/mfZ+5E\no2u2+IZBSM0B0+EdeUZcGCqLPv41ZmO70krq1Q8fjFHCtc9jt/DXyRLwedNF\nAEjqPy61GxAkoFO92mHyKvEAZlKQExNWHth+e4WkC8dXQYHwXV52ULw7zieo\nytpVpcj69COUT9BMf/RjoysS0UsW8xuXphOV/gyi6wD4eVHY3rTHK7NRFxcP\nj/jshVOjQh8Sa9aHLdKlDeEL+mzdbqsy0fUbujKhNFyAJ33F488ZDQm9k6B1\nNphW\r\n=0AZw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID9+VrALwa3XUmDzYDRdfxOv87n1s6ynLzYKO84A+bRTAiAthOMRiWxfOGwWPmp6ZscvpWBaGWvhX8W3i5Lz+uURlg=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.5-rc.1_1637342603951_0.19716368227995806"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.5-rc.2":{"name":"ipfs-http-response","version":"1.0.5-rc.2","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^35.1.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.2-rc.2+70c67e27","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"70c67e27d0b82c7650a2a0d7a646afdcd24e73c2","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.5-rc.2","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-XuWS4RqApaoCp3/xNTC8mQqGPQAtRJaQNvapQZKik9lV772m2v9BBcT4NR+jLEpZbZHNkBjQkb8qyagO2JHS1Q==","shasum":"88dd6a9d9ac43ec10f7c3f62bab97c7e28ea7e33","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.5-rc.2.tgz","fileCount":30,"unpackedSize":375980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm8KICRA9TVsSAnZWagAAI4YP/2PC6Jw3RxfUMZsUN35R\nZ1WfPLasoTSDba9Uc3NT9dWah0Qk2NgVACWiOdh039/ykVOo9TKf70X5EBfQ\nFLh7ABWCq9KwF2q8E5NjX2yuHB3Pwg1f2n1bSuF1dd34VrVVom/klitVLvZf\nrmDOvgEGCcsfYZiC6kv8/k08mbCZmtGTptRZalGjwbJ0dTERojPvMwFY/em5\ndlDXNMRSPZ53Em0mpsu4oXgyyQST1Ur8DqWY9R9IaGOIl1ut07DDE6tHRkfA\nkHLSjIbHseYdF+H0aTfWAS4SXvZqz8CDiER57v+JTpwhhJWC2lWxGaKgdtHA\nKj8r7cD6EFXEPm5seFdL+FK4b27BcyrLjEYgZcq+vDBjyzPGahN66W5yYL9T\nnrl/YO5plBElpU8kS9WNhaGLJTA+Y4QMYiTRzJeX5jhu9Vfq/5u+60ubCo7y\nYxPA7SbEyjgjV6WIxOeJ66st9oMyQ/Xh4e+wFyH1EMtBZFq9+wmqJq3+3MLC\ncaLOzi214r3qe0AD7YtjCOL7OdmXXDXJkpjRjDjojztaAjhLJ8pVG6RfV0oU\nTK0dbrxODxzxX6K8hvHU+VnXz/4MYJcgKfSKI39mhLOiIzDoBVTPykQHmlyG\nObEd6x0TfMe0sapa6fwLyyMbJmxypPUuQvQazNz91uK3GdwncKBFk3E9pX55\ni6Jk\r\n=w2z0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFp1vSuc1z0x5Q4+Il8mGe//lA+tPd5ARYgvGTKSZWU4AiEApUjz9lm/ARsFYejgNCY01dexugCu0ewJsF4SpfB9Ki4="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.5-rc.2_1637597832483_0.6787382948003735"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.5-rc.3":{"name":"ipfs-http-response","version":"1.0.5-rc.3","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.2-rc.3+484d2559","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"484d2559cfe120f01eb9c5dc728d1f7cfbd89730","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.5-rc.3","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-j7v06+cxPkCT7atrOgC+gp9F7xh2MJSNOC1bzljw2nyz681nj7DqDvVdl+ciKLy1tBgoAgEsOz1YGkJJdYZLlQ==","shasum":"c3fe3c8a70d23a19c100a87b4aa631fd0fe5f4f8","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.5-rc.3.tgz","fileCount":30,"unpackedSize":375984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhngdnCRA9TVsSAnZWagAALVwP/ircUpLcpMcUVCg+kX2w\nXWoLoGnF2djDOC0uutGi4vlPKzeVFeVbts42MsP+nn9KUJW991yP9YHB2Ytd\nfjK8rNdUefkLRcEAwe2lUwWrjBWngF2b94bGzizi6xw+YIzEUv67gDTXoaWw\nUDX24P73oYT57fZCVXRlPWtKwTBiJ/zwov7NWLGplbbenuj7vAYvb9wQAN2h\npXbNzYGeOYXOmI+DiEMO2S/QeOPB4spRlzIpfUNHRn/j0ltQIYB0FIFeQMzU\n/3MUK850hOUyPUJX+aPWVcmZM5rXyYrfXuajd9Np1Ur1y1dxWgIhdYXKgAqh\nlIipKOjyjjjJeghabkluEvnN9tHGbbzVaZ0qGCLKHcWea9G6jkJN01E7aLdG\nBhfIp5v+yu9Y/Hb4PRo+7GkBLlvWUMdp+OMdoRnxXB3qjV7evGgJDHEj14dv\nObNmWr1D3ykzMSFI5MlQHFewidvaU/QYtnQXep7AC6Zu/myE5Fvzkww+e/S8\nHETPmtvl+K9fyHzrC3WXCjtQEgEKl1VTkVqYocSTa4XONNRU41qJCK3JHFSn\n4ELq1/iJ7CUWGZV+3bq8reb6rjKlVbXj3h1H5Vvqc/WTR0L6D9vf4DlksSAS\nVSpYsiYMwAyP33eQPCqDZNbP+dR7ikJjw7p60MVPw6XHgJ22LLK9lxrwURvg\nbMEV\r\n=xTa3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDXo3xprUqx0eNkvgEeACEUOlIN6yXkTA8AiBk1YnZjIAiAB5PZJEK+iDCNKWKf9xcuYvSD9VXBUqSFB5k2X8Kvipw=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.5-rc.3_1637746535338_0.3254333972933754"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.5":{"name":"ipfs-http-response","version":"1.0.5","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.2","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"6178708aedf5ea86bf537862c08db49f5b8ea20b","_id":"ipfs-http-response@1.0.5","_nodeVersion":"16.11.1","_npmVersion":"lerna/4.0.0/node@v16.11.1+x64 (darwin)","dist":{"integrity":"sha512-qwpm/CXpH5cVpItLadipApMR0PItIuRyUfGL1mf/8oxKgDCvnx81iaTPkQv9+HJUFVjgVwAyXavY8FV+NGG6rA==","shasum":"90da4fca7b27074f996508a0e149669fad909399","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.5.tgz","fileCount":31,"unpackedSize":444677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhngfuCRA9TVsSAnZWagAAjlMP/1SnAkT3/eDVOY1OmaqZ\nG3M0DdtfA1X1Bz1x9dXKTuk1MRxK8A+wgrU78j7pI+Jo5ueI1Iba8epPBF98\nBbYHBO9Z4i7+oBy2FYXwTk65zbaxPVfhUQ54Wm+I0gNRCSibYU8+KGIX63eh\nlryBs7LBOBDKAQKYkWOf2WwAr3RZo0IB34mW2XUEnzw9snX3qRNJ83y7+A91\n2mY00Tjja/4mGtCSqkOlN5CjivKKxgGYLDYUlhsSJP8xiGVJCP7WKP1DuFqI\nScLTuD47ytuwOXBFoYlW/H+hJBUOl7FgxrBrZ5UpE5wT1jji8Z0U/VXldTBp\nhPuTUxA5yjRr6rf4YtcberRhdg049d9fTve8W+dxULzQTCDGEYi0Z+wVimqc\nWTCw92bEHB5gaJU+syX6Qh6qlybRHetDkOpS+kgEihKsJC5/Ev83TTs97y9B\n4LpfKK3nVM6Mk5ZRnGs9xc7qyJdCpF7Y21x5AcgK/iZp0EtNtj2tMgQFD+Xd\nohfzxej9dfdKhA3/6WRGKawGUEh8kbwPXd1KMNJXup1Fe0dXzihCnNLMk/Hp\nipoZcBYs9tWxiFkO0iUNj/D3bUvOkDk+hMyvdUJzXDUwI4loW3xXuattLWgv\nMuJb4NwjscYDqHrMU0xTMW0gyNx1nsvVxepTOG5lsLP/3CnQqkEOUhfs35nh\nWpZT\r\n=pYUQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrc+uzZ03LepzXVpOpQvatunkpYDWUvAX/Aoszsh/NIQIhAIJBeQf4Ko0483xxUjMkgbCbY3mgi5DvN7Gnl+nYc1Y3"}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.5_1637746670719_0.916798914612897"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.0":{"name":"ipfs-http-response","version":"1.0.6-rc.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.0+6178708a","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"6178708aedf5ea86bf537862c08db49f5b8ea20b","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-7vEzoVG1iTh1HPIJ5KQJdXyq99IdUHMzlaXra8XwP92xqkO7ESRWrpOz2DEZsxpp1+qTOczqLzj6i7LJD2s45g==","shasum":"4c0e1c802d8229529cb777300da6697f8bfea312","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.0.tgz","fileCount":30,"unpackedSize":375984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnghPCRA9TVsSAnZWagAAVnYQAIU2K0SxwSdpImnD7x2d\nLKkHfgT2cbRHZ8LbX8m85xvBqXGwt3wlQkYhQiyzT2w1Ctt006/rr1I+Vjub\neayonT+U5No164Yqay5BxG7ElsFygfb6oE9M0K/gofuk4b493ce18ORNcrAT\nhmBpL+tUNj3PZjMoHkyGHZ9dGUgm40Ez6UK0cnFhfuk2d+ec3oX+KT1M1Psr\n/fdn9O/evNn3zSTc6LL9URSN5vm0RMdE/hkDreRnlZCsDmM5D33J/LMpipv/\nOJi52+t44GD+Lv83W9pQ2p5OUGuyiUS3WxmRuPc1HREo0FpH/BWGM8rzro/z\nvtq7Ww5JxDTai8xbgsynUCk9mOF4p4A23MslJn0qaeafjB1MnSuGW8AIr5oe\noftkKDtV7p3V0ttfXmGT0fCJReXm+dDyQOCEZ4RVZRw9TWMIUTnlvHzbf6XO\n/I0J3zt1FmX1zRRK6rVP29q3sbV4Dgajtz4aTOyR/ThkQV0q+pabAdsVpaGc\nd/a3OWpfh43U+PK5OTELQym5+lqpq1+6a/WuPaC4RCJfZRul56unTGWG8SSp\nhE0vUm1+oJ7D+yLkl0++eDoOtYlG6Q2Y1JNd9fcVABrkhSenAQxbudpNRKD8\nHY+PRM0MoMFxWojaQdDEoH1yL4fN5w1bSvbbg+fdl86dKrGbwX0c7MDFhlij\nuzX7\r\n=RAcJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGB6uZt5LImsI1dgwUFJyx3B08H7HjW8Ay/cMuXfNZZ2AiAUMmkdh3nsIsPmC1Z1x0Zjm9JWJNA/6SrIE8qpcr/IWA=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.0_1637746767593_0.0031032022796535497"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.1":{"name":"ipfs-http-response","version":"1.0.6-rc.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.1+62d8ecbc","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"62d8ecbc723e693a2544e69172d99c576d187c23","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.1","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-mAQ7bJRzK+VuOFDnKF0Y7YSgbUQoJvFvoH8w7luIZB5L9TV4c23xx1yv9SM5gmPQ+sE/pBCDpGeGd71hKZNJoQ==","shasum":"46d5735ed681402fa08aabbe409d95730a0191b9","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.1.tgz","fileCount":30,"unpackedSize":375984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqfbFCRA9TVsSAnZWagAAo8gP+wUMPToFB7f0mC+ndWPs\nZ37XKO/WRum3vDD1Z3+l+ytlb+3+TG65BKrBjqXtj/PWq6ziq8cEBKJHgslI\np1aeRAQr8JMwb8WcHPC3aIj4FHyrn9sf0ad19JXySN5oWh5jygODHaU1NCVH\nVZ9vtC9fxgN9DmowoKP3fJVfAOah4d+TUugpsuN4r7OizqG/kkNPXOwr8vDf\na8EUWWxiHrJtfthrTTnaTmDMalg9VmHGjsrlliPRzAOLWtSogKg3GWHRXFNd\nMcA8NqAlrKZxM+vZ2sz3jXYrX0V1ZWjsi2SoLbm6BUosb5lu9RZJrKvR9Iyr\nbbPioXj7Y8Ez8mVJXSvMsIjkPPjPRFaa9XOtUEbxpKx4LPWVewvjZOhWSlB4\nqy8SvpQGaYxyBuWS0DzXE1HC1DNU8pi36ed+FmiYwIVfjeRI4ybJkks/QhQx\nnxWGv3UD1lxaYbK58t+UGYNucN79DnUqrlEdUSL5abhkQsbelglySPgFCDz7\nuNll5RtiZk/9aISi5PAmGqj/u0GzckfV0S/9uwK7rWW8soX7DK0c+azGyWF7\nHWcekuCTIj8OZoQ4L4nzQy6Qoc/JzSA/YLrs2WpBmMAXyUgnN4R2CPDjyYPq\n5z+hB2PAVmOfKFvYVb3PJWFtObFAe4JL0L3FBkro5OyseVRQlmJ5NQTE3t1j\nOuGg\r\n=ch3/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFgAfwkc8FzjpETMQyBbYog+SVB2+9m0nDDAxHF+sBCwIgMz78XoYSrdEWHNQo9QVeO3KC+zUdXwdS+GIlxFHR8o4="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.1_1638528708941_0.623517870875774"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.2":{"name":"ipfs-http-response","version":"1.0.6-rc.2","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.2+0c269cf6","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"0c269cf67a8f6b48809472e83c4c1cff156afe0b","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.2","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-LzxEZ/P58ohyltNooB0fAZattENXiFCWUXQd/cJrln6CzuXm8ZeYL87LztiI3BRH65cEUj4d0mSylMXR85jAaA==","shasum":"1300ab7f15206ededab639972c062c765be80dd0","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.2.tgz","fileCount":30,"unpackedSize":375984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqhr4CRA9TVsSAnZWagAA+OQQAJ7ew9F5Wn1jlJYuqXsK\nZQAc0zsVLCbapfJz7pod5Q/yzKYHI0gWQbi3yhJCp/FtsQ4u8oWWrdlx0UKz\nwHqAt/3TS6fHRYaxo5UeHzmtZ20jvsEKcmpCU9KMR4D4lCAA5+LAw8kCbEXE\nmHQMpbAY7VYfhqeSWUac/RdeDsyT3D3mGYCkQASepzwZ3z5uqZAZG3z6bgBD\n8n9C9bvWMDgm9QShHhmKV+Lwdg6LXPyO8mrwM04nw7aReSUxZb2FEdhu0LBx\nPrwSRazgAezvBa3Ew7/UoKkaNdPR2iIkxHU9tbW2+CuuL6LDPmRUIXUtPmAD\noj56v9HgtiicUAsUEaGagmkLU0fp6d8Lw6DWFO3TY1OVuAeZRQNnhg1nULWt\nB1VpS0XJR03RQN5o62bkYZ07U9hwOnoR3eBJ/1UB8gmtj9utUfO2TH1/r6Cf\nAtPKdRs970JNFcVTKOsHNaKLXYvP7I1s0sAUBeLwdYXdef9ABC3i85D6jQFa\nKJaaNND95nJwV/um4CK7diF6RAQT2g227op81ceuEUpmwPScHOTUUzSAVBoc\nqCurTPz9R22ojRmjOcLY8eBcWARkxqSsXmsqduPT9/6K2SKM+lb1lwhlf/co\naqcdhyAoaEVu3L2eRWp8YL2S0sD064zSmsMsMiHipqXYMxxtcgOi8UpxwjMt\ndmcc\r\n=UEo5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3wDZxYNXbeOYh2It4kWFBeEisqBLKC4F4VcBXNbM3VAIgE7/PzBJc5N17r/0ve5kh+hnaqnAU4bi0oVQJh9s0ohI="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.2_1638537975697_0.7892201764148017"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.3":{"name":"ipfs-http-response","version":"1.0.6-rc.3","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.3+38c01be0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"38c01be03b4fd5f401cd9b698cfdb4237d835b01","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.3","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-gzl3wVO+tZkDUMY8CvETNzH/nLbtbqlJKNh78DPxdrVRbdebuVlJgmK8412chHpGFWk5+i24Rk+239FnFNlulw==","shasum":"1d8a1b99a9fd52919ec395fbbc20cded144ccdcc","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.3.tgz","fileCount":30,"unpackedSize":375984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqiQiCRA9TVsSAnZWagAAA6gP/jfwq/f1pI5gNvzeJgj6\nafoHA2HxYQ1KANsNx/oJEyEwihQ13cgu+rjo8BrdX+2aqEqBEb73IwRuOtH5\n6zPTgkme0yxXMVi3xArkDrUKqTMieIit4LYL9opP7x9Q8YRsR12w/6D6Eqjo\nESxYpA394cY2ndXtwcpmTFK6RBlWfH0dOpdSImem87lxTIKWDUiR7iXqDzYN\n6fmJ3iXfoeFTm52sLca4brEID6Gqvzv54kELfACUzh1w1Ssahyy8A/R1xPmE\n9kDe4J5ctsjAOWErNQTrcsNQDpyuqsii1AF0llS7zLlzvqELMiMPQWn3HIFQ\nnvGwDjEEcMEPJSpb6OMm+qMuURjOtivBee35DYw5obapzlDRbi33gFViW03z\nIPht+hCeDO+4BVGgf8Sc8aXlcgeuBhbeHneZ/0xe+UUfTpPflFdz9dfCoGgp\nCNGobo+CUyuFGpvODjlChNuqS6raAquWoJqbu50iL0LrFwqlW/igEpjDztL1\nzK2Thmjdmhw82oCcad1McWm9YzcQzqLjTuX1p1SvOad5Qh9IItV9HLxX17sZ\np3VKRaiQf96B5AE7eojlktnxU+FEsMI+1s8EU4wyEeopHqUz2BhJEIRxb6TG\nfsvsmrz5cJtx/qPmKREqS/goZu8XugitmuM/x7NAWhNbATuHpfGeEmIkBeoL\nd+V2\r\n=wTzE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHfAxgelBlyU+ytnrC4utcfE/oAcSFkBg2rTbYx4JcuQIgMy4QSQ6tlaae2rTfsBDEHmI53gPv7Spw2MSkUhz/tco="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.3_1638540322372_0.5518396542392641"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.4":{"name":"ipfs-http-response","version":"1.0.6-rc.4","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.4+9018432d","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"9018432d5dbea466b8332b0a917a166942e40d29","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.4","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-4cnDH/LgRcEvZXEJR87BnDEJIkYXHJp4HsyZqMOfMwS83jsTRXQDWvGZ9lNeNqjLvjA+GZEOe5O/gV2GPXBimA==","shasum":"546fa65a8af1d47f1877fe2a4af1cfd9f090e320","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.4.tgz","fileCount":30,"unpackedSize":375984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqjFJCRA9TVsSAnZWagAAj64P/iNeiuky7e538aUd3YFA\ntfbzG87nmCqfLGluJF64ct5IbKt5P5R1pZbiHjF9h7e9kNpMXoSv94KJ+2az\nzfoHaI2MaqyiurNjgpgdqAoAeYlhpVOwdFb2s6KcXrslZrVbq3Pw5tLJ7kIf\nHjDOUgo+9BLSXovWzHME7KufU2OxIZEwLPMtnniYmaWAjVoWP48vEIXGUpAm\n1LWw7olXcABU+eeAyhmbNSIbXy2CZ69D8oq4Hz01A1kW7NV7NVPQjcyS8eHC\npP2c1i6iOwSZkAo4scA/vtQOAmyfm43TkvHpgPw2WS/zL/NypdRUrmNuncYa\nxm/Lf4FLDFb9iIWup6Lh7Kob5qlZKef49HIZBc6u8pyqfSac9lPYejc7voX1\npvTUN54aE7xr10/kCPK7n1SRAecabfiGZkfCMD3qwjsgSWG7e92w4WPTY2bP\nT+Vj3LkLVFzMLDSttghbJbvMXXRxVLTNb+YZe+qc2b00tZLlXvGkhjvoBePb\ngNR0fWPODtyDQWJ7Skf63pQdHACIxaGk5GI+dWmVMhGxzK+EKd8f9neIPkze\nCaVu+B2+dQ1Detgm9Q/yqmJEIGMsztVp5w6gXpmaINRrSP4We2OsJuOUTINV\nqsI4YYuopPv6QoWFcxxsFqxMp7xM/H+31XJ6Wm8CDTmMpx3O3bBrReDDRryZ\naWhu\r\n=xu94\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDrkeWBEEbB9XnIyZ7fqoPmojdvWfl5DY/74KtIW06qXAiAqTf4RoINRBq5vaDzYnQM42j08wRheYfxQ1NZ4XHg4nQ=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.4_1638543688848_0.6305495075197833"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.5":{"name":"ipfs-http-response","version":"1.0.6-rc.5","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.5+45ac9730","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"45ac9730d6484e8324acfbc3579fce052b8452d7","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.5","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-VHns459VZFBl7krt0Z4ZMfqFNLFqkTWCiHs1IpWwbLvp+9MiC2Mq6ihd7ZXup4RfX4Ah33UQknx61gSjsmR6/Q==","shasum":"f5c0eaa63f81bfa85549f9b12230c10d65a876db","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.5.tgz","fileCount":30,"unpackedSize":375984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhref1CRA9TVsSAnZWagAAdBoP/R/2v6thhvDPb4AeJph4\n/jJ8lUfQJJLnqBpADhU9SMFGqYHytXxZnxOCZqj7cd+VVtsLx2zeIoeLO6eA\nOx3XCuDJ9BsJSlRtqBJqakD7hIE/PFURufk2Ogx67JaT/0LqVo2scwuqCqXc\nOvA2QT5aQ0m9lEGF6kMI5GzNi52T2GHNJjAPrpveKR8X8Iv2RGlWOLu6kvH5\nx0/jEmiIRcD7lhRFXkOLuMl4lC5MmLmZHRSllwaL8lu2fqHTRk0f8l/kKxW+\nMpib6mkulpC4f6dYWsMlFbpg0FIIUv9Seaw6j8nMNnitpA3xVwBNFT8Shkus\nnT0zHmVxqpKCVbBOZm54X7sSe3zY2SvYfUwO/UggiGQ1LwqEB4sHLwm4Jwwx\n3yVweaudGxdzrO9I/nCO8ZOEwrNaa7kXypZFgmTHJ4qTEeJuaE8RrEsZW/7+\nTWYr5iCVQEszb4h8RxVGVPlsPC/TY5haJVOERRWMLZ/uqfIRGNtP8n0DWhoi\n0D05yZlnAgn/NvOIqpjZrbywXkQCf/U3Yl4DOcFgP1trxup7Zi/RVvPtVC1J\nT+mTRja355f4f6nrlrLsB6nQJoTe+lv7n0DtqTfRQ6OndPQB5Rilsv40AtTJ\n7crCMFTpRBfEfDr4LBHp6gviyK3hzyE4yDlvVxe3aeyyQ6L3yvSSIrFpGUxl\nXX2x\r\n=VC24\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSf9KlOATW73jkNnBGeUiQf2W0n0IiX/jq1mJDEB18/gIgaPnrYBQL1UHQcOVOfXs/Zml+VUWE78qcEoIbvApq+RY="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.5_1638787060957_0.7945829875857171"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.6":{"name":"ipfs-http-response","version":"1.0.6-rc.6","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.6+80ac58ca","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"80ac58ca27cc9f21823a23d1e6357f738fdb6781","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.6","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-JFCzHYxoGvLN+EdeP3maves6L5CtkV6JYACPg8Voc/Nm8y6U0C5mLHqskJtkuMPufqVuvDLOCk++NEkDfRTysw==","shasum":"800f0d165013a6f4d35ba08459da9a8b1700854c","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.6.tgz","fileCount":30,"unpackedSize":375984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrjo9CRA9TVsSAnZWagAA4zUP/1OE7YZyQcQLTvViP5II\n4P6ghsWsVbdBefsXq6pWi3OnpKwaJlBkqteD7VcC7+Xz3ONRjjLU3swJIGv4\nFyqaPqO2/Di5VTOLcYDQKFlvT4wVxpKV9jZFo+mOtvns5ok+7UP1clr4xaj2\nwP8jhcCHQSKkSL0BW4f5b0BWfSJEWGDu+HYaYZe16RE2kcmyqzPF+jUzHGQD\n1n+w2D77QMSpSbRrPV1pWUt3fU3/l+Ad1FeMSc9KnC0t3mnKGAe5uMxstWnf\nOBViLPOxtaji8+l2/t2AwDFr0VX45ZCKE2rkPkR+jbGTne+5BWm9iHTbyRwh\nGErXrAKmkdQ2WYmpz7r1VAsdXe8Jv5U9Vhv/cC0TGxPC3n92cbvduXwHtAfU\nTadIWnAElqm9238LJNSHuliGWuAZtsTtQw4ZbAVDH+mY702fLlAnTxd957KH\nf23sP3zamPjjZI4nRHZ5ipcdBVGpka0Er0I60u22rH6uR2TtOSNsyyE8g4JX\nshXohaSwRKDgLfqYRsnKSouaEWjx0hQ9mqLBoBXApqwHrImHXhFH8uIRJuRW\nF2C17yl8sxSv74BGx5Io9AeUHLCZLaaGNLDtZ1lbHVxYzsKF0C1VFXJobFFv\nn5mb9UKIJw5BlSsIbBapv6NubhgJgYhwBSz6LqFu1JJSbslQnT6Iatw/bzlN\nZrm7\r\n=dcz2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFNMzdnbpp43cbR7nDo7bBXHmO3XSZO8dOYlgehtDLZeAiEA/ONWTT6PzXFf1so2oAYa4EDrVk2ApUD8XeHJcw+NNKA="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.6_1638808124981_0.8905993273215351"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.7":{"name":"ipfs-http-response","version":"1.0.6-rc.7","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.7+c083645e","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"c083645ee68aee2fd40f0bd63fc5b4d1395b5b33","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.7","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","dist":{"integrity":"sha512-dLlOlQkQytr67Jj1E+HVnXCQDMIGrfcGoF5T5xrPf9u36UMHCBDOYJfP05ohDNpj2eDprm6ulLGFF03WyKW0FQ==","shasum":"5ac0cffed3246845a66728e01af5c0b6aaff1940","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.7.tgz","fileCount":30,"unpackedSize":375984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhro1kCRA9TVsSAnZWagAAqZMP/2olqFFrJdtqoe0uB7n1\nYxoxlbdsn2OE9hDVe3oHDTFMzBI5t2RtfV9ixQb6iYub7y6VXBt/3u3D5rks\n7+k7Y/wKI9yxpHhk3oSAc9DD2Rb+PopKUejdd8zY5Ytll7CPT1UgvzxoY8H0\nHo9dIpqcrqSXXqOUZAHuC2fSYYBhYcQyrgjwdpln0d8sbzU70IjhKI4veZ5V\nsCvTIhPP54QXi2LTnyzQXBfNdKGYkNlVt9XDKzlgJl01V7qILlzcwE1a/l3z\nYm+E3fCLVCTFX5uxo8AQr0bY3Jvk1tYdkm1UtcgVHYCy2qsDU+I4g9dFLHKT\nQtj5rBlaDwAdYZC0PgMwBGnxkwDbgAlQR6s7bJZ2P5ZeiunHMaTIExp0nOX9\nt+W+zni4avnPcWwoyUawj8+/FivTXOIKih9L61lkH44DkZG8RvkaFqcYuILf\nV5c+wc1ySsOW07l1ITNbbOTZV1NwJs9DJMNcCX9eDvTO21HPhAeJ2YLvEIhR\nLqrOuO9JZ6ATlVS201ZPuFVUuuED+gOpMUeuPve7DVjulaaHcnBv09M8I8gj\nIulQroxPJTFgWKsgvCC3VmnlR6K5gAuqG1Pc3rUxlD8aKlSy+orJ9J1t+cof\nPKjhu+dfbSmjADUYFIOsw6z/oaB8HHh04OWaX/yXCYBn60VsBjStgZvuCBga\nH4RR\r\n=635d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQ1uSxVwcEH4cb3esq175DKdfCacMOgIvNCXAkNaMzSAiAsQBDU9IkU7rAQvj7PJ+HkBuhNUc2cAVnqt8/wvs2wdA=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.7_1638829412066_0.690374002214257"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.8":{"name":"ipfs-http-response","version":"1.0.6-rc.8","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.8+dec9e4c8","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"dec9e4c87ca7829761ae6f63a4809783e53ae558","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.8","_nodeVersion":"16.13.1","_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-RlHJE4NX1osGMb3WiFrNKvtBoa3FPcJrL3MTIwinX+z8+Z4HT45ukcn0/HX2XxbROkFS4s6NIrXtExGi+CUeIg==","shasum":"0d908f357c10460e970b84b011c30d08df7c0c4e","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.8.tgz","fileCount":30,"unpackedSize":375846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhty/ACRA9TVsSAnZWagAAsXIP/3JIlSSCFrc7oA78l6tT\niMoKdajZgZanKAOfHLNDvAqkbOT2QGJ9R9Jye/e3VU7JgnzVFf58PX7mxcD6\nIZ+Etqm0fuO67YqnTXC/ZtXfHBi85QKJMdoSa8FDWKXvyt6Jq9gAYUH0AXX7\nwsEYRov+NXEGKNU3nX5Y0W95gkR/k3BscLt+encE06DQIE/2vqN7vydn0zmU\naoDAOPrDrtwLLWoDXznlx7Df1VFkhCkP4cC0ACk0xSX0agcwuu5TEab0Cch8\nNVVP8WvUru1KWKvooK+2wH7f4QW2qSmpzF1NnBSkwkrEp99VuLIXbQ6kyfaq\nk/9vAMVQX0OMT+Q8ndBHZdRqC7CjJmR+8/97y8mLJI/J/srTfy+IBdP4q1WL\npg1lgNfFd4YPWBRWMLKpcgo0bqtpWNakN2TheL0r1rxZ6sbpXPUeKAFahcSA\npC7g6zDO1Ry6M77fRMGcn6PkuN57w1cN159lZdgMNWocn20xcN/wE7B7zYjI\nPmzkGp7kcTS4zgOO4H1M7WwTade/MsQ7Goh3tK+PES7eSeL8IZUJcaCxmwOG\nQK922sLMDbTGU2QkUnN1mh6f2pJ7mBqdc+XKm2Mxcm0cgyl0VwT+Zd5HR/Q3\nam6BVa744qWFtgNku/77LtMv9i+7CkhicbPUFKnHUfB1Osk3fN6f1hXPXL0w\nLF8m\r\n=uiRx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJpJbOzheXstHDJ8hrphDXCPW7OXbHrOGmc3oaMNROzAiBWK9u1rhttLB9zSGeB6Nq5arYBZI3gQK05FyiJVnfOBw=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.8_1639395264057_0.3693156338366381"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.9":{"name":"ipfs-http-response","version":"1.0.6-rc.9","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.9+adde8c13","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"adde8c13ba433b81e76033c418607be389fb3d31","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.9","_nodeVersion":"16.13.1","_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-oIZ4OyhmbGaXgI4aVmUKhHyYiWtvxVR4hpSsdaXh9oepUU6lU0FofCE4Ze1KSdkU9PpQUIhfL6hW7KqK7Wxaxg==","shasum":"e0de0744ae18042aa5bb66cd0116042d74b71bd4","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.9.tgz","fileCount":30,"unpackedSize":375846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtzfuCRA9TVsSAnZWagAAoRQQAJlglYG1sXJ7/wWsS9Cn\nTlqURY58VTf2zdhXibrfFg9qA6eTNMcsHtf81GS0fsLSziWRUOXGikV4oQ3C\ngKIksXtDz0Uvx+aSsRoZ9he1MobPSebDEyYYOQbrJMmgGKCVKW1r2LDi33Z+\nI1Fn+TclQZitKyIh8oxQXyGuuQahzLGpkVL90Keba6lpVE4x8r/Ey9U2odgB\nXLH20Q0XT8JZc+vne2y7VAxWgzVFlijSFLHt7w1rb/q/ZADei4T48F9Twqz8\nk+8L17xdD71lF7Ux2QWOf3HuE8Am2NAtJuAetzzrQjJqcdyiCxJCP93uUZku\n5B6vhuvULR4yYxynr2z8xbkl2HUoCRWHCVZaOA5pDRf2yTPaG260p3bfRzvl\nGBn6D3iaV8zrHtq5iTidbz8iuHDCIZcl2EisapTQB8UGn/Cg8kyLia0BSk+H\n223O1HqjgPXBxd1TKADVbSuEcFSy2hdxqyGKuwvyd6GUhI1p8Jw6zxXFmTig\nFf5k2/6CJCrbwqNNPDlfJOSDC2bKJ6TYcaWKnnlhnV8nXxmHppUAceWtSgvT\nG6cdPdAsCbf+b6kruCfhKfRGC+A6zakXcm5FX6cos5wysb7cw4zu3zY4MqbE\n8iX0lyxvOxjYPu9g4JuSq6p6E2ypI+4YDDPxGyFqf1u60GA9Z9PZMD1JAxY5\nybjA\r\n=rzps\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcYuAfoDtKreaXZ2bY+jNgXhiUr8ZreFg9nO5iBe+XZgIgAVdNa4tmLEVh+Yj/IqfZve0a7lm1GCBo0Pa/0ZfYyjQ="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.9_1639397358097_0.7064007262297616"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.11":{"name":"ipfs-http-response","version":"1.0.6-rc.11","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.11+33f1034a","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"33f1034a6fc257f1a87de7bb38d876925f61cb5f","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.11","_nodeVersion":"16.13.1","_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-YtysMVa68PdGJ8jpgI1auY/7Rrx/KYn3SAVnhONv8vFkVuMTiaSC3F68GTaYHLcjdBU4xdLwjNlYFmwc6CZnFg==","shasum":"29fb4c56c24e06196c8569ffc5b253b674d31313","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.11.tgz","fileCount":30,"unpackedSize":375848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhueSDCRA9TVsSAnZWagAAerkP/A4kv++lcKap7LWzV2l8\nU5NI5TKS5ftdQ0IQoqFzuKgJPD70nkqrml20URvXG2FEgUqv1Qg7Jbi5wV2Q\nIWe8s8tT/dNHOamu8V0E22hlbhmCjbf3g/4NCyOnDpwUFI4cPHUMub8A/S6X\neSwPWv0hTXoC6exCM2oyTmKzwAOvJKa4E0ChpNzHG6P8FU45QYQRnhfSBWF3\nJMEo46mYc1w6M71b06KEzxz/JmD7cgUMRpYvFiDcVyt3Fl7JAq8DTc8dySRa\nMyNqi89+/+KaCEhTQXn/423Ei5GRb3iVWehfU3xd4KrfA3pVnp6ddfhjZSwI\nWY26uii+oUJ1chxNlfmoXU+ibShB8p53KZV7okMmtKdkTQUWOrsx7TJzQ0+V\nM+drnzQ89w4LtXgvtjNs0hkmjjCvkFVM8lh0PdGBjDl93Mkm1xhVWxFMFM4Q\nvj81TiTfb7HgvB01j4AVxFQfIn9QLxEgSVAKhW+6IIuoEKEQpK4tIhWUpdO0\nN8sCnl6KleHLuX9pFRJAG/y+18apAa+0enfKUxKZivDdblr5kiE10eZ4+5MI\nUDhC2dPCqVO7UQsrL6AqE+UUEApX9T6IWRWzaWRwe4XAJZCOIKSY58fpFJjr\nW9cCjqs3Ke7t0HfNxLWxveGmWqEQMAVkPaRBG8F6NrDF8aRwt7h5GlrPX2me\nG9qB\r\n=jbZ6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHjkTStrs8hMZ/ydtB7niMlT4+QYA1AfHGRZK3wMrYxlAiAMGCvuDHxsLGRU8SnS/0UwNiQ2/bY2GVy6TeFvNFisAw=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.11_1639572611648_0.3274015563797563"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.10":{"name":"ipfs-http-response","version":"1.0.6-rc.10","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.10+73476f55","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"73476f55e39ecfb01eb2b4880637aad658f51bc2","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.10","_nodeVersion":"16.13.1","_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-sBrcQdy17+c2jVDantSIcuRvlmUEaKakXb1V/RHRyW+J5xLUk3d3VwIGqBWcYSxGAn0VCK7AGJx8220DfVcuJw==","shasum":"47ef07bde734f21adf69e766914d756447e5dee1","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.10.tgz","fileCount":30,"unpackedSize":375848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhueSSCRA9TVsSAnZWagAAG04P/iuJWIxCIfFzi+9YOMOJ\nTOg/0Es7WyICEFk6rgOSACtkPaaVWPz1a27GUNoknPCH4g5DkWI0dAHtuC8o\nTscOP0guZ12Np/0uEMcgrzdVmPrdqVAMvLzh5YimSGzTt2ZnQgMyZJrS76d9\ngrcLGu+xTVE77cU+zNJZEi+sVjiMJbhXtk2jnzkmnM6SIE6sK7yihiVnzK/R\n2Pi9J6MCaANWPcakiK+yZGc841UUy8NVytzHAwZKfjYildmZWIdfn5WPxe1W\nZxcNKtWuG1FIgCO4qD9YHzWz0R+HJvoNDjaTPGk9q1dmxEF0xuaBhu65tvcK\nS6Qmp2SeLTCkw3iVQlzzUZyHAP22ADVk54a8yvPIbsUFvWsdOsIRam36UIlC\nAs0ghF/ypfran5gft/3D/VMkteB0Ol1X5ryU+sF9p6iJEfQza/ciLzM6Xpc7\nWJ+ZEZQ5nSj37WlWULVZiur4hEzMBg7zrXgbK9ANR4GwRWeEWzE5IzPcc+/+\nibJ3kaa1K42f0CiHhFivVeOesnyJVW4eYeGZGR2cvp6Y6l27RPvmIYjeuSR5\nb2E11dDJYLXr+2mdZbqkXEvg4vVsTpQPNwIcK6KcwFlOPpiQczGQLpRC3svp\nTfUM26NdIYoyIUwWsLfcJNVrhQKEGtQ1qlRmhFRvkeo017N89DP9JzjJZTn0\nb+PW\r\n=raxn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF1ZTa5cY6wRwH6NCZYFDWRr74Fu7DpGTNH+0Ov59t9LAiBnLGycr489Gu2vt8/m5lJdOrJJ71+Xfiyv2pOPSmVGmw=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.10_1639572626802_0.9837508588594304"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.12":{"name":"ipfs-http-response","version":"1.0.6-rc.12","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.12+6eeaca45","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"6eeaca452c36fa13be42d704575c577e4ca938f1","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.12","_nodeVersion":"16.13.1","_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-BFS6Wx9oED+5Qs/f1tfHrptygLu73VNAN87k5MlRnoHmydmnp2Fcr06zYtxREe4VZ+PAfFxdfrp6Zdslt7naDA==","shasum":"72bbc36a40ad51ee0bfd2c88e6acd248665b04d3","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.12.tgz","fileCount":30,"unpackedSize":375848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhueUjCRA9TVsSAnZWagAABPgP/jlEDQMCk/rM1f0+YSne\nMmWPa95aIJNXXO6Y/IKhNSF378STEWRyvqJCHMwSpJ4d0rRX/HFhAIQTQqeU\nqoEYuBDpmYy4AjRVBJa8CABHWwJwCS58y81a5l1jBQQ/BU1qTi7ShGCNcQqg\nYq5j4huxYsRkE0QfS9GtUt9bX7iPzq1IkdD0bbv2UBPcA7H61HInGKaG6EaL\nxs2uzWJAsJyMG0HYddaY5W6f3oS2IP+MzDEpTiODK/k469WgvmhKS5GYDFkR\nLVhXO5HgagoCiWCxuWVnC7luBW16BhFZgdN/vtMrDnSVDE2wesaG6sKABiwz\niO3bU9FZgS68GgcZpKbISoDrqRLWvGDanVIOU2o8oLOxXS5Qz6t5Vyg3uBzb\nKJ3IIEQuaG+hsP2x7LfhcUezLbvYEHdTq5mtTCd9/e1RAkq4c4Tlmy6lBuFp\n0++N3K9uSRJDbN2N24qyzIpFXGBZaC4K2j9hSv8DvqqIFdWjg0sFbZfEJigw\ngmqpjZD6HpxVrBpTCh/P7GZHosLoIHEYX+bAQ1bCKbCO0RjJpG+FpOSm5WXB\nvByXxJX0X9Csgk8nIHHiSMjyOeppKHkNDjYKkviGCSO1wIRfDIlR4baH20V2\ngA2MhawcPe61/15c2AoSEzlGshYZXeVwGRFAygJqrIhrN77tVFvhjL3e80lM\nXRno\r\n=tazR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGDkj7O9BtBvJUo7OctUDNn2iJXFaErBxEUJwTu8KlQQIhANjrF+OYGPDiTfRGMALaLLbp2/iH5KPn/d3ExtZ/RBcI"}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.12_1639572771737_0.9673565141181613"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6-rc.13":{"name":"ipfs-http-response","version":"1.0.6-rc.13","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.12.3-rc.13+d147494f","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"d147494f362d38244bbeafbd6e7d76789c7c5020","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.6-rc.13","_nodeVersion":"16.13.1","_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-5t9+X/jwp08Pdeo2YboTS2vsClFJmpx7RjvBKnLFNnQhMKl+t+ZAGgF7w0f7yQnK6+Y/NZ27UW/rEy+mrWnyIQ==","shasum":"ffe6cdd95d2f741262c5f3a4b1cfe0483b45f7fa","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6-rc.13.tgz","fileCount":30,"unpackedSize":375848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhujL+CRA9TVsSAnZWagAAKhIP/Ra0IeSs7wT0NC5LqguQ\nBXZ4mWz223qkQQ9t6fOTn4isUZlyXFQrm4VEmUt3Xc7AXZSriFFmbrEr7N00\nbCR5zF8A/c+umKD1nsd34sp2+c/ym6gZUIJ/ffE7MYe4vCvXDFybUaxku0Hz\n2qDHccDApFG5SUGawSOquUmMeTyf47F5kFFXaP/cjyCmkwZ4tFSNCREgmTTy\nSC+xvQQXY+H7VUoMyqc++EoKI0xvisNv+SIrghbJWnt+/QQa0dnWqTHCs5y4\nHq3WG6EjEFk7qHemGp1kE81GBEwIwtLqHT6iYdxVOWbDr5RBRMyIersaaCZe\nMbQ5tOBCI75PHl6swUt3/BIFy+lCD7i4F27fk51ovKMCfxiFz6N/aoedWy4G\na/xJ7BC5eTNQ3z4uEnnmA2tj07GYND6S3ARA52t2PZpzR30SwbSJZUf4J00/\n0UL1oAktt/3z/URV4N0+B4g2bFt0OVrIxGELJ8+eTH0/ZUYBdfSv+XDUWj6i\nf8FKDskw+M/vczgC15gJH+NMlrUxE3E2SUDJLIMW0XDr0xs/EcsNmbfkep8s\nj91Ul4uPWXC9+BeHGmVjf6LJoiOtSkIbPTGV8KXXIvlBmi9Vu9Ss3T7Blt8T\nnnHLK4/1T1MPf5EVe4w/gnC94u9ebgfsvK0d16LCCChjtCYEUCP063LchGbX\nzGdW\r\n=bbqQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQ9osIEK/RZwLXyg8CpcdYEjfcDta9uqZdySrA7EukUwIgIVQs0UlMvRbFeSWC1X4DIoenqBRP+b2rSLRCYIq01Is="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6-rc.13_1639592701826_0.3341382284048813"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.6":{"name":"ipfs-http-response","version":"1.0.6","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"7375caa8805298fc671ed4080e1023aafe756151","_id":"ipfs-http-response@1.0.6","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (darwin)","dist":{"integrity":"sha512-aMC+kO06ue7Rv8bPdX7te7k4Ss6qLiWSp8ffyVe4zA90XKZV3zo0FOI6UmjgCG5qZ1H0P1zXYq94JCkczagO8A==","shasum":"a54cf59ea79fc4197c832bccdca33c2d6aa7b1e0","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.6.tgz","fileCount":31,"unpackedSize":449727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuk+xCRA9TVsSAnZWagAA5kIQAI4+Ms+BzUp1DM7UTEJH\n+HahfFBq21jpPSEzY4KI+dl9RLKQj/RjtSuh6WqMl1PLM43Ol/1NRdYcq8n0\nY/U7giI0sdeQ81qPipTYLARpuzXa08I50C+4YNVgfQmzgrQ0zKskBX1VfFO9\nG54JDwtCdiOLZ57jjYrjMz3JG4T7ieTwi6l2QmSuBG0xr5sMIso56cgQij1q\nn+TYwPvJ9+CJWHybSxrOh4dRoTyDLQk7wvRKp8qul6yozvqRJ3vqVN5yHRvB\nYNnkFElV0+ceCjpZtzdg/+waurkHJXG004JYbAROK4hPEsTjgpPsZcD/8/BS\nV2TBrg8OBXnpxVxjLxfh4tPQuXRbbbnhiaaGPV/2adatMVNoMrt/iZQyxN6U\nRyInf8bae/XfR27BV9e2ea0rM9Hr6eAmhAMSYyyGGoXhC0bmLZd9NrWsLDQC\n/Wdd9EChng+C65nY5DUOQfvTwVBVh+DYvrcvb8IGf7utTXMLTPzIHwCCYAod\n33ovyQk9xD4y714tHNGtl2jXXY5NAd31CI5jzWnzgqgrqjU9zt8ocZ4YrHn0\nKYGkSsg/8OpwdLXN5PYV7Qskvnd0Ei5itQUXxGPaAJ1OCh/HpgC0FAgbMBYQ\nrCPEaiI6rjVZiEXhQMKUZX1N3ZPXBXtV7YtOJnsadDBzFEFPW+bZwEHMFSYr\nUztI\r\n=WWG0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8Cy/VI8bbMAT9FodLBHCgxBlXV/2i6+2jz2oLOr4WBAiEAgbrVsN6X688tSil1fa5vt8uTEJ3Xdv8zviAdFxRiepU="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.6_1639600049155_0.942685482271896"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-rc.0":{"name":"ipfs-http-response","version":"1.0.7-rc.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-rc.0+7375caa8","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"7375caa8805298fc671ed4080e1023aafe756151","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-rc.0","_nodeVersion":"16.13.1","_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-AIJWyMTD1WxnK+Ky1y6X3VhzTg1t/CVwcC6Dz3izk4KmxGgQWrjTVjO6vjojc6HSmpbon0GU3S+eK5lrGw7gYQ==","shasum":"1be4911a8fb7bbe6fc27c22f8d81a5890d63608f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-rc.0.tgz","fileCount":30,"unpackedSize":375846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhulA2CRA9TVsSAnZWagAAeT8QAIrNjzpQm9HrfjV6xftg\nO5euZbcxNYoQ3UAvB05UH+OOpq3EJxaPy4nzydZsctjIjRZNfmxlit/dfrId\n6xskbs6OrrfVrrS+2Iknotzuk7ASxZlmOK6KR3MnpLe2gNMU6N8SvCJMwR6X\nkZT25Pd3470agRlMqXsMIdcpoDovJUwLG5ZNuApS0QHT+1cqqGF+wcRBmCl1\nSPqS8u1nWib0UFoFPyQJjm6s1F+vZ+jGSR0B99AmBU3sb0UrGWsX98AcubBS\nz0iCa5Ouavh7MHZ0eOreJ4Oon2tJKaSSp4LEqIlq0Mq7ysp+IY2Iyq/+l020\ngCqt8qPLP9ZvZNMv20kcbVBs81NyusGYQGzfoCyqJIJDu8m9zvRkcKZmkQCY\nSEkq3OpY4PD7FzD0uXHBiJ9Q4cMWO3WMi8M5dU+7DOKwTj8mkKLOwqbqyw1S\nElIDNCUjZ6N2hcnIyg+9KYRb9Chn1wZnIDeROiR1g8r9fnj0JMbS+JZL3AHe\nT8BxIHAA0iaBowcP6BRiTRkSXHnxl86X7LBOU55QWTn4WissLDz5sDWS/n37\nXlYGq8deXb7y4s5Emm4jJlDEezVVKQwEpDp5b7A568ETxc3BkuP4cbYwe42t\nAeDs2b4bcB5Xf89uxvLK+bzV2lgKXEOhexdIavohgNoyjiJRRp+QEOrLNIxJ\nRPL2\r\n=bJAd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6h2QmOjMnIToxsM4s+Cogq8kNHmq5KKZXcs/Dg0GOTQIgK5fVxVVDrUZbwNen1cvQfX9A4PeKwsbJLnp8wQecq8M="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-rc.0_1639600182249_0.0746815441311186"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-rc.1":{"name":"ipfs-http-response","version":"1.0.7-rc.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-rc.1+880e47d9","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"880e47d98cd89d774d707d20bc4a3db8c0d3c5cc","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-rc.1","_nodeVersion":"16.13.1","_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-G0Gdfht+xrcb0/MURIkKyKudsU630Nf/8qShy790w3XcFudZwPHo7Isoinlp69085hnK3JIjFI9Z9ky88k78Ag==","shasum":"b4d9383749c97b1d59d0ead082452d61fd9073ad","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-rc.1.tgz","fileCount":30,"unpackedSize":375846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuwGMCRA9TVsSAnZWagAACGIQAJi0C+mugqQDB+8nJmp0\nONyB4CLdxO3DGztrQ95kCLhf9fE8+fMMEO/xYobEjq5N+MwuquBm1mGAQona\nVOeYc4KWY9k7x/A2ASnes6K6O92tLPKEzdRRs7yglpKYa8oO0ocRr+e5bnHx\nuVSU7x5+J9p4k2hhTm13Sb+4c36cXhHw6tFsJUXfgBgab6U1iIXa9feD3cbc\ndFC5ZLLlEY7yFUWd1vojjpWo+x+TBVqh75ctn1s5jKeY9qlvw1peGTJfgc7C\nQamV8Ch80BUaHCjJ3CAq197NLHUc/pijsDsPHfe/QN/Mcpzj8K8IsE1qw0oE\n3jNw678swtv5lJgNBeUC7Ni1DGSVqFCgz9hhcauIHfYy0kgP32Nd/9u8Kg5y\ngrkWX38qBAkHPALtc1SrG4SZEIb4U0365F/tATZmJiFJ/NEVpbzZ4OyVX847\nHGuk49HyPDkC1tj38U8WKTVAwKcTkiiuh/kCBofdjIB8LMLt6P9gksJ8om/u\nEDacTO39n4IQDhP8PRLNCGCHgK+WxxNVpA7ipUxh6WCH0yWsalS6Xl60Z4NP\nMLriur4j5M2/l+Dafy9/qcLSlHwwDVeSy6l2u7/fQPWIqJ0Sf+Ti1Bh6D0Uz\nRi5A4Gd5DVSJ8kGyloPIZ3oIznpBh1TRsmSJIXxAqc0Bacp1fo2+ysOxOviH\nX1n7\r\n=9s2E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYn+AvFW+YEgKjzk/XRZQgRZUBhywLA78WG+lauqRIzAIgLvYQ+bs4zwcYiejHJ1qzzXwQhUPcrdB499ZwQjM/veU="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-rc.1_1639645580393_0.2722641827350045"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-rc.2":{"name":"ipfs-http-response","version":"1.0.7-rc.2","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-rc.2+45d9baa7","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"45d9baa7576a0ac924f3d01d49371bf1a4cf654c","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-rc.2","_nodeVersion":"16.13.1","_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-YFLCmjjpAtSEAieyFjend+57yOGzQqDGY0XMmYENdqJ3uB+8bvfLPWWeb966y5AZ43Z1TN4XPEahYYcofP2mXQ==","shasum":"cf782a5c12063200a8409ff98a119a4a517e34e7","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-rc.2.tgz","fileCount":30,"unpackedSize":376008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvF7wCRA9TVsSAnZWagAA/WsP/2P+DSdVIHWAHRsRIfhN\nwu9dGnh8fHYfioIgubjYw4ohc/sC/88rbahoUYUixtAFgfRZdnJYYM7ryBRx\nhNAe0EZgYE0xmJSm6D3/jUlDy+BLak1IKxR6Ey7t9Amldw0GM9eN9eio3LsK\nd5EK8AL1qAxum3da0yahuiFO5jpM4wh9BrlK1nPJp41o0hnCoKKuvyxQIHQz\nEleKFvvSBvm0hYh3HTD423VrLlelqMyKs0O3hxjWfyxCvudgSLvFcRyX76T2\nIY9PGr73htoDLtjFlsPViBBHyJoB7oxKyDTe5qFmGG5T9XzW5oZxz8IKw+qj\nfqbDmxwRPIoO4vH5uuvctjl2MIJM3lCHipsJB3l+Htwt4BNf8ZlcVC3Oo2i1\nQPSJk0eJSMvlI0D+jfssCpQ1RVxGbOw6aV6T/z44zUXjEEH6ZTxozgcpNPt+\nIirjLUhjlO43V9oCYaF1ogs/gw5Qdh6ThdyscD/GedkgZvBhjjYrsCY9qESj\n2H4S3Eu5VjkmwSRSGeM1isT/LyBbgiWuAKxJIueLmFVcLyQ0lZI8Seh6C3V4\n6KUBXtDkLtvWxlRqbb2F4x2OOO453mTH6tJpgyoX0dQe//PjsKbGYiIwcDc6\nffTfsvAwo9XlWPjyt/vOiESkHtBI4ydtUjM+8/bbs+w1ZOia2fb7iboyjhK0\ndbAt\r\n=dLZ3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8gsxT3eaagRg4LOF5Ub0D6l5RcgnXvl1JS2S1HRL5IgIhAKOgTvrLJFExZPAo7xVamQCW/ZKG0jGjEh/oChDJ7ejY"}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-rc.2_1639735023969_0.25918720400920603"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-rc.3":{"name":"ipfs-http-response","version":"1.0.7-rc.3","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-rc.3+67a8c47f","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"67a8c47f7eb4ca93ea16defc24b1ebdcf4267971","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-rc.3","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-ofqE8ifIbqtHlNvybdzQITKGNucGUmpqC3KZSMkWsX7jYvKakPRwcFffbs4JRvbUJYOpWNicMnHaB/4xOyMlJQ==","shasum":"fca882ba04099211c49ea4f413fc0a355bdb45cf","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-rc.3.tgz","fileCount":30,"unpackedSize":376011,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4G/rCRA9TVsSAnZWagAA1iQP/RHXBQtxrbFFoyjSWH+d\nI2+u8IeHacA/5OUGu+cygSCSvpEJulGs+3hmnqSkdz+73HdpsvTRV1ivsOa1\nOqVAt76tuayYasCvE3vOriYaJwyJLxSbDLHpJitTa2DzLdl+nkq1E82aPqZM\nJgp2h334z8UcqO1AlBnJieBgezys1Sp3XqnZMIMfDsJlRojxE5NN/MyPrpZq\nw1VjGAMACqJojfMiMxvO+rhBXLhle2qv70KYuaBrGvmaIwIeLq3oDTrvk0SE\nrU2QCG+HBepMRkzKIf/N1CSpvk5VBD67LPbaYRr9rdwi6vsYxOiZgDGyRsYF\nwjmdTxqGXYDF4YsP+SCDRTin1f6t4RWW1JUSJ5aYRne0tkIHI45GjFn2tSGW\nI6+quNLIZT1dMSS4nfYUhCxwb+pWMMjOHcJx9o50ScmCWuTZeTxZ33Lc3x3N\n56U4Kdc6h32ZOhmT9tqJLG1GWu4rkcTeOpv6Kisb0MjOGck7GCFB+FTSERex\nbr/XM7RkJCbrXWbnelrvLQ4OxwNEMFTO2Axz6okobMTKeYdlZ6AIpNBZ3aFq\n+bRPZ3ylBY/y1zEN/WsA6S5Bdd3+LHvrVxRUwjKaUZ3y+qKt6ShhygtXrVul\nbnLfbPgRmfSDzfYiw9hBdonpHJUBC6nnT6bxDCSlz1y5LAv+Cfi4b53bGKPb\nowGH\r\n=3hB+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3R64XDJ+2aYUHmzwObU3LmrUqNass63ztetpTKOpy0AiEA1+oXwWKBTr+ZdJNY4630N1wWkpyIFMkDzLBxx1t0SLg="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-rc.3_1642098667551_0.29136422139378637"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-rc.4":{"name":"ipfs-http-response","version":"1.0.7-rc.4","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-rc.4+902e887e","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"902e887e1acac87f607324fa7cb5ad4b14aefcf3","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-rc.4","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-ROkix7/Sl8QdESOax9/y6B3gsMbK3lb+yoa3MIMUCZ1q83qrlpDmWEg63AHKk6jPqoA3r5d5QTfotxD9upGzUw==","shasum":"35ca01fd75613679fab748b5bf6f35e966f90fa0","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-rc.4.tgz","fileCount":30,"unpackedSize":376011,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6XENCRA9TVsSAnZWagAAjXoP/Ri42OoW/YHovMJDucV3\nlVAiagRJcUJkSTYJD2QpqrtpzchIGr1fjq6xpGZgpBz2ePxIlo7ihf8zHtAb\nKUXBjW9YITzET/zwEjETOKU4vwwFpYOnHOZbKpIIGhzvSwSidiRomb3RO4vj\npYXHrNHW+760Nn3AoOfpt0894mUhsHrpmRHWLITmoPl7silvWzARQgfAkRNb\nlD4S/yWE2Y3Lij2bat8Xzpi1nc/2x9qYUF1dRYLKySzOGxgu3JOcLAuTf2SZ\nDzxhEryeUGRecN/oxcCc2oZF44wwoo9DhD0o/w01yt+vNHD0DBo9bVr7qXPP\nQipLGAghqPRWJdv/einW+BZ9yb97KdSi1nylya+THs9c+vIF3Rs/llJM2pif\nv9Bt+1B4q6BfYcUOV+P7kJqE8lUP+5wgd6a/dArmYOvq/NLL+Q4ssBWMfpjQ\nyGn0sq9ZSO5Dzud373WPhDHsjbnLuF+YU/oUFNYl1Ss4ReoIKXX5drd6rxG7\nQhi+y8GLGk+gq+4NdYyO8hjX5VwMEkKnLI2Y5bMOGjj1V/vb4Uq2f1eRhALY\nBk10nZb8XzVhzZdAmdUumJxP6CVmpTW8m1Nrce3e74cySeLzMzU21wTIvqN6\nYxRwxWlNo+w8FmyYQRr16GTW5EUQFIGLlkirryR0hN2YOvhr5hXf0oD3TfRC\nDoGp\r\n=c6o7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEGRcPDXty4Cu8VknDJ2MHhWr7moCTLDVqaraKxtQwZDAiEArjFLDw5lj9FiuSp4NvB5Q/UbQWs7srI9jGMp71YWeio="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-rc.4_1642688781203_0.21439653620496157"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-rc.5":{"name":"ipfs-http-response","version":"1.0.7-rc.5","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-rc.5+b9382bc5","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"b9382bc5bc7341a2771a69b2386e5473b507caf1","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-rc.5","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-+f9b4O/J6UPWLchH2K+JJoIGPb3Y3BDerDFfK7ZLtEN7s4y13ngjnYaSi4emmWg9feDbnGrNn0u9koWKs8m7Lg==","shasum":"0ee4865f3d6c67c421a0e9a3e9dc176fc681f7d5","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-rc.5.tgz","fileCount":30,"unpackedSize":376011,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6tUzCRA9TVsSAnZWagAAR4IQAJZZU6AGyGRdekwdaNBs\n1jH/mcmQpjCgxGby4cThZz6u+ri2Slypg8I8itlexbmnRFc4LrKRHZuuCdrg\nibV0Lr9s/ZdHM9bQ+FVVB0vJmSWmGcpDS5c8P2/KSI9diyky8IPOXt0HKSr4\n95kFuGDOnv+pGBVoXYCwtwdmQkFEoYxxU3duW2gvlNskF8S/8vXmCh0WkiCc\nBkUUr2yaTc9DnGa5CtW1GEYPPfFaEENj+bxeHS+1A3/ZGNV0hb8hNdfwtUdr\nqCIFTD5AY+6FTcjVL/CEEuQsEsImK+ArygKOdnD7Tixsxn65i53b1RMRjrPZ\n2bJ/mQ/5ll7Pna895X/lvdPUuFHtRB8XfsDp0lhC+FtGXlYUjXHpT0N7PGe5\naIXQLlFeuO754AiAyg4tSUfB3Nd87mto66aZLoz/ttYiILDxD/e4B9u6uMHO\nA+45kJX05FY4mQgveIMSHnW9/K8x0PeaDx7+MHy5lIutC56TTvUgzwFJ1xbF\nNnm+CgkS2qMPwskZy4AFZ7flCCUiszxP2sM7z3JndYQdvwTYdmt44zmom/dM\nz32OI2PIA+gVyzdU5Wv8jiAF5zsMZNPpft+1f50eKUsPKg2iAOF/e+6S488x\n/x5i2RqB0vEKYv+5cx0YJwi3LA517y/PGzui2esEpwyIhphz7pSSePFFrTmB\nFsbz\r\n=K+0b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa/Z5ByTPPOgeN5uKfe/HIHAI111blQyUTHWD9Ee0VdAIgdFOyAW/AsG/hf8sdTCo50ExEIQDUeQzhJYqGtzHieoU="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-rc.5_1642779955654_0.9914240691771776"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-7fe0da57f.0":{"name":"ipfs-http-response","version":"1.0.7-7fe0da57f.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-7fe0da57f.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-7fe0da57f.0","_nodeVersion":"16.13.0","_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (darwin)","dist":{"integrity":"sha512-X5zszqK8whknGXrUsQbO0zAcbxXtiL53exXv/vvfG3HlpQ/ktTQ/Sirp1h1GeDJ50jI6OifN20W7nCROlbahKg==","shasum":"6b4a6aca11011c3869b0aa856b685a3524bf38ec","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-7fe0da57f.0.tgz","fileCount":31,"unpackedSize":452522,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8TrzCRA9TVsSAnZWagAAmM4P/0idg1JTxfhAQVmXdzr6\naMUhfRfVOUytLXIPbQxac8sJP5JEpaYItmbJEF1RAAayEc9+LfbxzmlCrjPF\ne5JKHEMefKNEWy1MpsCp9rkZLwZrOjg4QL5N3xGqpfDcFPO9lGuCGmED58J6\nFiQw8jHkTL8ZFFLSXiKM7vRRniyUm3MojW81E4V1DsDUTDBV0PGiqGzG581h\nVIs4ngQxPOFSBCtgUoDhNbg/I7phuyGQLdNADpyy1EfEj7q/vSrWmqd0VELZ\nZ7jT/d2f05BfRPHO1WcELjbAIcNeDXuKoNTW1FHDMogWM7SOyE5aUndCoD8H\ns1Y7WbSZxyFNWVjAYl/FMQi0VDLg/sdy9M9tYWrjQ1zNN/oPPpkhcIh5icuW\nL2gXpEgK98bgPzSe8cvX1jY2ZdPPHQeQoq3sUui4Y+CLEDoS5sOMXUW+l24y\n3H4hxXoHyOaNP7/yCwWiH7b89FuDuArLgurNg7alX7ElImF/hKp3G1n8Rwuf\nnKOGjofHd/RFpL2uYPWC9T3P/nY4S/ampVjod+vKheMpOnw2+IcSIFSWa/cq\nPrtWWVKyIIVBoW0cbnr0hifoOJ70kFzF+VafSiCWmPwrZACk28DdnuWwzM8G\nXx2Qvmc/uW3sdrqUccKvOlBeeTLLd2G8ecEl402SiA9p0SXcpS1vfRchXD3a\nu3zo\r\n=ydIe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEB8lflTcejlWJ66Fs57yb3PCq1gwyLZyI3RwJjYLyUNAiEA+2zqz9/l20HFfCp99n28+uJ8GxFcG9bLZ3j0CRtghAQ="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-7fe0da57f.0_1643199219750_0.9983173679293409"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-5439a0e.0":{"name":"ipfs-http-response","version":"1.0.7-5439a0e.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-5439a0e.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Lead Maintainer\n\n[Vasco Santos](https://github.com/vasco-santos).\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-5439a0e.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-+Xj0f+jbg78iExIWb/kZNmr/e5yVlTUogd5/rrtiFKyYqhRet6Ehr/6DDo5meZg0nS4kK68shfSs4ww66W0YrA==","shasum":"8c56023220956ff9b36440ee9ab29b1ae30c4aae","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-5439a0e.0.tgz","fileCount":30,"unpackedSize":375952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8UeKCRA9TVsSAnZWagAAfqwQAKUbVJo4n6yC/5q+TRXL\nj9adtAgnAIdYdIQBmmkxfemXGMcKw98qYEtazTgpo21rLFk/W9ERxMaDq0CI\nWJJ0D72fQ+jelpm+BLDJxkTg3d9HVYs7ENgs+c2pkTBNc+mBBR4KCoKMZruF\niNSLosCuGeajufjgYTfuakucQEkaTs64UG8R1ozRUrN5qiMLm57zRnyHBiEY\nONDVUo+O1hvHLsAMESDsTKt1g8aDUL+arKPJbKmFZmzLyws2A5YJ1dyAbN3W\nlO6xfVueFsyKUU47EywlCUfvL4VY2j8ZQtCtPQRauk5N9BFxKlbQIJpYdDvJ\nP790TS5ffNf7keV+2Hp4TQPF/rHRzUcAB+8Lj7YuYGVSX9NxO5eYbEBPumN6\ni7ubsPG+BM9nUUFAzbRkKqm1Vhxst/SR4lwXZgQNwhzpIOIXfJIi7bjwk1g9\n2VzomMnhbEeEjBB7Tb0GyYawh2AQox1yPgunDEsH3AmvL9crKFCZd8rw/5tZ\n6QVBBpu+BfHAifxz5zaWaUE5kTIoV/EXZkPpcRi15eUT6jsOv8qmD/SYIE0W\n4WXA4L16cXncWfpDLClQdIbWu8IC1J4PqBa/I4KusdtBV80jyVZEklFDqpyA\nI/gPt5sDQ3i6GCP9mmusBFyDj1CFfdPtits/kpCqNlMULllHpRk9ULfIBC5l\nCdB5\r\n=OCwt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEsErlzsCjwbLh+TsdDgdP6Ipk5Q9TD4+lMCYb0R9mWWAiEA2WltwQJOM9l9dyHWanLtgrviG3pwPXT58KigoO0BS2Y="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-5439a0e.0_1643202442669_0.6352768832038671"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-a6b201af.0":{"name":"ipfs-http-response","version":"1.0.7-a6b201af.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-a6b201af.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-a6b201af.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-u4tYWL91Cg77ekmFS8y6JAz4DeW/iUaiJWLA02F8IKBj3PiY3ojd5iIYE9/iXLX+cLgj4zDec44moQGE44LPMg==","shasum":"e01c1cc1c53f4b0db7a08af0fac38e9f1a3a0213","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-a6b201af.0.tgz","fileCount":30,"unpackedSize":375884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8rwrCRA9TVsSAnZWagAANGIP/3wqzkN/cxApUx6Nv81C\nTVtwJMNbEBxSfGABR8/Lkk93gYtOis3Szu74PFnW4Vi0PGNSupNTwhy3eQB3\n53C+5dh6LU1Mn+YdroaPEsKtAl7aibIg/n6AxPR67HetCLQxNKM/WYBrlHwR\nQmdxX69sCxWeE6yuzUmX18cOAl3BKBVfYS/n4p8A4lSEo4zMKlZk8umSMS9U\nxNDYcn3yBTDuWqPcK1t3HwfoEFkwKyxbOoYOs7YXzfbJ4kIOT2sba/PBANV4\nCeW1NR34dNKCVS2mXCIvsUWooJcAvM1IU3qpADFmfqhFU51XNOaD70UYCNWJ\nKFc0y+DxWUIUGrFtDKgkh2jpZc4ZoqLKa6FBC2hzrYNjGCSAQlnObOeCt2tL\nMBKe+1ZkHo/5NjC8RdWGX5y0bvocrnv4LHByVTzvY2TIGpdJunl3ZQN2sn4e\n3gzpLmnJROF0v2JkNSsjADNhFDSXBTqq5GtybxLzpeV8bA0kAke/3fAlUDjL\nd+fbxpXKhzcpAJPJW4kqNgyRb1+S/oV/1WXjBsBpBb6QXCx7+zF7siCylHtR\n80I6oDIEuyVoSm0e5XHpRXr30jSnxC3+vN+cOYJy/xpZHhdcLwlGE/uBpsBL\nt7R6qQ1D1+YekPLoDujwka9w7JYxraJaucbar70FAanVxn5ZIPbzjBk1j9yS\n/zFG\r\n=IhJf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF2DHI94ub5nqenp4kpAhIHOp/Gn0fNHiR+0PK5HFKASAiBsLxCsUhWyHQcfMyEbMWeY1u/psvEeFitWwduIYhSHeA=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-a6b201af.0_1643297834935_0.35143236753234897"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-fbe14923.0":{"name":"ipfs-http-response","version":"1.0.7-fbe14923.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-fbe14923.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-fbe14923.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-sX+jDysRSBLuvFbUNkrCV+1yWHo3GuIQmyXuMXtaUtGgzLYqqZ4p9+Wzs/qnc6RlfBuLGWEPj/tnePcaZgDvZw==","shasum":"7490171163c099defbcdc4c09ce1ad533b24899a","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-fbe14923.0.tgz","fileCount":30,"unpackedSize":375884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8uGrCRA9TVsSAnZWagAAKs8QAJH9u7KnY4dJuKPb02kP\nq99pDJp5HywRaE+7I6V0X+OCCKorKK3UJ3OgRoKtbM9Mm/JfQqWbouNwI2iF\nNpWL6lgPcLm7pACT7IGly8tw1cKMEXv4BzuFs2+Cx0UcmnhOtDn1GXb0sCHN\n5t6av2+4FDoTODWrb+cDLcg9jC8iD22IwdfGwms5BcgZGbdd2chC1xMriqzf\nSOFBN0MLA9GyG5Z3GCl9sg4cGOx8X6tswDcfRawo5hUzWQtVNyPvflJ/4Kt0\neKk5+M/AsQET93mJfDUa7CS1a4R3oCJb2hkLauYYMLmkP6BqhI+7DmUC9c+V\nCI0Y0kBN2Aj7SzlgxU1k1ZydvYlsF1i3o64bR5I2bOBhUTVgLK7y2UeoJAS2\ngn3vdlhfJRW4HKDhcFbrKabThRoC9w6RAM6kfFg5Le2n+g9NuHOaFAtxxGBd\nXYb4njpZWGcTKkSaYKee7szbmNKKrp0dlxkcH4FQacY0o+LODrHwhfaSQRV0\n95zBIIqSoUiUjal0omhsO9FrgInlftkkVcKgCow+r8GwSBGHQjDmhsJN46n9\nk69fQJZFRHwC75yvSqfwh+wBf8z/E9W1Imd7Vf5S98iIaiZDDLiztrdHr47C\nNLsW2Se/cuvGwd31UntZ6syNMzphoNBuYZ9wr/lvSxMRxbvc3npbyy3ri4dv\nGnuH\r\n=E9Vc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8i70jIJVONU8+oZPbBPwCKbcHVt6Bm1o4KQZozKaPDAiEA36iPEQfHLYMJIg4++fbEaBRpww/bzOQEqODD/l6qxoY="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-fbe14923.0_1643307434835_0.1875911554125198"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-6cb3a87e.0":{"name":"ipfs-http-response","version":"1.0.7-6cb3a87e.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-6cb3a87e.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-6cb3a87e.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-KOJ6nPb39jxDpGRXRSjaNUbF20xl7sP8rVJF0Fgry/rEYUFEMmFhqXLvulHwILNGVrrg1s+5WQN5KSwKzfdfPQ==","shasum":"031578815d3ae80c42a532c29173b65a14e643ac","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-6cb3a87e.0.tgz","fileCount":30,"unpackedSize":375884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8u6ZCRA9TVsSAnZWagAAc0IP/jJjHeCRWMDshl9OaYvM\n45VnbejjzAtKLDbEB9eVdCLYyAZ/dp2sIEjv8f18NGrXrEJrQy/mjB5qrPTt\n/qfiwawB21Y+Jo4AVEXvAJd/F2zxLRsDipkecYlAqdz+JHpX8RLSGHNQsDwY\ndStX6/C5nANjbCmBndfksDv512ZAzPa+VbCw8zoIMXIYTDQYGi16f0/x4vNP\nXxOm1VT7pCtSmoTuMpstASqGhvNJsGmfN2g2/8tXLGXe+s1Y8+1UZeB9j6+J\nLp8KoAePXLnvP7/SsSkgRoi5xF++I4uozOrSTyxD8HFSvNkgOXBci4VEkeJ7\nhvyCwbIwNeeDiyIsGVOCYhHNNLX9LKJ1XMIZmxSNbdu2wrUth8j5ROdu/48r\nDGxQ2yMh3PuPho/XyLvnohAnHPP7rHEnW/+LkV9Ict7/65bHe+RW887vOiw9\nJxrxbJFYIFYqwg6j66OdPHxNCqZ6rs4h+hEikv71zkv45pYqzuZNFY2M0kEI\ncMTANbD15M7GnKy4ZUPCVvKX5mfaL4lfCPhiTK2J9jxJHayDh/hZpzij42rV\nY37aRdZ+8QgVZd15SO1uuK5OLMRNtYbVzyDODdKAGoW0cclGYOvpXuC1Fpk+\nhov8nhncex1aLYSaqxFQcNiYf/RrS45khRrQ2V6YGNGz1Da9yDAcyNv7Tp0N\nYoGC\r\n=be8v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJXTnFQaB+NRA2w1O5XHDJdInwhKA6zDvbU9yv3Sto8AiEAmP44m6lhedTSMUZvhL8Nf6JlTbVHi4DI/h6YCIQH3wU="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-6cb3a87e.0_1643310744953_0.6838318235815721"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.1-2afef2eb.0":{"name":"ipfs-http-response","version":"2.0.1-2afef2eb.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.1-2afef2eb.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.1-2afef2eb.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-v/uDbzC+ztr/kSUMSaCtv5BIQpv76WlFQlb/15ptjJDwdTkOH+mTUMavgaUjxcUCEj+4Lef4JKtjJjFsqTTzBQ==","shasum":"b57259a7a0c436cd56df41d59544b95a0a698872","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.1-2afef2eb.0.tgz","fileCount":30,"unpackedSize":375884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8vvNCRA9TVsSAnZWagAA61IP/RJIVqPefMAVr+1Gx2SY\nwoEaDagy+1PYF7Qk1YyxRUtr4TUNoIF1PI1lBOJFON2ymQ0KjkhLDarKskfi\n8sLNHl9OgGQQz7UrFFMxmrdjcdJf7Iqikz7Gu0hsBqkDEzHagcemilu+V1D1\n3YAoJvwNYbK/hoVen8nhfodXa8lA7Ll8EKrvV3e51u9QkQkhU9n6DtmaUGgD\no5S1igAr5A9lBkN4ko0kJPgoWr3zE0LRZc847nF1GSK+SkPPOo3M1JT2dlK9\n0nk+WjKitRZbWDbdXou2QZvi8bllN+mR7H/dkhULaVa21pDTibfzA33N/2e2\nXG+Pa6qyfmfbzJ9hELjg3vXi8t2dtdhi+GDbnfsV0zxO9lgnhKLNBZTjge0i\nLPi5ic6q7oGfP4y73SiTdmP6P2uIk5xe7B6YXCSL5bj6OZkg/IcM2/Eb5rxt\n1EOe4sUIZaB3hyb/NquY7eFVGDoiFQgJH1WvIHedspTn1i83iSHqdoaDU6yp\nDDtLb75Nvs8+hg7uvLmux3PLCafZywUpEzJqsviU6lgvIAvUOGXwsIedTLfG\nvzw5nptc+T/SX5NmMqfR/mJVu19KyH+wM7esWxyH4rdY1Milb5JqUdpaO0Nm\nKWEsm2rkSvqJQEsRdmXfQgChesNPRy1uQ/8lXXbTgxAh/aoCywacyyFYGRmA\n8+Sw\r\n=2da0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBG53XMe0ywsg2vVvIYwSBa8SG3HippyG9tszqjwfHN7AiBdo6q25mv5voxGu9XIqSajz2HMsTkyQtKk1szF56lTOw=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.1-2afef2eb.0_1643314125586_0.7970814588167692"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.1-3a5d61d4.0":{"name":"ipfs-http-response","version":"2.0.1-3a5d61d4.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.1-3a5d61d4.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.1-3a5d61d4.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-mUnNneDwKzUJOMVUcsUBm9heO4Fq4aAAgM/6w8+rfm9LpoAsxI/JUoD5Zip4P71/oehvxxrSW4pEUAmeLodXpw==","shasum":"8531b0e46533cc4f65521cb653cbead9f66be573","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.1-3a5d61d4.0.tgz","fileCount":30,"unpackedSize":375884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8w+pCRA9TVsSAnZWagAAMgAP/1E34+KC48km1B+90KYl\no19NjGiFCs95GCdM4X1VRCny3OWgW+a6qkGvH5mlRRc77Zi0ET9eLwqwYQRu\nkHTHaPPq0Vfp1nfj7ysL/Dqg+EUWD64mT6v9bqFUiQb3SoNVYsKarFJgRSUI\nPoLHAnQR41uEr6iqZv+q8DpUI+9IlV7kK2+Q9tlwm3Y0IFgGMNrrR1VndcJe\nzOHt7Ihqg4BOWFMAgdN5rrUYKNHUIA7PZChCXGTq9EZu6tZ1MEsg5qUyfClV\n7KwXv6/Gc02/mMYS3XpIOnIfmZiKS41x04qRmRDu8Qcuc32OEdUO8jPjrkwx\ntPMQ3pZ8YBKA/pgHZxo4LwQgeidJ3INWb3lyhAyu1aMSj3GShqYtpk24heKL\nCSWCsdUND4O8VQbKXN6QrbkY2SOXBT4lcv18l6BEwPNnYvWxIRPt4mhi8EYE\n7J7j2k2NsxkyxtyIs77HLvqb1iJfotxf4V04wfLUn2QcIkT/gkjD377XGjNL\nhJgVLuFjJCgOT8lHK0JaaHoOKlt79dbawGml8yBeyMeNobawlGELzKKnrDh/\nroM3k2T6beZkuKPHxtGzOnfh0Xx7EKs0GIQIC+nUtfpSOrrs1jJaYbQefLQK\nHtxcOun9brorozQ8LeRYUbVLjF+yMP4P8NgM+ORYLPsTGbrkgYncKrBIdYac\nrAW/\r\n=XNt5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCr7zlP45HzPV5RCoAA0BfmtywkIAl5C4REx/chb66krwIhAOXEiBbsHKSFY7cLyTgvAFSDQMZEkNtw5U7GQ5hQkDVO"}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.1-3a5d61d4.0_1643319208832_0.3919865817452206"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"1.0.7-cca6e321.0":{"name":"ipfs-http-response","version":"1.0.7-cca6e321.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.13.1-cca6e321.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@1.0.7-cca6e321.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-fY+xoltW4mbubtvLS8U2gldIXwmj5lBotvoQeqrwa9LtCs/WxfZhPJPA9dkrKUhRi36n8RmG6Ut6pG3qHJmnxg==","shasum":"a98f0fd901eebf7d87c7266dda25e7e42101eb50","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-1.0.7-cca6e321.0.tgz","fileCount":30,"unpackedSize":375884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8yTGCRA9TVsSAnZWagAA7eMQAJpYn0XJDwvbaMYoJR1F\n21eJN9BX51s1MIbF+FgfaPKAaWMVBf5cGPwExUoC/FDnu/AvBhi6b48HyayG\nwJEPKhGhMrt4S7gZzG9GIYBDAUgIGi0vd8CEQxWngFVvAIeps0b0xsLTHIay\ndpsTIq0SQDa5eNfWlns4jvXfDND3aiWc8TzkwSwO6K/hShenYcpAFNVVAsk8\nkYH0ZlfibHh3SkoTpenSEHRCgpE7KMOYzUG8NUPnfrN251lK4lFZvMVyEPcG\nE2W4aGjBdVWJdGGesStD49sUjb1eLQoipvmuOZE6C0O6WO4wYXLiljlmjp7r\nI1MPP+8vUZr9aJdegwLLPfEf5QfH4yVp8NohTCN4FtoF5E2ow+Fy2rsb0Bpj\nXMHgZJwBxfpNWxg9aiDgeJzjGSoMEAEHTOUamKB05jK0DeWfg5zKwgatywtU\nh0JE7WJF1isDKdhGMbppjwHicSCSPfDoHKK2qDQNMSwTA4Xq95+8VFlGLhav\nfB8+1nNNjE6YoGujvA1q8PvlXk8QV7L+tWnDnL4EIQL7Cjp4xVxy/LQcyyyT\nqmvqTlLO9LbvsSnhRQrbwTsku8mmU6GEULDAk57+osZJWVbOcoZ1w8BCcpwS\nw9SyUnvvlkIz4ZeGQ5pp3asFHd94Y5MKuGEkzF6qONhQDCUhQgv20EAUlYoz\ndwDf\r\n=uqhN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHz/L1WByD+bT0kj+XiD2yD502XNAoSBpdOxGeBNLh9jAiBeQNqipUrUH1L1jTNAV8fk6aMNjpQNChz3gEcjryqenw=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_1.0.7-cca6e321.0_1643324614665_0.6522396706845213"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.0":{"name":"ipfs-http-response","version":"2.0.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"_id":"ipfs-http-response@2.0.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-2MYYxNz/KD9+LD8TMdNN3hwCYEta2MsaH9JMDIoVHZPhLLPaSk5N9A8W+eHGAdQ1CSYUcYp9w+7EWwkp2jOhbQ==","shasum":"12c169b9e398061e692b5b1147b2537f8b5ccbe6","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.0.tgz","fileCount":30,"unpackedSize":375862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8ygHCRA9TVsSAnZWagAANwsP/3KdcHEtcP0FwvOR+a0b\n5w3z/q+uSy6eof+nWZWe1CjEwQ/q1wl90roCCrLZr1D4JFj1V1PGLIPTUr1F\noTzgp2gmALqp9OLo8iZbpDFtdNxNIuaYPtAzfnN8El+G1U+Zs8ZTsMUCE/b4\nrcE+hIxs+PWIzsVIqLBDQHsz9r30KUoMHPkNjghuF9i8PY5uKCT25DOE0NF8\nwuk2vCj7pFgDOR+e7Z7JwUY/FIr9zfY1pOWiBRHtDdyVUVJ91mM0QIDLVYCN\n7hztbGSVT92YzPBLhakZd44VRzblxi7o6SP2jJdUSy7DxoRNRGiD2oahrKA9\nyI7jeY+8kLklBgzAIQg20tWFqcIsDEuzdJ5Ppj/12FV2S8towy9r8v5Mh+wY\nqL8zwFPP3NrU6IFhPfAfSa5zuNsK1POBt5GT2l/gu+oDMrjOLy34q526NvAC\nBaFtOl9Ldfnh/EPmoFcOHThdbJ7XvWP/TEGmkv8YbsH7FUJVR1pzbNr2Zgs9\nRdirFk5iHHkvIfUUXztCHC0Vgm3RiHYYsM6ImlUcT1La0NfY6GX/9grwdvEO\n55k/Wo9mDPc1ySyLe6SKpjx7XTaNiVCFFy1cG5bSM2NDtXeCv0nxqpgrF5xX\nVzhyfhD3PXpoAHHv7CinZwqu/eUA5M0/EWV5IwUlxKbmNpiALYpOsmBhddzy\nM3Vo\r\n=CInB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt1ZAZh+OTcB1/B9qQ/YG2r1vimBCri3kuETomMbX1WQIgEYshKiutmUTGB17bazjXVAD+oS7Lmexd7zgEh35MyJ0="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.0_1643325446806_0.3824086194267098"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.1-8d260215.0":{"name":"ipfs-http-response","version":"2.0.1-8d260215.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.1-8d260215.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.1-8d260215.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-wmFxgOCxt7M+a0aTa59TpaliN7YChe0zm365wxz8CZllDT7mwO83oNNu2KH4bbHZyOs/QV8l67bxdR/KEqeVyw==","shasum":"397956064dd7291870ca1e04da937f9fb6d384a9","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.1-8d260215.0.tgz","fileCount":30,"unpackedSize":375884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8zBNCRA9TVsSAnZWagAAOoQP/js/fyg+rhY/2QHsraRk\nulT1cWC3CN8IfpRIkhqQKG2rulmwvwUkT+XnxNycrYg9WB8hTNMOf65cLYYR\n+x3U025vzw+FS2p6oghJ0o2qaYg+gchQvtFb1i2+BRedw6/vL3LCFl7wMlWf\nB0ObulWYpNgzdrM0GLbS/TNXgJydfbx1jvF4IYrTGXST0/soutsSwT2Ux4Cl\nD1EuFsaSlZnNTd0sFYvbkJ3XnmjImT2jwRKtrUxRLGn7LsCKqIsR+ZddLZ2a\nvbqZVRb7Wk/+Hbjl/YN28zUJdpdTrfkdxmzvtS8RKIKsqqzqU1p6QasZani9\n/TWMEChjd+QpUsLgKApAhXwSCR05MCg5dwbpZhqODB9zg4Xc+kQn/uAWwLvH\n3vI6ELbQwJAe3KQuoRgQ52QgzieRQTN/BPPdabiLKVx2g42cOwtitIIvq5q9\nEYaITfHZBsPZh275Nba9fTBCIEWt9M+y4YLy0tYpSClHpU46xKxv9GwWVNyc\nZMf77KNUCag7x2dAk+rk8p3cEhKMnpsHmXelfRtu+XXja3Zi0/Ccr1/52TSq\n685OKUM6LWOp9orw+0h1yQaTHOkl4RM+6PXSW7tPPkT6I6muWIcy+rl4PEaC\nVQgp8FQRuNLD57fLSfHxVsN2oVzstQrpY8jy3T42XZ3iJYsH8rY9wxWALPiu\nIzin\r\n=sVXZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLAsWuaEvPmO+dOrzxHsNrX9RydKvuSkRKsxh4Iv5ukAiEAl+XUW26hDBY/55Jp3pt4pEzOf8Au4bQ75k+MgWFDuaM="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.1-8d260215.0_1643327565008_0.7775263348719672"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.1-2c8ec080.0":{"name":"ipfs-http-response","version":"2.0.1-2c8ec080.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.1-2c8ec080.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.1-2c8ec080.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-VXYhT7Lvhm1bl7yLObRyL3IQpc4lNPUrFwVGY9OsaUeCv9puEP7OW4DAjjStlF8dlceChsovfxQvxv/WJp7mmg==","shasum":"370b75d8141df5840051ee5302957e9f0823b66a","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.1-2c8ec080.0.tgz","fileCount":30,"unpackedSize":375884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9AQNCRA9TVsSAnZWagAAPP0QAIxeO2QAL4MnPHXgSues\nxLY+pRZPvL79lxchlCQG+cqXqBIdsoPkmJFRT/av3M/u1s3bnHzMNXlsii0L\n6J9nrtcOqt4NH20N4zFcnmr+xyCeAhLkn8w0M0HZ6CW8rswF110ymu9uuF22\nx0RDWkdfPGqzAUiUZpiLJ8pMZlCR5DwnUO+gy4hXc6+SUSKRzUE1vw3akIR0\nwpuhKiMNp+B/9j0GNULh1UPedEIf6fx70Qeb6sw8ciWItRIeDZr2s9r5gXXa\nYms5Q4DLkGXOKLl5QHqK3xsUnnncdmdSXcCaIi22SoxhORp+KfcGZM26SAHu\nMbrkjOrCKR+NNItgxMDLdXSqICuXFav5lFVtrEh0QsflXWXNTo2cp8Ks6xCC\nj1Q+9bOue3SwIFRNDe8f60PAKUHDNjXSUsrN1+D/GiUcBJ79XOsndNrprACU\nNYyxoWZ0YqElDcRD9s7zJV9zAkXpCzvSIYJZpqI+4AP6fnZlTZGE+ouvM7ou\n3EKBTzzkx3a8sFxRZ2et0RXimu/m40fhajst6XfLQPUEarvNZWNvi82jydGk\njtzgVy2v/AVWcCGQMzDJZcGLAlQB+ZIXKBk6UGRMR2pekqsQ6jgDhmlLNcUW\ndtSueG6HiMTu/dT43A3Rh9HcaDk77r4UM/cxg4YQz3M2O+CVzSU0K8C10nhh\n1XqZ\r\n=RzW1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFaWLwDlU1FEM5pJExLvxgsn64/FN/6CD/TzTZkmibMyAiEAmyEEkYFXnmd/cqWh3SWNfR7uSTCiQW4npu2LwOJQWEA="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.1-2c8ec080.0_1643381773270_0.30651183874004007"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.1-3a74c110.0":{"name":"ipfs-http-response","version":"2.0.1-3a74c110.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.1-3a74c110.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.1-3a74c110.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-Nnj+7aLLUOV7t/n9QfxOPYwOGKNamMIY2yyJPxTZTgYXogRlMIWHflpyS5IIBClLeoln0D5z7pZfLWz/bBBnCQ==","shasum":"bb205cb33808d31f27941a6c112b62230785d971","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.1-3a74c110.0.tgz","fileCount":30,"unpackedSize":375922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/VF1CRA9TVsSAnZWagAAVesQAJT3vGH6m7qzvdnmGots\n2mxQcUE6C8o+83vglmn7T2SObT/QszLkG+zgXpzZPoonP6Sqt9LT+eVO3Ujt\nWF4W8dfmZ9rmKEQ+/5qpMiN7zqWxuHTLZzB01u/wvtE552z8UFZii+g396Il\nxOQiyiCkt/N7kbS/wMj924l1Yt/ES+OZw+wGqWB7PTqcwkEVvcpsq+/G3d9U\nEvxm4NUwPBOhuIFh5ScTIn3nrs++XzgppLGb0MFJpXZ6VMnJYJ5x2f1JXcMk\nXyl+2wp8eSXlQ4Nigy+nWC7hwijZKIIWrBFLhBMxy+27p0zVAJYdt3BH0eu8\nyJFlj6PmxryGVBdJB2cA9+C89nPy/Cn50Z+k1VfMYelDGHXK5uF2fodyeltL\nmlRTJWFgIcSpy/xFM1LIofkInrbqc2r9kfq4byzPSl4PXGE2aNF/AkB1EOTz\nN3YPuavWQaiiRTDdwke8wR6uX+hDtiY8xfXtj43ZgVc9qCm9er7NsivFkKa/\ncv9Ks8K3NvwKqulDeLqRbC3RnjBLF2Zfs568Zfwr1Ng6BtyI0zZ+BLX/6TsK\n/Qe7UYaGObPe050vWpTkwNs5uFmQFMWfkaJR8nHPtOGyYdxiss++h8LJUT1s\nudyrSTVlpPTpiHeAILDJGP0giFn4HTiK79dKAxQGXMRSJvO+Y7HYfb7xYXpY\nWspP\r\n=nJLz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICmIJHb46LLVIIT5aBYZAllUlxUSK5H5iIyvX2KVf4sLAiEAj6ywE7cPYh687VJMtBmSzIkHBqcFlqxHg7JON2KR+wo="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.1-3a74c110.0_1643991413087_0.6592465312720623"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.1-383dc07d.0":{"name":"ipfs-http-response","version":"2.0.1-383dc07d.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.1-383dc07d.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.1-383dc07d.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-siRBSLa+BdFcEFmvszTXYu3OGqVaN2tzYl0YWiI5Wrm6x2HioXG6wR13p493dR5PsbskBqoJHpDtB4bbQpr8uw==","shasum":"fb340ad9c1c975fab630d66556f84af739f7df7c","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.1-383dc07d.0.tgz","fileCount":30,"unpackedSize":375922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/YUMCRA9TVsSAnZWagAARH4QAJp0x0WoPlDz9N6lLF0w\ninANK8udJU8taygiYdoIirfuJaWc/4C7D/STC3v98CpZwHjEx7R+Hm2xtDxI\nuhUOlMexcg0nXZKujTWdM4ZaOT5KH4jLIYyFsnZnbRMzAd3yOvbHGDkYPUvA\nkevrWy1l05jSwZ2DiHALYiMHerRNO0XzTWLlTjQnEBmXDiCisXsQI5Cf75Ob\nH/9u3DI3yyS0d5G36Z7KheKcayoL0Y7s4q14yrG+AjY8HXDjM5vTd3KUEIYa\nLYMORYuoyu4qLZFosVKQM2Mdu51bXjSQM1ZsLpqXmwLtxAHVdVCLZbfKc0cc\nxRLzkmMsSGqwAaeJkXhuzBe4SjGzdY6LbsiFPt/8+Uzie39vGXwiInByaNJD\nz4hfwDAUNNWnXU1sr47M/K9CqdkuHuXRXzQPqvoHjcNR/D9ZAKh+ucySFCUS\nZeV7uQY7qRrcJoHwM69RU11b6VIyXQjeBe6O/Bjd8gOp68+KRVvSspkyucCs\nvezqwAM8i8CkY8e9AxKfrssqSUOMgC9idkOvh3KjI7S+zTill6NVWzJIoxnC\napQNIZ+P8cNYyFzwVm/4zdc3zcRXDBkFW2gfn8baCt6I2n0MWwPpOK6ZOeSi\nTLJXiztKHf/Yc5arKvegPrkK3lSqo99hAfgFDiASLaF8a/E6fWvBXmupByQl\nOmqM\r\n=IaT0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5geOCItwwvVJCksu2UhsRbql4oVhUzBcicF9Va8xQ6QIgaiIovwZIcKo9Q0li2zjnM4UgumkKTPaqSNMZJ/9+IPE="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.1-383dc07d.0_1644004619994_0.1791571497062192"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.1-709831f6.0":{"name":"ipfs-http-response","version":"2.0.1-709831f6.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.1-709831f6.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.1-709831f6.0","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-sQRZvq3EPI3g4RFx8FBgeRe2DvEgs36mPxpWWC8f+s7cd7JeQFz0BOX2ueKo85eRhnjxQ0mp+J8k4k42crlC8g==","shasum":"ba3d5f35f5002df09f99331a8653d708371136b8","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.1-709831f6.0.tgz","fileCount":30,"unpackedSize":375922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh//FBCRA9TVsSAnZWagAABJIP+wRpeVZiivyM3n3mNOp9\ngYJJcA8duHm+ypDIop95u0OmQpfceGuJEo3RSBYexrgHuPmd19k2BCBl2QwD\nCca5Wjv18n8jtnyr1SoiKmoTxuOAACewvuvbeKpWDibVZ3mK//Lx1oR5MO0u\nsmYYCJKehI8cV5rkWlqs/e6VObBA5NX0kcqX3R3HwSq6ByT2oKAjxmEgqeab\nAPQ6lbzKb1O947X1hbpGStOay+tJfK6Yxii6OBoAcCDOrjKS9rRG03i8F29M\n9+I8idZSmsuZAfzg+OyfMXWplDPjnlIWK2nb3zM2f59dpuv7kNKlUcbV23Y/\nqa6vtgGBZIawd7c981G69KZ4FeNAud1Fk0hItFu5ywQhwwbGEhWzrkT+WX1N\nLv6NFYKTHNE3QWHWFm8umle0S1+0tjNd5pSjCPOQahE0pPxKkneL8XVoLP5p\nsstarnR04gyktFt07LtgjqDlTyWKo4f/qrfPB12uzbB5RJOLhGubRKToa3ZK\nHW6zUVLII0/iIWY0Ihh6oVeXutyiC06odX3F7Lp0YSwhIsprP5kahlx00Rij\nCob95ztHHDJ2eUk9CSujsUZKAHkHvrlSsDD83fG98w9Em60raw7oehTRQXnu\naVGyLcwgwnzRf0Jxtg+wf5ia58bVXj+4qnEN4Bt34IItv4kt0XVadhpfWFCf\nwLyS\r\n=KXb6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDA3+AgjCkaStbdRaCoc58KBdPJusbNlrSHpHYGsPBtmAIhAImMpanMiks3fRBwJbwg0lFvOpXfTo5XTjlzSsGmwG34"}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.1-709831f6.0_1644163393565_0.061552465877847684"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.1":{"name":"ipfs-http-response","version":"2.0.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.1","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"_id":"ipfs-http-response@2.0.1","_nodeVersion":"16.13.2","_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","dist":{"integrity":"sha512-qvjs9WDu80SaKT2SzemEHlYWTdAs3RNSpTHF1/L1FV7IAsUL1nH5jus0xhG31fdAVo02ybc77S9uY1K7+0Z2FQ==","shasum":"fd7907f963c6a91be0e7df9325857fae35e7bad3","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.1.tgz","fileCount":30,"unpackedSize":375900,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAU4DCRA9TVsSAnZWagAAOy0P/iTSKBy/Kqcen2yNUd8L\ndQLdB2B8TH+r+mcKkeuULyNZgMGJgOOAGZrGDV/NvZLjRd/wsgIbegsPsGQW\nq+ego/8yTzfWYhLpUspEIm2rmi3S9wEOmRTqMeqeBmsIAQqJYHShEhQW3Z4c\nYc1lK2DBHryfMkhmCbeHHKalEbdMCwLZZbk1nZ6xks1D4uV5QGuCOobctcy7\ngnDzgtpD4ulbxkYGpQhmCnR/FYUH4elG//kgCwQVORXyP7IWzgZeSS5MfTmt\nu8pSr4Hj6YXRBSuZ7ZZAFuNyGyXEiyekCRd6HzwB45vYOXaDicF0urrGmUUe\ngG73UQI/ax/ByASFrpaKq550nPUIFrgnYRtqX+5+uc3fg/7X13GYzppR7pml\n217n4N3bxu5DNaBsBR4eMsIWGSR5xnozfaAeTMl1J7NKVd5EVX9UTgDV6bTA\naGDrlLn/IJTtn/Vjg7RI6KPQvpna4MEwv2Ae/R7GlhydL7lMWMg49xLHZqgC\nveUWloybsUjU0bHD4yK8gcTCdF41wJFMsmT7aEFZ8v0MMPUltd8F7ee9CBpi\nZNbgM81oulx+Y/7BY0A1LxRT8rhOm101CtOrstKQqXTW8aVjFiurYhUu/g4E\nRovCWcO+IBBESUb+9+sdagq3Ps53/031ZDLqysZeFflE9sgPSGFQqcN/51uX\ned00\r\n=TNep\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhC5CcnSD8G1QGBtwEB/BFSSesYcbKojSMhNGvFdD9KQIhAIoCzJhnJjrtIhxlpAqxmpYyMUaXRTRkJbQxT/2ID5PP"}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.1_1644252675384_0.18533982397258741"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.2-1082fce9.0":{"name":"ipfs-http-response","version":"2.0.2-1082fce9.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.2-1082fce9.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.2-1082fce9.0","_nodeVersion":"16.14.0","_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","dist":{"integrity":"sha512-u9UGM57wdbp56en6u6Yip28X5po9N1NT6PLkAVoCxaX7LfnIqVYa6s8DJ+yk6jUbQ3HCtFpP18QOrLEbs7WZUA==","shasum":"14bdfc05ec29de6f8ebf937dcaa8d3233598cf7d","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.2-1082fce9.0.tgz","fileCount":30,"unpackedSize":375913,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiD8X5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeEg//VKZhC3ED1IODf3jt03O6GVFcdNvYuwK+PlszFMxnitRQrzzd\r\nvLxTlglejd1eX4wJd7BHnyytJKTWPQvEM8o94WIo3iBOr5Wowk3egCwaY3M7\r\nnwP7L1RXj+qmj7KCQhGwTYq0siyoynasUxnHX73DuGi14VNW1QzAlmWOZAV1\r\nD+0JQi+vTfKuRNLPo/mZkcdBuJ6V8nf80CSU6W/pO7lqF+Lj+cpZ7EGSxJoj\r\nkZ4WXQ3KVB1Ps7RAuS/c5MPxi5KncHGyshholF/LpTnz5epBhKScomPM86xS\r\nsW5h3dusKu1oV+NiNMZ+9+D4nTgRm8DiaucC03fx+HvL8YIoWrwDXo+JD2XE\r\n3AN1H9GbcoQtsZaZq1qvpgX8FZvQ0eoVfr4H9vdxaLx9w0lchzV3EceCCRmj\r\nutJB/8gkcAciZcY/Hzq0rBVMbQ3mJO4kzWZURXRxNSfV/88cHQKHwt5sVVk+\r\nkPcQn51r866bYvAruczAb+j3q8sWV5Q6KLYOfhXfleLZi2XAvDtF5kGxyPZU\r\nJfbrTWwc8ApeApdbRgtF58E9ejRVv1CBBoL5nn4UGc47q7frX3kjKaZik5D1\r\nNrPxxrDMOy8wU35z/xdgDAf5YIDIIPK4EoayoLJqKdN2rueDfYJJzGEnIbWq\r\niYm8dzSsLOqY6AnvlmMg7eeg+9wrGM8opuM=\r\n=sTom\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDDRIVE+9kBVqcPpEY57Yzr0HVG88qdL/9MhfY+BNF/9AiBURGXuCoxAKKdChxp3Xkr08qN+yb5A2h/qLmRx0zU7dQ=="}]},"_npmUser":{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.2-1082fce9.0_1645200889250_0.7211875036944313"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.2-125d42ba.0":{"name":"ipfs-http-response","version":"2.0.2-125d42ba.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.2-125d42ba.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.2-125d42ba.0","_nodeVersion":"16.14.0","_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","dist":{"integrity":"sha512-UVx2Gme/JNR8NsZJYHvzMf8f9NyCA+SyomFZ9VRY/ZkEekpb1RElqIK3756xF2IEOUilP20McZpdnVfOoWyohw==","shasum":"45a6747b6f074bca9c8ea2216aba3e2b41c1bd58","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.2-125d42ba.0.tgz","fileCount":30,"unpackedSize":375913,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHeuLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqbig/9G+EEkkvckvsitikGBnguCyoqFkynbI9cslnXiKECi9W0DsHH\r\nl7MLOesXMSNcV5jjQ18cKPgtGreUF8/NOfhXxyiMVNVVFm4D+PHa2ZxYvOCh\r\nKAPL2+v8VHYpifFbsNQoP4iDBfhrd+8BeoldJdcCOG9ivKmGDPr31OUyPFOU\r\ns8cFCBMsC4xQJuQvpE4eGN/nHWuo8FsBstmdRBJT8uvxczAFux4Eg2VmZ4sd\r\n88dnERxVJFsNGXGYwad/Edbs8bGWWujOY9KYct0isYnoHgtCLjLFy+P39rkp\r\nvJos2DN1ZtUxFC7olxURR5PRv3sh9Ce11YaDHsAHeJrqm8u+zi8UoLyiPyVY\r\n+HeOaK+GqYXEwQHtpwDRHLCX7oZmE2oDUUTUJZd+kNPw4S8cBxwzMWxYw0YK\r\n01NMd2E521cVgjcxDdyrOL6ZzbcQOnEZjNhHa6VyUFxZvQDWs8nsM0pgyxD7\r\nSS+Y3UaLgujzEyJiaFI1mRuVB7UbRZBqRYLW68VmzwErCCaMNpQ+cQShTgCV\r\n+3JlRGbos4o6/cQJDEI6jKOpAdCoQQNRtz0ko6Yh06YsEtSKYvyBXsWn/YmG\r\nOx7qiKCtk76+bRlPhLgT9oeD04OKOURVjMmN1PF/dEc+Rj0qiJ7GUZYxui3x\r\nHCYjCsRGNeV2iRPqO23D0bJMrMy9Y2dfAew=\r\n=ogaC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAsxKl3g24mVVcxzWTk3SHRrQ8B7PA7Af6FEmG6RGzicAiAdPYkyV/yUFh7VgbREUyyZ+UXd1bOk4kCnPeZIzC4eBA=="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.2-125d42ba.0_1646128010867_0.6013525512561255"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.2-df1bd1bb.0":{"name":"ipfs-http-response","version":"2.0.2-df1bd1bb.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.2-df1bd1bb.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.2-df1bd1bb.0","_nodeVersion":"16.14.0","_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","dist":{"integrity":"sha512-zERgfOBj4wfPTGMQ5D8sQP3YqVOzZ+BbU4aT1CUPP2ZZ671b5iNSwdqmHoGBkZAFET2YPrsisRt0FO8lcW6Aww==","shasum":"902aadd12f32c0cb343f9b674eb1063f77ace301","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.2-df1bd1bb.0.tgz","fileCount":30,"unpackedSize":375913,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHf9JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMWA//QK60TNzwxdMawekZR+idYgMv5GU6GB+1cDaNB/aIjCsaSMBz\r\nbNIyhdJEskRRP9NrGNE2GPgAL94dN5b2SrIUJx+0AWUWjjxsZ9SX14m2LCgZ\r\nDGNJRxidl4VWBiUlx/7UvhsG6a2WRjHdwCagM9fzCglaxoVZ8PAGrLW6sHRd\r\nmQnHbimkhNiBc0FBd2U86IILD0daoYXRezeYnSbma4vcRLt9jPCQe0xfoPWT\r\ncUJh6sWNVljETkTTgCmWF5qFuIXqkyBk5UUtKJRerhqbq3fWn0jUztZq6DWO\r\nfDWAvhJL5MT7AkcL7tajIAZsdafeg3DirhbJCRZ9unfxpcOwagYyvATHNqWg\r\nVPK4+h1Y9xnUNVZzSVq9POrvWo2At2H9LgcPPYnau7vdZMi5UE/eSks7/wKL\r\nf5sO1ZTbhBRVBFd9tjtxbzUqHkoXe9KYgeDgbgCkfYH+YXOBqD/9o8OO4kaj\r\nKHmx3CdtYGk4Aky4Y8odRyBBbrRMbie9DvB4QT7fBmRG/6y+3t3f7xuHGdr4\r\nPzAIa50qiWa08FCCGoQU6yotmJYvtU77AUSdag7CGkFE489eOp62TB8Pv3fM\r\nh2R1hppSIZO/cEeAUiWGne8rMoidy8YXNTDtY+cD1bsLOnmby9cBKqPdm8Kw\r\n5YGQLhI5fa9mAiqkOOCriPYo4qPtmQwnzY8=\r\n=9QXT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMS7lLJKb/FjkSYmRA5arHmN4RIRZKjLThMp9ksdV7PwIhAI1j5K6I6Kzf8Ktoeo9ZW8mJomjRHhIJaeYDTm4Q803C"}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.2-df1bd1bb.0_1646133065803_0.1803892833691012"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.2":{"name":"ipfs-http-response","version":"2.0.2","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.2","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"_id":"ipfs-http-response@2.0.2","_nodeVersion":"16.14.2","_npmVersion":"lerna/4.0.0/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-m1657tzS2lsuWSH/WZcoZY4hOIEDQpgSDMsnSIqGR/tT2JbK2ojQYJY1xazNGqhJDgwCHQyVzcl6FRFO5GgKlg==","shasum":"2a0318809b6dd493cda6b47ba4bda79ae7bf7258","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.2.tgz","fileCount":30,"unpackedSize":376032,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6+0fanVwc5W7VlH/2/3b/V0VzzNhYXFyXAN5ZizvNFgIgMbgf6P+l40tN4KFYMxemHzNCGmTIx17GCbjFAyw6Rk4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTFvOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp12Q/6A9RzbHSNtCNJtqgVbsxR9r+YfoVQ7XiddG090A9EGVjYkd0U\r\nyNA/hgvFymMdKSRz8Ve6+suCxrJh42gSgSZLoy8JVUuaUU5zcoLWVXwmc2qs\r\nbMuxG0fGP/IIQY+oxE5g3lA/gZaPEkStG6Xf/Bn0zG9zLARaSPZvrUeVMJxO\r\nU0MNfEhGzjbZeTg5FPRDnRwCeubSa/nsMh6/uoILLhvxMnOniIy0tcXxUxdN\r\nt6k6TRs3b4nG2aaH8d2hmdefJm0ADS9J39u2f/e20HrblEYNfcVhNRZ+Zrj3\r\n1qgS9ruQj/zf+/7uBpsisKU+jbwL5XzjdDk0ubJnkz1ZUeSlp32hoc+xey/r\r\nknXeEV16WubswhREZhseaLuDzsZUwUUyt9N5lUSvP9GMUt8Hj6iJniTSJl80\r\n5umF+w2Y+TuLbBgKs+ZUsJffpji7iHzc2ZIc6JvVyztM3yvrpoDumV+CBdkT\r\nOrQgR/mLcgJUaQ4YJA/10pRbXLcW+oCB1b/Z3Gi0G77cyRSjgdVlUTnpBnsq\r\nVZ/yG6jMWkPIeYJ7+GULY+mwFjNYnaLTuxDiSw1hbH1gNR+T18SybKkCn5/K\r\nb8aNrCtTaWT7h/vE+09Vc6RjTmZnRRY5WH1Ad83cWLzVI1+612NeMcLACVvf\r\nA9sWID8xPlfp7XIuNDoBAO+glMZkC6byiAM=\r\n=/pXd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.2_1649171405766_0.9716047303479938"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.3-e90b8f13.0":{"name":"ipfs-http-response","version":"2.0.3-e90b8f13.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.3-e90b8f13.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.3-e90b8f13.0","_nodeVersion":"16.14.2","_npmVersion":"lerna/4.0.0/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-5f/6+lqyweTi2uCKNdB3yqg9ybMWygAhnGeROKSSx7UVAH537ai/aVPlZVuEj9+5HQqLBlJXbazUrKWED4QSKQ==","shasum":"656a90b180567961ca62cf89b94c273aac703e71","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.3-e90b8f13.0.tgz","fileCount":30,"unpackedSize":376054,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/32CWsZlFRwag9ie4RM2nptuYctkIbn7yP8IiyeGx9AIga5UE/8IQPuvofXFbiZCVjK3xMiNemy5Z+tSz/B1pIj4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTGnSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmon1w/+MdnwTcijT6KjtmrURrKli2pomzK3n1DZYaF2Myght8wx23yL\r\niBiMA0G56mPRX90l1z6TTLm4GTPqHwzg6MT12OtSK7vXzzLj+YmHHk1F9YNj\r\nx+dixHZx8wzFlLmFg08jtJebsv060ucpu9kE2Hd+ScsxSTI8NbENrk8frSWt\r\nOAI+KsaadQCwHH0v9DGT/67fuv1Y2XFn9Yma/3fDrfdDiRnNnUnlD53/MCt2\r\n2OK6bXMYU0exJwL2xMt1/jjqV1OvLCovPUn93SHs+soJBtF2I5ti6sZ3cgqw\r\nxrUhvpy3CqIG9tfdFMOaefadPF94wiWdYC51HOE4LvO6P4E2Mth5o7S+AEdP\r\nWsSyl2wv+OSmZdkE7KCbS6CCiwSfDrJBMCJOmfgE7v4tGQt0ph7pweS7G6I/\r\nE4s7vVvE+sdtGLEkn5of/FBqSzRsI1LYciS9DJq7nFogjiqnSUFo9ht9/gJy\r\n7vkkcuoDQ1FfzkH8+EsiDgQQ9zrQ7FQCBKx0bETYE3nzdIWsOeOU0gtxAIr+\r\n0+S1BNnYFuxGNndZrhibboPNdUPnNAtndifR5SsiJ2Gmq1c1R/hXoCUof4BU\r\nxEcgKUkdDCld9koo9R5kDMKSrF/HIQsCV21o7Dx6Dtd2hqEKHrx6bwrL1QUx\r\njAxY5w/hS/kiVWuMBhn2Vwv6ws6T9an8y/Y=\r\n=SQpI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.3-e90b8f13.0_1649174993755_0.17839600295979352"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.3-8f7ce23c.0":{"name":"ipfs-http-response","version":"2.0.3-8f7ce23c.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.3-8f7ce23c.0","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.3-8f7ce23c.0","_nodeVersion":"16.14.2","_npmVersion":"lerna/4.0.0/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-nW59oXZl70d5iRBA9fqRS6S4kb5n1kipAJKKKfkvQKN1xG9ISAIGZgUDQCfah/XGA9KBsvJxL4jWQ0zZ7yDAZw==","shasum":"f0d2dac58711d6018b01728ae7b8f244744e2acd","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.3-8f7ce23c.0.tgz","fileCount":30,"unpackedSize":376054,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxhzRZUFieUa6SjRV3iBv6UuwBuiAzQ1A1Zm6QzLCZvwIhAN7U1Q2Z+YsIZZejakL3G9lOSAtwFdxKQldSZFLQPH2J"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiX/8nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5yA/+MO1aFakn1EGmYOHzG5jOqX/yhLGvFPunHqHPX9aWZyxp6Al6\r\nfRmAsHRP/Or5AGiAQiZEBlh1ug129kyuZGP2kFtn3yuVgBR4A5Q6hKKxZ8Tv\r\nYw3vJpc/TxV+uOwHHBybNykvHvhXDw2CQS7Crl71i97BfQpeM2nkW27VOHS7\r\nL6xRj3ETa0J/Es7VBTAi67A3NRT0VWce4Uc6QU5Qu/RhEvtTVYzz5rfTEeIa\r\nzOyylE6Qg7buAS4H4bYw4Y5/5totJyrWmR6UwvTUqieqXfV1+UzFJOcFfvuZ\r\nS9JqrcR1ScofBrtnk7z5jR5+Skgoqa5NJGGXFDNSYSskCEiW6Q/kZMD29WQw\r\npui0ZqnJnp1Xmb8fYyMd3S6xcS+dofv0lGj/ePEtfjVTalTksp9UodEOdAvA\r\nb0FZWqpFsP07eeG5YrR8TpZT7HC4p8Tx+K47NA69KEde/q8+jsVhe7Tf1Mz2\r\nWCjjq/Ai2pkmUnwzecGuwQv+07DJSUCRxu6A+QIYSKrrQ74Y1UIznB5HF/cF\r\nDBqT5/AqfR9sBU4oYmji2gqKlGGEaCvv2UpD7qGtHVZENQPeyFyvwuX/VGJf\r\n6QfPbVuQY6g9t0EE0jU9coASv0CGqwnMjDqk79RrlDeMLMPDbc3+iXp9G7mk\r\n9E23TbiqkrMeozHEUZPyJP3fhosL9UtVQAg=\r\n=j2tD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.3-8f7ce23c.0_1650458407622_0.6588015011613186"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.3":{"name":"ipfs-http-response","version":"2.0.3","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"./cjs/src/index.js","types":"types/src/index.d.ts","typesVersions":{"*":{"*":["types/*","types/src/*"],"types/*":["types/*","types/src/*"]}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"browser":"./esm/src/index.js","require":"./cjs/src/index.js","import":"./esm/src/index.js"}},"publishConfig":{"directory":"dist"},"scripts":{"lint":"aegir ts -p check && aegir lint","clean":"rimraf ./dist","build":"aegir build --no-bundle","pretest":"aegir build --esm-tests","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i rimraf -i global"},"browser":{".":"./cjs/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"debug":"^4.3.1","ejs":"^3.1.6","file-type":"^16.0.0","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-reader":"^3.0.0","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","aegir":"^36.0.1","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.3","ipfsd-ctl":"^10.0.4","it-all":"^1.0.4","rimraf":"^3.0.2","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"_id":"ipfs-http-response@2.0.3","_nodeVersion":"16.14.2","_npmVersion":"lerna/4.0.0/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-4VViBSJTySPih9KeDXmuSnPxcO1QNAmweLDIQOBm7s7nY7esdLs8EOHBbAIr3p0ZkRqnGvujtfT5OVfE/5KECQ==","shasum":"8005c273ab702fc9bfdaeddb840b07d540eac2dd","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.3.tgz","fileCount":30,"unpackedSize":376032,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMSdOOPdd76l9pNbR8mzfsiesrtQ984xGKclM/7BxvqAiBohCdkzKql+FtJjOGVssC81Qso5BaSyX0P9aR+atkvUQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZ5joACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrIg/8Dx0oymyC7bJPIkAsStWYQ2AygBJdjiU+FaIt/Zps0wXkuvaG\r\ncCf/FBHemp+j/9nSlx+eViCJHCW+CEPaixTfcEHCU9yJjoHzNYeDZastkIi6\r\niENoep7i44R6EZJUCJgJaL635DbiwOEgsdf7tM+MFyBDmjJgbxKL2gvuCYtF\r\nSg+3deugsIxJtgvzKT3UvqV12oZZZ8WUJaQrqrhj4jxsEFUHNrsi0RyFCtFV\r\nZK3xGbq3pTBKICT8zurvlkPNAaHimk04ICRZwfM5utLwb+ayfhjrlO7+WP8w\r\nGxH9GY1VFxqCDMO9TXFFmM0MAO1NTn0AkX8grI2jiW9Z1bZ44L/aylBGywGH\r\nXjhc+EswHLcN7tGtWe/JUZJykmklpEDOPVLXG6LMGGYBU5gVU08l5N51iws4\r\nrkLa7nd/g+b3YiC3x2I3SeIidmZRg1b3u3NFRE0ViEQH7LrlNoQOKMNKqTc4\r\niyIs0OtoLBtDfbpnXgBk7qTIj/oATX2uqIupwKkfqMvI3+oYh+KOQEFqCJGG\r\nLmA/CuVcUvuGBA9TU9u0Gn+9UlrN3c9cx7n15GrbRIaqn3QLYyN5kseX5AHg\r\n/frBVIi6CZzKR44weDwQmFdM0P+iSajxAYzOkEDm3VCOM2fPAiJm4JcLmt4A\r\nQo0ayJtiJ/VEY9WaFLywn0utUl9SEYg/TiQ=\r\n=ASTj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.3_1650956520266_0.3622678567727613"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.4-7165bf71.0":{"name":"ipfs-http-response","version":"2.0.4-7165bf71.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.4-7165bf71.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"0ef2fedb9b9cbed1b4855c48b5f03d343ceb573b","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.4-7165bf71.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/4.0.0/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-gh+L2g+vQc34R3cR8nIGCRWoXhfskr7fw+PdZMdDLfGLIQ2dJw+TRkWvRRmTKwmsksSCRwbskj/jxDOtjnuMRQ==","shasum":"d5db2cdf8df7bfecd243fd91f39818476785e65f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.4-7165bf71.0.tgz","fileCount":47,"unpackedSize":1980186,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxNuQlYW3ujNqC3qI+hMcfmLvxOieP72zccTI5nY+68QIgPcmvcssN40Nq6Rv3jPpmTI18jRCJ+Nu2LoSfXtQ2oLo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJigq8VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoayQ/9HIXDZ074bbrGGEqDjDNOeyulWSVCdEuCzbqnh4bbteLO6YRP\r\nTnPtQf8Z2L66tHWe+9HhlXGXwFxgvhWRreuxv60rpQGTv8QskXSSiuCP3iW2\r\nr1Nrc/Vdr8KKdahIK0QOy69HvyRrI3RARjxcV728GsqBNrQslZTvaO1QsfqG\r\n/9PdyTr+fjFJSgfksayttwhyHn8oastLU1QfKc7egoN9ogv3GcaN9gYQtNTw\r\nx7gmDf77ESIQ8ZIZfjQzBlWUEboAFbG8v+7zA7DB/PW11IGawupdWW+Oo0Xs\r\nUyCMbqGwRFQlKx8cisNpI8Ga52uyZa1GU5C3ungXQM8ff62++pr29FANAUn5\r\nwYkDll/tqcmZwF3t4jiYmozyY32o7NBOA409dDjJTG4390SwbsqIh0YVeCSn\r\ngAwMTWSkAZjja1EeWHsAutTELwDdokhe9ea7JxRIiX/kzM7aKeaXJVMeR80w\r\nDv+n9QdY9s+BPGvDW/VIoCL7hTSea7yPQS0nPs2loQ1QLS16DTrpA71ElwPA\r\nzOLYij3TPkak4jB2oKC4LEKH5929YUsML5T+KIHelwVrWPAv6c8eiJPP/qLp\r\nw4embqiade65fXiHSet60SNr9OAtU1YjHevJ+yIhcpgFoc39jyr48T+OpDa2\r\nKd+LtaBuogi/yGilmv0IlvivOijSjrLmwGk=\r\n=BxEZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.4-7165bf71.0_1652731668531_0.4203638146126947"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.4-4e93dd5d.0":{"name":"ipfs-http-response","version":"2.0.4-4e93dd5d.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.4-4e93dd5d.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"102f592858ec8237081913452cf185a3e44d2596","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.4-4e93dd5d.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/4.0.0/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-W0KrWotuwO6DYF0fjMpczVRcY+t1Rj4kzuyLepdXMPdN72jLlCcYVLS6hDpvmqAbOn+NVxUkaZFx8yb6EKlqVg==","shasum":"8196ac9a739f34fc060685355d5f52778f23e0c9","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.4-4e93dd5d.0.tgz","fileCount":47,"unpackedSize":1981875,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwAVnUuE6ouOJBSZLa7HnMvW0LlpLe1uiBqwDB1+fHNwIgTZKUOOTkFOAP9TFPa/1ROwlFx2NjkHLea/OgFUhlLj0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikNVjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqbGw/+Iv8rga6nfpkee6pHuXD78jGlhWF46ui4IU9iPseCXzEfF876\r\nJC5mLtPDKNAIv2jaCdHtoz8eKNoBL5DYqxPUdAIafGV1ZBXYg39gejWOe+v2\r\nSImCa7EiWUDVgcuPTOm06Uda2VkxCPTQQDsVsAA0WKkVbrgDBN9umLVyYKaD\r\nyDQ2bMEpTw91BRKVso+V/qfnLJBAeR5d3S60gBR+MUembiRtJ5g6qR3kJkw5\r\n3q92NOtLZl/vPYhq1UzjUfylo2ZAk7deDTQSaMP3O0ekwed0DFKzheH2fTJp\r\n5hLS/a3Qx8aRned/FMkEUfN8sb0Plj3WEk+jTFgHeEWq4YPZxD+19liiZH3f\r\nkWYBRPWLwmD37kdD9M2pUNUO3ieEci7xQfSsuVNfN7W9cZ2KqP+HHZIJP0kJ\r\nUGrZIEnbM4Jdn8YgiDc+rpewPrvzp+DZtdYRiKJUOy9RZ0bK6SEmFuD9jkgk\r\npeB88F00ot5PvESSPRkGZTGoxskWPco2p5Rd0tLOmWgoT+ECFMen52Px8X2J\r\ne99My8ZWkXRW7Vews7pr2qEU2DCRiV+GGgxA6P2cUit8sQpFCflwT/+bSvjX\r\nO/S45y5/dyJ3cI4EjXZQTVEVwIDjPA1M4715fKxlYU5SpVXR1B3HkPSUvOB7\r\nXidRGtoSUPEfQfh/KRxceSttV+cDTxrVcf8=\r\n=XpIg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.4-4e93dd5d.0_1653658979688_0.1801618179795066"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"2.0.4-919b27a8.0":{"name":"ipfs-http-response","version":"2.0.4-919b27a8.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.14.4-919b27a8.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"b3b172fe34f542a72746b3af9351bcaf25bedda7","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@2.0.4-919b27a8.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/4.0.0/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-NpPgxdc0GmMOhPWdltIxuPcikb7y8QNyL18653R3dKYNg0bR4FfPF+6cXrLANou4axTCuXNovBUMmY5HNbeDIA==","shasum":"56b156127961bf2b3e0661853b41f9ea1c2ddee1","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-2.0.4-919b27a8.0.tgz","fileCount":47,"unpackedSize":1981875,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgO5ClKoAGr3ulp4Q03VY0OebFEWXZ6t4mhiipFHEgLQIgVuhY4BhPDFv3I6M5r9fXQaL/cp4qZEIJDB/jgDxvJ2o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikPnWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpREQ/9HWLZJrM8fpKJG1LISkohzlqFYJ+hSr6omf3iZKoZ+1ZpihSX\r\n8vFDfSCJIZuTFVCxTy61jDPYkHM6tnNVXTDBCM60ELgKhv/53LFfGSvm5eVF\r\nE6+I0SgDnA5oBQ4Lfx7/Dz6wTJyMhenki31YVevVtfiwj/9BGCZevVwQvRUl\r\nNxuxUgee/GPZb3lxLCQDdMNLstyhBNlzvbjs4gMZ/ZYKMUAhWhvQrGY/9GrB\r\nXuozBT2HeYIXo1519KzHaXb8J735D5yYRLzWQ1i6X+pEXSr5/ND2IsZgUxk/\r\nxeiyQZEbLHMBJSjQkS1KKcpkDQTCBWuwgrOWvsAqaEysIw4tFajoittLMCXS\r\n2KSdlRL/kNQimFyhQ6nBqUQv1+p0NBmKdbMyeo1vy6fbnnyERdqBo2WrAAcJ\r\niP1jjiurvS8xJ/SBtQIf7ri2EO5kUjWsSw+xMQp6GnkqK3ApCkmcQFXnk1x2\r\n4Zkupe3AA5QBZwAWsJ4ujwsr0dncGo3r8aDjZ1ZoIojdf5+fWPr0Co9qe677\r\n8jfYisXNA0nNcI8YH35m8BSKsBRbJqM9jrDUUz4zBitYPmEgxCu+IpAPUvKy\r\nWZSvFWLhQfSRr/ngMngG3oC6y2d5VSGqJhVv0+L/3IeGYaglwAb1mfH0XHH7\r\nlU/G+kCSzaBVMgC0bntvbn0fAUE5sk6Prqg=\r\n=JrXp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_2.0.4-919b27a8.0_1653668309887_0.10762090566152605"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.0":{"name":"ipfs-http-response","version":"3.0.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.15.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"38e78cc875309ba6316706b63865e399dbcd18c0","_id":"ipfs-http-response@3.0.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/4.0.0/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-X7XSyLMNE3G74P7eITs9W5/PognfbGjNT2C0KxIxYEd71JdLSE9Sn7+4HTCvRtrh67dvfr4KFqaABTwoEqInAA==","shasum":"9c7c0642971ea785d16d9df1416c4f586479421b","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.0.tgz","fileCount":47,"unpackedSize":1981672,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYabLilbXAcRnEx1ehPNiCnFGgyuR6MpAzn4lf3SE4gAiEA/kka5q28VoDQ7wzUKSOyEmYRDykffgKd3ZRisQQAb4o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilRg6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0Cg/+O4DF7/Pyfykt6zSwFk/MJkVzW9hkDHuOAe6I0yLrAQVjkFQy\r\n6/RemiZvorcLQVxK0z9UbkmpUdxhPXErwRAuy1kYXWjm7/8opfko1TUK8EJf\r\nW56fzVSh8kKniG4iiaTtW1pijYxeFbOEE+nLxlu+YQdEMgrfA406qyepC3YY\r\ntlpn+M3k13sxz1UVtHZ5VleG6ThLCS0Bt2YLNbNrOHdu+kN3NeHRKdzSu6a+\r\n6pRuKHbQCE+pMuuhMr+PF16dxyWEpD+dLgTV1jmSVflajZUe62u6TgYJfEDd\r\ninTdWOHO05TRzafTwOHKxGYRYVH5+xKX7O6lUYTXs5vopX6s8csksDeo9FAb\r\npCCmBy92cOQLeazeC8VBymKYHjfHhkROfsintNlGDT9w6Dv1PHVoko4OUIqn\r\nmIGO3APdP4uTJbxBj613RelXorwjk5Aa8uIGARnok6BB+AaQCyXPSDSZjpMy\r\nCa285K/9dVcRYWtTPfVBm0NMMDWQyZk73MxV6sja7Lu/y0ZS/HJoMa8eb1Yf\r\nQ3A0Ml1xaeXLZq+iPrCF2TBeaoumQ4VBg/uqFRbcgjSec/gqeZ7qbLUbPzA0\r\n8ZnmKymcmE8SV76ecEau4wlRrGAD9DMpY84hyHDFCPdO+ZXpNwGrCN357ffU\r\nl53zFwpdA5Dp0vCsNottA6aexaGzmecKOoo=\r\n=Do/B\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.0_1653938234731_0.3108223118942839"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.1-ddfb899f.0":{"name":"ipfs-http-response","version":"3.0.1-ddfb899f.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.15.1-ddfb899f.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"87fbbf38470547cf82ced4c9fd2679df026170bd","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.1-ddfb899f.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/4.0.0/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-TBq/WlVTRqEy/Bf/z/WVMJOFiyn+cyTt7akiMSURZr4krOKNmTOKGxCEcRwR3WSpmhdLCJUfCKDMGEaY9x9qyw==","shasum":"022dd4bc3fa5570c783e2b8aee0ee79588d1ee9c","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.1-ddfb899f.0.tgz","fileCount":47,"unpackedSize":1982445,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYgUVyir3hpYXPJGNpi79+m52FXEjL1W7ZItrzyUq3YAiEA52v6787UA0RIylKz6+3vrs/ZfOXHwxBebfLlYVUb25U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilSGFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOFg/+IRRgVwGOolA2WPiPg9tUxAIHxee0Fep8m6iaRdvf3CUZWiaR\r\nIEaqKgwaV2TYMGdpkVa0kUyZ3RWAmTUllwKNQi7Uu/JnMLiXx11TkY+v2F2j\r\nToLuSDXACkjPLF19Y2HAVWDS8Esz4VMunRYRHHJNAVn+q3VJ2Y1e1gntuqFG\r\nCssQpAmYaH1mu8BThVWBSTetNRVQSbNjawvwAwtvRFG0gOQfNZeKKhFkSEME\r\nuKXk5OIcp3823vP9PqMcBY00AKR2Th7+wJ9YQAJ//TPHuCJKO+YEbdtHAEvB\r\nZBsgfPSP6C+f3Bg9ZQ66NXYtVEJFy/GuwL+6uTzpArfsOiFUMhTn9zl5Tv4g\r\nIbyzjxY5pvsU5nJglx+RKpkM92zMGP6LND3NMXvUNNzT06KOucQ5MKSJw8Fj\r\n7P+KA1lo7n1StwGdtvo8pmzQZwQpqkU54YkecGREPcr6Ylx2F16EbAd9DsLR\r\nb3W1szs2knOiwEyqybSsBI1iJq9RRwPaABUX4nvhfgnTqzgehMNzpBH5PY4c\r\nlOQ8H1Fh837eyDe2LJAnVyuQ0be391mM3AQtCbYAlFGCZCbfDosxyfA8Ot59\r\nISfqrN9kl/49h1JZqwOe31u0jtFWcMnFaUPNOscCz0PJ73ezFXy3jKzvA4oC\r\nqBMd1kCEEoGE08d9sGLNmwBiaCxqv/7I90E=\r\n=2OOC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.1-ddfb899f.0_1653940613230_0.9587520737563444"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.1-764b4adc.0":{"name":"ipfs-http-response","version":"3.0.1-764b4adc.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.15.1-764b4adc.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"e174046b9ececfd2fb7fffcd8f6ad6211adc7499","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.1-764b4adc.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/4.0.0/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-Pi41nAgwXlGg7dqii9vYq7MMKwCeIity0ItQ2lmAZyTImhMSncTnpHJheJVFPTTDaRUkja6MUXuubc4GsCCTNA==","shasum":"457cb6a7c911511dcddd37d10193639c9de51811","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.1-764b4adc.0.tgz","fileCount":47,"unpackedSize":1982445,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNdCReTIMbzKn4Vs1FgR4o2sgUpSQHsRDc0xsDyXNXyQIgJJBVnp1EG7sSSHYCsDwACDjb97OQMRe7tHjlBXB3mWE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJil3cGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmramg//cZ2ua2IGvsGKFvPDJK6D0JMUshVT4E8Tq90JnUKbAp3UK5u+\r\nB4elNXftUyY/yNrwJVUseOWgwsByx8KxKmSxBZ6JqEUDXyi67glZRwgC8H/S\r\nOiRtAOgK2Tu35fI4cIcK2uVnXCBFE/w8rudrPaD1UrueCVad3aseJxVAadu/\r\nwMr2K1QvHz89/Dfz7xNE8rGV1rSby1AH/bodluBe8AIHnZRz+dp4xNncBpj1\r\nMkMr85F1xylyM+nPB2rkWXEeuun9ua1p9NYlI4szfBo86IBSpEmfBXb6Cq2x\r\nDm3LdOwnTytL1Elc81BFQTKT84fpaMEn6FYjzoQ8WRSo+uuA6dkzMkuKkuYL\r\nnyqpmh/JJaVVJSmiy0ar0/VnSeOxTi9yPDJ9ZadeoCh6bV5wPjb1s4H81mon\r\nauJkkEcFpY6ww4RChfEGj2anKux8X22n6/by2EdfbIAPNxW9iu6C8pf3c/O5\r\n74YoNpdffiflucObp+IOr18ph/OJIpNMqw0wd/5Z2SZeENecsRGXK5YrfOUN\r\nvYmNVzcB+e3BE4XtJNwOXa5HaWTohSX+XXXXhb77Ai3/1jlGM65MJa0dGbYy\r\nleyxBoibkQPBVlkR2WnkOLpnuS6JDIZzW7Dk+zVWkT9L37RxhtdrZKPXE7kD\r\ntfWzjEdd/W4p8WQUIzGg/DezdkcfaMkMU/U=\r\n=STt3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.1-764b4adc.0_1654093574384_0.2096179516770078"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.1-be025c89.0":{"name":"ipfs-http-response","version":"3.0.1-be025c89.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.15.1-be025c89.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"624dbe983b6f235125107b73ccce5ca3e45cbe7d","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.1-be025c89.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/4.0.0/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-hTT6rwG7b12BSgt5Hhc9yVJh7K/z5zD8Me4T562xkG7L81LtBC+U7cNGw4NKju1m7+/YUFpRc7kr7sBbD5MnFQ==","shasum":"fc2e14f2a4f66135d8eb1dcbf7e42e14eeff8ed8","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.1-be025c89.0.tgz","fileCount":47,"unpackedSize":1982445,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEYuN+zoEblL7+jNs5NCQlkjXAMzWAxCC+QknACmZtdAiEAoAJpDQHR0SklBlyPRnl2ZsGFcyleAljW3dQ7Gfvcv2I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJil3g/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXcw//dXxYzhorLS5a0spRys+EU+oiamXF5Lp7sHRWgriMHg8gLMEW\r\neaemvHlaSGcidZq+XIoI233wAghKn83kps/3+A7OlkUxlQ7IfIfJHj+IKTjb\r\nSgLnwxdC0Kir6Aayy31O84UKGHdodJq5hAyNEBrc/AO8nhBSVD/G8+OZY7ZH\r\nF/qZbSmUakAFD+cDkcmdqHXRzXZesQ2+OrcWUxyPyBFo5ADfdAwX6/BfvxpH\r\np11vMTu1FsJOoVgUfcVj4psTvLYHbwXOQJLRzEqSn1B09hrcJHU4VSPAN/AR\r\nBJrtf8HWcLDXXIibOvpPd82VFDQMr5733QXmC5o9cXUsDcX9CTbo/T3gsirT\r\nN4lV+Cefp7N8Ie49E4qhBoLMi5G+2Soj77lxvkXqKZQXWS3jKFvtTvgiXbuR\r\nbYztZeXRozYEWEMEKFJHFgxtd2nwy9kNqaMBmKP4K/7ONqln/3aJsggWznTw\r\nwwrjrhhIhRyB51pSG5S7WECCOPuUOC3l/7Y3rIU/6O4kxdMhyH9kVKrypE1+\r\nv2oFHFSp+9Y9U3Dv+Kx84xoXryGt54wNOFJULOrcsQ4G4Ihuw6YgLphPeAoX\r\nBJTXv4xvYajRL+qYdApNKKKslCAB+zLIi52hqV/MQwkoKL+dYBAKkd8g4Y5+\r\n11BpLTgVErynq7OEUGUWmtKKqkBkle7zNDo=\r\n=rcZp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.1-be025c89.0_1654093887331_0.120946714295048"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.1-87e00a69.0":{"name":"ipfs-http-response","version":"3.0.1-87e00a69.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.15.1-87e00a69.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"4aa63330e4f3184df8f4d39cd0880c0ac903e795","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.1-87e00a69.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/4.0.0/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-EQpRoNI1+mGS5cGIz4yeGE6WBIGIBsCH0jXYGdoJGbxnY1zkDhtR8UfxazZ5FvJrkBitnNpEAc+JaHXIZi+BKA==","shasum":"5ce982e38fe8495d135097c98a87c003f47522ca","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.1-87e00a69.0.tgz","fileCount":47,"unpackedSize":1982445,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBiahXCT0DD8hel/aR0IojK/Y7EgWJoe2CmRkp51kRsQIhAOfrPenb+IvCrVMttZcpSWUAOhDByoH7ueCgsejM8MuA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJil3lWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo89hAApPjs6j889G1Q+b5G4Ngqew8zxZCqDnJl0tqv6sObW2DYMEvY\r\nPFKnp1HAC21PcVtbCqde53tFEQkRtK0vIMn7MzxcGxXfhsypor330Iv+IyWz\r\nkA3qPzKNufAJrO81Dc6KPaefmwXufTHiKOmduudxZZFTesJNpJREMYDG9dCB\r\nDp0QSNAlJwB9bYZbdpVLX5JfsneJKWOBFdtbZn71DmdKvnXgvNyAKFQqjKKI\r\nvFItJxdaX86ZtqRcBbKNAkWLzcmyzNfkmI38tMM4YGngI/S1/r/CtABre8EV\r\nffzRXt4WxXE75xso0dCpojMnfRZ+wYpD/RCKZhkZUp3/2bbzRoXM2ePU0wWN\r\nJSXjdFbEJcxwcGQ9B+jJOzgVfBuRvRaaEsdHnjePpIuHMT7fHBfxpcvd9k3O\r\n6NCf6fsitvM1E0ILAUQIt5ELzrob/9+XBrIAE+aqCZ3gJnWKVswwD+CrOzqi\r\nKSZqS+Qrg06LWowHjBunH2HlgdzEJdd6fYoOgm6Xmdyx4Wzu8iX2vVF0qZ1K\r\n4Fv6xZ6aagLfkw/Zn4FABp7SXtmEDNzWpnpddBAGh2EiKWI7JoatH0R1+nr2\r\nzeouYGEaGmgNi8kZeJ0mQgUaJSmTDQ+uQDM+urkQyBgsw8mEmmnO+HyWLt+x\r\nYMJNR78ODpDJIKAOtea8yma4G5NCNIjsGEo=\r\n=wkEU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.1-87e00a69.0_1654094166211_0.723402922661099"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.1":{"name":"ipfs-http-response","version":"3.0.1","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.15.1","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"548cfb215e8afa8dca64d3c38fa13feecbe577e2","_id":"ipfs-http-response@3.0.1","_nodeVersion":"16.15.0","_npmVersion":"lerna/4.0.0/node@v16.15.0+x64 (linux)","dist":{"integrity":"sha512-IKAVEi9Xep+eLieHZUh1XQbnCzp9WnxPGu+6E7mQUAxF4+TVfH4zyYPVq3xdMdLj2WFZawQCa1CpVe4JIBpL8g==","shasum":"dda8221fded833258d37b8d859dbcd9c8373b715","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.1.tgz","fileCount":47,"unpackedSize":1981937,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhlRD8ufafBtA/dXRWZosoiBXp2uxNdXmcpo3VJ/GVvAiB1PHaPcRUmSU1Hzy3qD/nwUjN7BbfVtVKETrdk9+kLyQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJil4LLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYxQ//dcTbMyJNeuznnpCoFAXq6pRW/E13MAlIa4Ok5VEVnyhObD83\r\nA/jlBw/gSAebvDi8dMmWeHRJfkQ4pAO4Bm4kQvY1W5LXYcE/Lb8RpHx9UacI\r\nfKjNsv6rvy59ToqbfPwRqs/gS/BpZUA0maswsFQBwMIVG35PYSW5Z6IMbfEt\r\nLA52+Y+ZpBMpZqjNvDVBvQ9DSSN6OegZcGuD7gW04RxRFxGjqGKjzyUXlmPz\r\nBJQ0zsx7o/k9595+NrAqjOXQOlj3bUrlKmyrtAuB3MlV99MMDitOLP0pjWiS\r\n10oLIIjREzb+HdUV5mfVh/1W0lFOayhKHPJFNpRogr9PB49AUD9peq278uWz\r\nKcVbcdRxkvpry64+f0nRwTtq79M9Vzr/8Y5F9lfodOvTfSos3wE17Mpd2L4b\r\nZGgmpzbeXfSAq+DD9uOXQlcpJiKpLABhz11lXxXxw8UJXh1pmNuLgb6AQ34L\r\nIYNlQ0m7xLlYP1F5uqNM5j1kVunJ5AH47rKMy6r2IPLNeb/f4+l2LHqkMSSj\r\n4myHt54Mz9NhcF6oLgwP+RVF1V5KC9C32hUFNKM4ijMMjmKDSUebCNhpPD24\r\nIi8mxfMgqZELtIlM7SphcPmvFcjfVb4yRrL9Ae31fFv6or9EIacTWOEtJAHN\r\n7cr8g8XZwtJN8L91Js5fAbDxNSGvLQ4l94g=\r\n=VAHD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.1_1654096587206_0.13271308488395794"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.2-70e142ac.0":{"name":"ipfs-http-response","version":"3.0.2-70e142ac.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.15.2-70e142ac.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"1a6e6bef85bf35b9328b61ce15d312f1961f5fef","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.2-70e142ac.0","_nodeVersion":"16.15.1","_npmVersion":"lerna/4.0.0/node@v16.15.1+x64 (linux)","dist":{"integrity":"sha512-bvWCk/SqbmzGtKvUDDb8NT1/ktaAYpL98YmWRDaGOqjsGmCtZvY5Y9Ad6TfkNHAcqQzRII/mGVDJzIc018w2lw==","shasum":"cade6222982bd7e11b83fcc7385f6a6f8a028d3e","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.2-70e142ac.0.tgz","fileCount":47,"unpackedSize":1982715,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPZqFEaXSzGH4WdjLUkKSyPYbKz3VQivEZBHBIWXurjQIgYyIVEUYJhuyjtaozhtYrt/VtVnhkpUjmooLSUySXJ1Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJip18bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpg/A/9EyVs7j5CSpqqFwiRakExFUQLmhNhh97HQ2RPD2WyqHZp/4ef\r\nGO4bJIYn1VP2ezta9Vlq7KoJaYIaf+b1FDTl9e9OLv94DQYUgmeHmwKobGch\r\nHlBl3cZ30RUZO2wS5Zlwk8k+HVz/gejrsLVRrFBgxP9oRu0et6sjKtD0DmxK\r\nLC8qn+N+E7u7121d5maUBRxtwuSzx5SOcgUiG1CzfWXqUlmT7y2OJ+jbrJux\r\na9YtUJd5yjbDWNM2HtOdKiJfxHPKxl507pKlVP3xLPfCS3hv/YeOiFyedMzs\r\nH8E+2RcBltl2e8Uw49SNzrfkivrrGloLdhaH5bAeycqZ3YazG9yQpxCaSHPQ\r\nRp/Ir8MMp0i4APNMQieTzq29L0MdUx04qY6xkTp6qIlDEVk0Cod73p5SdBWf\r\n0WYtJbR8MHFe45J3U10AmMJZ0xfi+Tx0Jr+t2M9wodcIeTbJyX4c6wcGpdp6\r\nw/Aayd/o49iDOIjYqjbvuJon3lkmEzJ+zV9awtYsXBh9qWNWQxcWSBTYymxF\r\nHH2YL7mXcluyEdHtVsdXJWeE0QL+USDqCe6EGloHkj8ECB3H3tokB344R7HX\r\n3aZEISDsKQn7auOP1urvNPmjMabHCQ3SgHx3cc4k5GVyF2DuqAveWa/LHoXv\r\nvlhwAa0B0/1zXWjsqqMIi3kQ/CSBj2U7yog=\r\n=AsG7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.2-70e142ac.0_1655136027009_0.3525601810135528"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.2":{"name":"ipfs-http-response","version":"3.0.2","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.15.2","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"0078aad85f92d7bc8e3a22eb9ef8efd257b439b5","_id":"ipfs-http-response@3.0.2","_nodeVersion":"16.15.1","_npmVersion":"lerna/4.0.0/node@v16.15.1+x64 (linux)","dist":{"integrity":"sha512-Ekq06L4xiuQ3Eadhs3matbtJDzZBfpMXPmGsNrNCNlouYoIYM1sSJTpZLEl+tNLaPJ53dUOd5FgoJxfQVIrr9w==","shasum":"343315919b8d9581349713b4deda29e5110f3d00","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.2.tgz","fileCount":47,"unpackedSize":1982207,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICudOZ/9bFYTglCCw9Kgk4nwbQIjYTZLAs7n8r4HxMeaAiEAqUMOjk722SDzsYBqzE7i72Usm8DFKjiLrFkwupV2Yhs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqCnVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMlw//R5vHuagmu/YEsHhHU0ru1ntAWTd319F+ygs0iU7ZMzs3kgyX\r\nQxHyySBPPjUEOuG2wSgzG4cqyrlM5C2II+1yzFsq5HhCc6iuKDiBeBJpHG8h\r\n9+tVQ+0FT9lZafSKVniIVLo18TuObK3qS3fIq58nPXFH4mOhl/Nl8hX8Mz1W\r\nzFjslEOQl7qt7fZY46ZB5S6nX+ORyvol3i0FGd4Sr6nTgS11BoLsGOE9tHTo\r\nrd9abNj2/o0F7FiQRWQKNIUxzPbWkVjvTGbU3iDK+RtwLZIfqzxccb+jsJ7u\r\nTjdnGesN++sWeN2mc9xP6LEV3AhkM2F3iJrDEdh+HPH5bNUbVTBBTBY+Vdwx\r\nAV099SZwW71WhUDeoSUQundo7AuefRNgGlMCkjGAW980pRLRQ3ebwV+bZOHz\r\n5HDkH+uY5HDHBButKSPQ+8c4Vv0zCpSebIWUFqyJKd2o/tup/6XdfKkWrwNS\r\nPvUMk8bn1khadWl2ueO4eWPfghTZVyTYunvIiUUdd9ii2oyT5t30qfP7bmlH\r\nMd2kJ4F6yNTodPRnFzTznJo1wJDoZ4HhkzZ7ZqJ/KI2t1cDexElHBAexSwXK\r\n3+Mc1Z1eGhkvxNPb4Q31LWRcLLImKXoqAhwl74++BpTkihzUflW5TMnmkxdx\r\nT3h3OpmdpDomvkD7l84HQaLhPF6W2AF8gtA=\r\n=O88M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.2_1655187925175_0.9540360391621583"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.3-7be50bd1.0":{"name":"ipfs-http-response","version":"3.0.3-7be50bd1.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","global":"^4.4.0","ipfs-core":"^0.15.3-7be50bd1.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"8d1e141b6d72e6dca9162859d36425eab90d8b12","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.3-7be50bd1.0","_nodeVersion":"16.15.1","_npmVersion":"lerna/4.0.0/node@v16.15.1+x64 (linux)","dist":{"integrity":"sha512-3sp5gFnGNPZAfy77TAg/dCtvfFScic4Mn6FP76jAEx7Eef9dY48QIRPtokknk8BMV2sBx5hBJCPz0P7jn5wnuw==","shasum":"6a0a7204b6a751e1f1ef815ef25d9cf523377266","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.3-7be50bd1.0.tgz","fileCount":47,"unpackedSize":1983973,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLG8XC/Iq9TA0o78lIMK9F0NoNJtRj1pvr3N0LS9sSjgIhAO1vhm6ABWz5wxlF5z4dD5F1E3f1z4OsR9QLQAa0RKBN"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis1XtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokEQ//VPD1jkJ5B5PIh2aY131wdg/2x8aPQa3xtjWNW+psWSBgXPld\r\nSNEZechijGQFpWNnCnf5L0DF6sY64vJrLuT72XbVZ+3IEzsq+AGK2WqPDvfm\r\nvPMmKqXFgAL/G+mD/ISB++ATrbSlR2UExrboE1/bVMNBlbclyUzuC2hNq5JZ\r\ngpCVuhArZRnK+0AXJQsJWr4tFL52KqDsJvFaGioL4JnEdsZAONxVmZwF11Xf\r\n62ZazIPWXcLo8y5uyflakQj9QNGdU0GoW5uUcOwzkjz3zCgKi+VKtTaOFFeV\r\ntbPLqWloTqe8pSWqDJibhPnwxVZRWTs07lVQDtz1MgUt1/ZhtxsIYdb+CUgN\r\nLqSkLaT4rQkH+pTGAcSPRroTWav7rFBFiVAqvQ/xeLD+FRVjvOf3UemHPV0u\r\nE83WrdyRdndRZSRN9IVU7Z8lTQWMKQ4Nbkw5259G4GlRGmD3auDZDFhSe+F/\r\nCRhZLbA6kzNOiaX39Ms2jqBOSuW1XJl25cBv4TvCvYIZKFP+1J1PzcLPJF8m\r\nHGmOHKWvp5ET4RhuMNSCsJveOOUQicldJwe2nCIaNjircPwFArcdKU0Uo2Gm\r\n89UGTD2YbsJNNPcr2mcXYCiXUlH5Lg/DQGU15FGtndWFyF07ag5vV28O5UMj\r\nwh2xJFgqfakrEMjHwh9Lc0vgarfiLcCs9aI=\r\n=Ru2N\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.3-7be50bd1.0_1655920109612_0.1955631346345028"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.3":{"name":"ipfs-http-response","version":"3.0.3","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.15.3","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"c1cbc810679405d5a5c0fcca0c5c7aaf023b2d22","_id":"ipfs-http-response@3.0.3","_nodeVersion":"16.15.1","_npmVersion":"lerna/4.0.0/node@v16.15.1+x64 (linux)","dist":{"integrity":"sha512-cI7sAI9+kNamATBRwIKq3xkBuk0IzMcDkV9tj4eVcd8LAkKtm3jNE57AEEuV/NAXCmATPwguzAh2NJ3nC/qe2Q==","shasum":"83befa97804eeabdd119fcce77fd770d6e9a2ac6","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.3.tgz","fileCount":47,"unpackedSize":1983461,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClmHjzlA3mL8XamsmjSrmK55Atob2I009Za4MDzaKv1wIhAP3FfCF4WHadAyoLdol8Y7jhx2U/oB4Di5dVuW41qI4v"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitFZ+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqacQ//YUIDHjTcj+vNNyfD8NmIca/6KQaEtikWP6XJqY6GkzCZd/AO\r\nJoOmH1cuuoadAEhlk1mqy8uhzo0mv/jd8vE2iLwlRenVoOZPfPZ2bggO6Kxa\r\nXFn1turoNGwEQ/57wBGdnTjx1G8+5NW5MCALeErPeBHj+HLkH6Jn9sauoJqg\r\nC3HYlZyR/gWE11qaf4wsoV8LhYEW0vcROTohLdU8lm/OtEt6kBkT6Pl8Ghuo\r\nZWH9+8MGz1HV82phh6wKqu4RBsFT8ilLZUzn9CVihdYXAAdl7G9/FIQEHGJ1\r\nbjnzcQZvrD+wo2/UmhKZrTXZrOjZLQcg+yb7d4QKT7e88jfmFhq87wnO2TjK\r\nUq9WBPUHbYHGvv7adx4jecv2Rvp4+r6w3otD3Luw2/XnUE574oi0a0zZGi1A\r\nXPyh6QYJF3nT22fejN4/YD1W87UPmLjaLdKrP5JNqDlwjFeRT2Ifaz/7q+DH\r\nYZZ1lMBX6mMc5W30qyKsiA6M3AENhmDrkFWTF7WJm53QJDzPplesZG5FdczM\r\nrCgoAISkHUY29QCBgyJkJ3JkzaeqYbA9sPSER8fWcbNP5VFarLnzOzgBEQBU\r\nqjGZoNX09sv9iK0iWXpyM+n7aNalB63Bw2YgUGehv8HlK+oXxa/QoVyjRIIK\r\npcn3ILgqhHjGwatjbz92dgGQIhXTpyLeeWQ=\r\n=Tkjv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.3_1655985790471_0.4200043323406317"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.4-00bd3dd0.0":{"name":"ipfs-http-response","version":"3.0.4-00bd3dd0.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.15.4-00bd3dd0.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"5e5669eefa320838c4810adf62356b0039209ed2","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.4-00bd3dd0.0","_nodeVersion":"16.15.1","_npmVersion":"lerna/4.0.0/node@v16.15.1+x64 (linux)","dist":{"integrity":"sha512-jBf+Yu/u1l7Ob38u5XHHO2ZOilBRIeNZ8MTtKPrcsR/2ylWq3podFRfsGB/IIfF4gI1Uuee5P5yF9tnw0chNuQ==","shasum":"7e267cd5d2fa02a36aa6030903dcaf005eb89998","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.4-00bd3dd0.0.tgz","fileCount":47,"unpackedSize":1984233,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDewdNpSec99nIF0JDpEhnfuUuPTBRkA3CawulvGRxH4gIgLHDxk6xR9DR0xg+B28NUZwMkXLliTbWkI3rKN42HADc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitYRBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpFQ//XNKi5csnt56Emh2cbUaiv6YXES/grt8j1mRT9na5j43G/Vrb\r\n5C6S4ls7mFYBQPe47q+SyphC+wGf9MFRdFPeiZmmVk0lDwSJ/5t4DQFA00qO\r\nPNW2laZ+ieyn+zP73TTmWgWpsbEY7i6Om0Flp+xp1znDeLZgMKltU3rgdCu7\r\n1BF2doSIeg3uM891lp9Pu8OWb4X4G+yD2LpZ34wF85vp2r5jwXZJe8P9BK14\r\ngoJM2CKPe0DRbeFD70TM2QNWZkkb1tkrWIdDPp3riAQ3HORGPvaQ6vbI4NUg\r\n+zhp0cZix1Zfqngiubu+iQjwiFQ/Xy/nDQ64eyFN3nTwk4Xc17WPiQvnrMdr\r\nlKovghzfzomU2B4JDRCi88y8w5N5dZrd7zOSa4IhwlR7QxzjFZ61ZfQcZ19A\r\nutg1M2gZu/N8g7dB2Y5Nii5Lfg1PhqcLb/ZCZ5+6diF51FhG0QuwRcgB07SL\r\nIveGgPaCbBI802Q5xWds2XdKTzX7vOXHNv/AaBQ1qgpsc7H3k9kmDsrtf0JV\r\nNsKiBxOVfVMAFFR/a/4MWdSV21JqCeZw5/Tr/lBn1RvjUEjr6Nuwn8Ouu64s\r\nCAZy0S0Gmkj9dUMy5P0Y09CkBWTpnfYmGBEm3ZDYQg1dy/ETTNUGzykZHcBN\r\n486JMSPwyz7uFBQIdkFJ/rlLmUz9mENFv9U=\r\n=5bFj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.4-00bd3dd0.0_1656063040996_0.9236659903505562"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.4":{"name":"ipfs-http-response","version":"3.0.4","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.15.4","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"965f5a4e00254cee48fca2127d95209deaee09cf","_id":"ipfs-http-response@3.0.4","_nodeVersion":"16.15.1","_npmVersion":"lerna/4.0.0/node@v16.15.1+x64 (linux)","dist":{"integrity":"sha512-+2Gii7TVNC1/A1akjOvbjVj29ZzprVUtkyLZWOzB4L70kxS5Npz2sKUOJE7Vk5Cvlw4Q9x/I32YN3mez0+LndQ==","shasum":"b7bf777fba346763c1d524494dcd838631b2b89c","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.4.tgz","fileCount":47,"unpackedSize":1983725,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEUAl4+/y6a0/TeO0A2mb7RN6+YOMfL3i+73wVaTBrdNAiA0M12W8AxeEHli2SGy0hOCAYuQLP+xsOYGb1WVqKynNA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitZEXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6ThAAlOiY6psRtoMzGmmtKiFLQVo57tWIIBsvoc0C7IkqtjzWux5J\r\nkBb0+S+VuZfz/3BtpXeNofqj+pnLf30KB7q3Nx6ramZhQXpt9VJDh2SBYi9D\r\nZ7vqLAnEcHxpcJ5pMZsXGRB8lvEzSNwo4+IfNkuSGRd1EHH+JjllVWyPKm5U\r\nwjnmOy65loK3QjuBHAH3QDBdNMKg2woyhe6Nol9FsGrOELAwCWyWc2PBHLgh\r\n5e/0YpD6VdU2xqD1ZeSvnSdL1ND9UA6mpeH5oQfofy9GUQDENwut3xSd9S0O\r\nD6eLfQgxN2fPTtCmUkyo/QFHCMuO2fbUdebWfagqvlEjbz3DAAoZrf0adYX9\r\ngqafkSRFXaLhwOCEl6aMidn9CRrvnAQKRJOEHg3nd7+KnZQqOr9IvqBSBtg6\r\nuFpiOS0OYVvw4KhFwL2V3AqXnegT6lQYAZV15q+UXzzJFjtwfK1kia7OTYqW\r\n0+KaXbn7EPVBH9Xnz0Kw+9pRStxrnY4xkGE8B2BD7nVuHvQeHJxviXQclGml\r\nq2dlfMRhNZkAwiZ/rpWAQ7dfmYBA2Mhs8m4Sea6Y0DGRFP468u5YCptUi0Rg\r\n9x0+zhiIks3wWp2dJzKef6IzVXxPoTLqo2r8nshl3gVmys/wvnwPz6XNHyRJ\r\n5HVTCTAw3/TUW8iA1aiaLIertIYblwbGPCM=\r\n=KZ9Y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.4_1656066327422_0.5264519394852105"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.5-a05695fc.0":{"name":"ipfs-http-response","version":"3.0.5-a05695fc.0","description":"Creates an HTTP response from an IPFS Hash","leadMaintainer":"Vasco Santos <vasco.santos@moxy.studio>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"type":"module","eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"exports":{".":{"import":"./src/index.js"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"browser":{"file-type":"file-type/browser","fs":false},"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs-http-response.git"},"keywords":["ipfs","http","response"],"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"MIT","bugs":{"url":"https://github.com/ipfs/js-ipfs-http-response/issues"},"homepage":"https://github.com/ipfs/js-ipfs-http-response#readme","dependencies":{"@libp2p/logger":"^1.1.4","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^8.0.0","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^5.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.15.5-a05695fc.0","ipfsd-ctl":"^11.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"contributors":[{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Hector Sanjuan","email":"code@hector.link"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"André Cruz","email":"andremiguelcruz@msn.com"},{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Pedro Santos","email":"pedro.santos@moxy.studio"}],"gitHead":"06da5952a6d61e890ae37d305b99a5f174a1555d","readme":"# js-ipfs-http-response\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://protocol.ai)\n[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![standard-readme](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n\n> Creates an HTTP response from an IPFS Hash\n\n### Installation\n\n> npm install ipfs-http-response\n\n## Usage\n\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.5-a05695fc.0","_nodeVersion":"16.16.0","_npmVersion":"lerna/4.0.0/node@v16.16.0+x64 (linux)","dist":{"integrity":"sha512-yPO6JGldj1XSDLn6+nUyMnpu36JWJAKLzmctgsku4JVUWnTKftyVJ3roKjGOzlp4mF3hBS2a12bYZdJ8b1ZVHQ==","shasum":"aba87d83473bfea02a6cbc26012bcb401a4ad5d2","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.5-a05695fc.0.tgz","fileCount":47,"unpackedSize":1984497,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmtOgwfGxEzq2/nU+bH/k7Ssc2cVW0VfnTnv1mChwAxAiB01eAqdXvFUjWG7k4XgS68kH3fcUMB4/TYJacv8yWiUw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2AGFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGMg//ZSv88qMAyWchaGtDqJ5m+BpL4/yL5FmCwCeGs5OznFT9KC8l\r\nGlfDmKz7iZs+ooY2OOyDfV+2AYLuLZeY/L9z+hxi7m83Qg7HDu1QvHu+HYSY\r\n3Ej25UE7g7ofSXL8IanT5rW/QUBx45Olwfvt+cJd+gzwTkyoBdvol0g//5kz\r\nqpPMr6t7bbDYlj/wcVTAqW2Cx6/uaO5MQbkY0SR8IrzolUaUoDw+SCLAcDiH\r\ngJprzMvPxp6bb7oAcW2kufYh4ZCdfMDR2IJQmsLiRBO57yIP/Meyp3hlos0Z\r\ndSQhYFOk2HEkDuY2CPCWCSduOjOUFOBBJnUxFPfhl2ecYgAbFD+brdgSC93y\r\np7nwkGea7J49vGE8w3DiJdXoV9ARfMGvuZFhi8cRUMV4btK7+DcOGSQyn/fH\r\nlxKgWnFFlGyRka0+IshKA0az0fIs5BAqE5bbcvXSDGWr6ecNM57xoy79bqQb\r\noB8ftm48IGHZV7/LZDLwZD4VjXQDa9qxohDJRBC/pgZLhSxxP0OGwUOR7gLT\r\ntwbzWFr8PLwffBYSfUGuqEGMnTBqBmNiLlKfLOZZytEva+0VjfSHDFDCGHYn\r\nc+zSjuYTnbwL6WKS9ETJryFXjtceUR0e/EgkLdLICPBumdJGAXBZ5J4gASWd\r\n/mvEmU1ykIerLeVYmmD5pd1yYnC6IelRUbg=\r\n=4StQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.5-a05695fc.0_1658323332856_0.4184598077944417"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.5-39dbf708.0":{"name":"ipfs-http-response","version":"3.0.5-39dbf708.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.15.5-39dbf708.0","ipfsd-ctl":"^12.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"a2f1f57d7993d04b2d19c3d7ecbeecc95a54d2ae","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.5-39dbf708.0","_nodeVersion":"16.16.0","_npmVersion":"lerna/5.4.3/node@v16.16.0+x64 (linux)","dist":{"integrity":"sha512-Osj/VOpQ1ZJFN2OnipgfXiRlsJMydeRCv0aDElHMUHBOZnLAstpcGol3w3aKjWJpfDCbYJl1bFFgvpJyvO5bBg==","shasum":"72961dd5dde105badb4418accd669422b4ea8fb7","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.5-39dbf708.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDj+ZVDBBo5jEmNXhfCOmx7UIMSEIbgGRFnJJ97tSgWnAiBCuUGcZ5yUzJLKXMpWYyHfpHZh0Ujn7R+T+01dfUdCAQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/WDoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqR+w//RFNkMj+MumzgdFUjwDvmlXLq3+8Rbk9cR/Pf6NMWuvMfE+kW\r\nLpBSTQY3Ebmz9cjrntAkI2+XT1fABU982PgBw5WCAjDBesE79fXV0K4d/8fO\r\nOq1GekiSOav2/1veA0tE9OZvpgkCJDPHbluUHv3QZAuit8pYjlvvGws/GSpi\r\nXg1kZVgaUcvk/rc8/o2lbkjtz3ptCzFnbhcWu5LnhtByVVM9rNJKyBimWTO/\r\n4oQt6guFLkU7IxVODPXg3EApLPzdkYSSkQ17D+8X8k13YKTo3cIBD9bquOj4\r\nh74ON1td5nqAqIBEggrrGecD0QqePo6vK1USph+XO59FOMSlem1lRwMNr8IR\r\nkRVUTqgG5//rRiVWs7wNxAxYp4eWb8btVaEpBNwnV8PWeAoLilTxoF4mmKn1\r\n7F7ACsQrj9FgvA2l5N3QATuhxT8xMIpdO6m/uwhaG2J3qfhoAgPY9/4Y+qBR\r\nd5P1NWL90DXmOkTFWIJjtyurAxb85e1LfXhPqGfeikvcrGkP61AmJllHfEjI\r\nLJHamBZ8lK3+LdxXsYe97ktmIq4RRHdVk5JoQf3Oz70UA6ac9TqijdwfvQw9\r\nQLYqb8wGScZEr9xSNpPb0HcH+g24CXSmtYlB11ORrOg3c3P0NyGrQxo7VSPH\r\nYp1i1ROY9z77ZmGkjLAKyzgUVC/QwIUANj0=\r\n=5ssd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.5-39dbf708.0_1660772584078_0.10216960017880372"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.5-8f351a89.0":{"name":"ipfs-http-response","version":"3.0.5-8f351a89.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.15.5-8f351a89.0","ipfsd-ctl":"^12.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"59229f179fc680ee9075d2cc8deeceb7ff1b27d8","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.5-8f351a89.0","_nodeVersion":"16.16.0","_npmVersion":"lerna/5.4.3/node@v16.16.0+x64 (linux)","dist":{"integrity":"sha512-WagBtpGn0p15wbg/DjXnz7Cm1+whoSm8ziuYGKxTblfxfzHDk2/s0vMB1S5FWH0ICJjEGl60ETbEBbQ0k5euXw==","shasum":"1cdab061aa6f9cb49436782d9958c1280c57694f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.5-8f351a89.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDU5Xujbg7Xdvq3UJZXf5Bf6VH3zj4De5SQgbW/l7W9dgIgSlWWS64f6uPtT6zZbW6WAAobq9FPWZG8jiY/2K7gxYQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/XdgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUDg/9E10p6inykmC3yl8P+1qx2R/IHMnLfuA9GOZA1lutiVQaRB+P\r\nvAXfw/0Ap19feD7gW8Hj43yrG+fSGjz/48DUswd/uP/GPVn9BB8gILA4LcY/\r\n+gUduVpYALQ0ViGED8EexE/wGrb8pRaLy2/5VQIbnXVtn4sdF9ofvvluS1ju\r\n4tm78kcmEyIh49HUTNYcOUcni495a2AizcN83TMsRm+vP3Ruyh7gtAdYzk28\r\nQFrLCU7fyJ2bWPWv/+n9jFMCDZVBuaSr6lt80alncAJif4GkBRocOj4rEiFW\r\n3UFmxVR2B2lZK08yi1M9tuAasND6Tj91EEItXpKOF/j1ZJhWRqXBeNb/SB/2\r\nQGDPpMX5dn9RPO5J4kF2EIP/i47ssIIJ6OjLJP1NBLM4zzuVbnm2WRrCGN/3\r\n2V4QiKFWsBg8Iddd47mPWRJyIxRFvW/HxAbGXmkX8IM3IspE+cWd55u9J+f2\r\nW3uFI0I0MhYym7337HwQQRMoN1Ofa2PVxKqOtqkx+4XDYsbbZi7adsrj1LDF\r\n2USsQ0ceOFLCePpWIO+fAWbsoYIS7iTfQ5loh8/NVJaaJf8Lt3h9EBWx969E\r\nUevVGYxJS7oCtkxgttbbnqmXrnn9sA/Wa0DqmH+iRZbHv0cW9GhwTTNZ4BE6\r\nPr12BjXdoRXm4NkUl81MdTpwsW5mkWsvKxc=\r\n=hBte\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.5-8f351a89.0_1660778336532_0.2816593607514204"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.5-83f9882e.0":{"name":"ipfs-http-response","version":"3.0.5-83f9882e.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.15.5-83f9882e.0","ipfsd-ctl":"^12.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"368c95b50c87246f0c5b143b79deaa4329d0727a","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.5-83f9882e.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.0/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-EwqGE6RMjW3co+8kaFCJXTmBP4yMCyHOU37GE+QDDCa7fHvEZFeGptAXKQTO55SYK0iJzM3hgZkm3YASL4HEEw==","shasum":"e943eb38a7e8402f1bc3a75035d333dc1fd30200","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.5-83f9882e.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwxNu/ydBGxNgrTe+GbFfZCCdRDsYLLpihnUmxld+d8AiEAgUVW+gi9HD4iXZ5cGdsBc2G5xTRKNYdz/ccbDmRThRs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjFy9gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBtw//UUHaG1bvkhbDl8FttSggwd79A4HF6yJSqBUrGyO8VixzWNu5\r\nlKeAc5hxJLbH5BXjEb+nn4zIpo6yBOmBQiYF6hz7O3fqTnM6b/Acdk4DDZU5\r\nQa8OplM0mkuNuQ8UtjRoxeKG2ZpFfHy1ok2gbYMeYD2vPiv6ZEy8efoxPlZz\r\nHc2nwvx5gGDNoVOjrPjtouuxiDPMvz9ni1cWx4fDfiI2OFwhRNWCjklW73n6\r\n2ohqkTsjZh2X16Z8esNUZXwh77EiJpak9M+skt5ygWvBLH3Uvjcm+q+JAFIt\r\njlHEna9vd1hOF7rREARCKhuH95iqsCQDYyqIAfDf25q6J46l3dorz6QDY+aU\r\nLQxEvLIYPwDSYxji/Qe2EZ/Yj0c7g2Q5Zum0YDzQig6JhlstPXVakz5FpWAZ\r\nnRrOymdGfwE5wQ0+22XTX2/I0qkMhgP9+zCNVOR/c+2SqxrlbpWSKEzLUGPN\r\ncMbI6hRGf0I5vSkR2bO61yWyQ3iJ4bpbfGK4t0lEIfk6nU5iJi10HEJzwaOi\r\nd8pb9I7LDnt7rJUxUJ2NrNdONfUAM5IRsSD78CWp7CpjICj13ZO02hn0U40/\r\nep/lZHAYexjaTDz3N9QepgDt1SYMov0yr1O1qeBajGm8NBEfgu2JX/UNaRQ9\r\n7PprsYKFDttS/X0PzLPXVfRSy/IanhOrtg8=\r\n=/Khm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.5-83f9882e.0_1662463839837_0.08237594576607021"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"3.0.5-051da161.0":{"name":"ipfs-http-response","version":"3.0.5-051da161.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.15.5-051da161.0","ipfsd-ctl":"^12.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"262c2c4e56b8de0c602251e9ea0ac3546fd2e28c","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@3.0.5-051da161.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.0/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-fmONqfj3053Fhp53UwMXMJ5RH4dyD1ofxMxVzSeV/E1KhRmrN0wfh9teNbhzZsyv1K65I2ymtMJ5dASLFFiL2g==","shasum":"fabaa20e64d5df51f6806ddbdf3a96f75dfa5bf5","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-3.0.5-051da161.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWzpZZYSxPXJXXpSnGsDwj/6XD/BYjcvOwo4HyNjKAJgIgFm3pNZdC9xPsTzSQzi0EfCmO0Wybhy/PwkpMUEVa740="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGJTIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+2A//Uf7MQGnG3kqj8fp9jjhUNVuxwUdrjVqYAehfHivh529GtgYS\r\nMBy/DGLfJ8MUFvHyu6v6Ecy8vt2+8vpJGuVOAlRfd+/xwN/khx11HGQ2pNkc\r\n9MVN6nZukjfNsmQiT/9i6YB4Dvhtw2GUEAaYj5bDxDvcGheA7uEVMGXeP/Wm\r\nSgt7MMTTzbenbZtfqIIuGgMMqF5dcjd3PjoVXsyqWuO25Isze+dfal5SirGP\r\nMzYQ4EtQfhbCJ8krKJjQUI4EBiWyWm8C18e2yCDw419YV58Y0DW4NooXH9sm\r\nJAyTj6t0Jlnlf4tbAqF5lQmgy9EDMAI6VVpKV0lgMv3qghe1X7Hz5jivRrz1\r\nDuLUuGa5VnU3IAOjGTiHGKiAYKZqGhNv3/gKo+zUnfhtVz+68lI8YOYuqxJs\r\nnyDezwy38RijTpOTgi9nPS2X7iP6PLKk+8/HsDWrkpAZkYB5T1p0kQ9m3k5i\r\nMZguh64asqPpduDZtMeHJRjMrzlflGuE2MqKf97N3DhJZDjYVfyn9mXPrEMv\r\nKvPd074p4ngTEIfnTByma5Z0mKzZzVPbkmE0b/4/mclqBirXC6foQg/lGB0r\r\nBupiZVn6WsILUy9uMjFJm4e1lM++nnw2+46bX/2gFlYF7ADVKyGeooi11LUQ\r\nrgvv1kpeIS5xKi4g0WrmXftBaF3tDBxcD7k=\r\n=1UfV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_3.0.5-051da161.0_1662555336313_0.9777424684813918"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.0":{"name":"ipfs-http-response","version":"4.0.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.0","ipfsd-ctl":"^12.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"89aeaf8e25320276391653104981e37a73f29de9","_id":"ipfs-http-response@4.0.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.0/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-a3LjjIka05cLOrBAHZOTNKzafzl5vJSxsggFyUvLM35xat6XfkVmt9YLxMyOIcQXc6IxskGYBWPkktqBZnUJ0A==","shasum":"2f42ecb7ce6fca8dfde80380dba9895da4ffaf98","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.0.tgz","fileCount":21,"unpackedSize":227338,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+egXrBoN7Bq1nnnQ9gRpLn1tUhshOvOXJSBc1AfetOQIhAJg6M78DzTgLJGUw/kImRI2TEjsmDYfRaUQr0p0LPBnh"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGJ67ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqn/RAAkBOfkusHXYsdc7YkkAlnXBvZ5RPRLlgDzLnSM98+fuHW4tQn\r\nBDFvRsk7N07QbSfGSKI4YGi5q5XlEPbELeWJMSziXDm0AW7H5F6HqQXgh959\r\nDeQeIgA96wank6OrENPUyqwd10CLlXBz0aJINHevilWarxHDuYyUjRzzLdII\r\nc9WFHrzyCtF2Qnnga6fadV3cYMVtu0f2ZB82lO/41685yfMBlyulJol9chbp\r\nvfWsHw3Z9UYIys2Wu3tBOBhdIpjPyL6lkh0rtbOr1wLvL7vwehIXAQKh0VKH\r\nPaaAryR7YeZA0/RVUbCFARYEvM47sRoL70qbIwmztZ6vfQx65eXL5n6ccjo7\r\nLs0Nnapr6VxT9rBMbpZ3Btf4UnRIH2bCWhz1vyyGYCIYtcnnuOEeooY/24qv\r\n1UKUXAbo4+1ZaDnjRlDe+FYPgtA+orzxcQa94lz0OdbM48YuREHL1whcPcEl\r\ntCiUl/nGOuDJW4AHhshP2gqKBi7n3MI5octkXYJABD5koOnrQfVDKGBvwN1X\r\nCr3dcIePdHvWkJAPCqoKs7ALARe+GMQrnbZr6t8Ezb218tUEUJQ438TGmOcl\r\nf9ZcUmBenDwTJaZikKIIlMhGZvk7JtjPeB+mxNfIpIc3tF4youjhr3UfaWvt\r\n9TbASnAvfhapbVDuqnx2OS2v0yv3LoTUBZQ=\r\n=dblW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.0_1662557882802_0.6475781614420442"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.1-b5456882.0":{"name":"ipfs-http-response","version":"4.0.1-b5456882.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.1-b5456882.0","ipfsd-ctl":"^12.0.0","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"bc139649f4cd3840696282fa6dc6b241b9ea1833","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@4.0.1-b5456882.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.1/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-H0ZQZhqu3p26hAlITiPeVx0hyh0F7Q4EGmJKsNdTjNgEPIFvF7vKeF8wuiyeWhtKbTzH8wpwKjNUVIyDqpfJoQ==","shasum":"3810b0c7ea3ce5b451b99c617addc1069bd18a1b","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.1-b5456882.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB3WIfaj7Fq1G8RSrEWYNrZkkH03gJ+KFWCoRbCeCkYXAiApmQFQVnZ3hlaQw/pq9GVcBhoNMFQU1OLavBehM6vomQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJEDFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpMw//Z04oC1C3V4gjG7dxz8xehqOkSFOo6g1SunRWEr/+DT0WOfOB\r\ncr9tskDYeNKN0zkPn4+FLN0yWoGU/xPIZQbGR6Cptlc1ebukag7KEC+v4Xqu\r\nJMsX0/0d26V+az+XZKNIWIaYGLaie0ULLXhIQnsVyq5C6Vb2W5afUJmCq/pP\r\njTlBdwH9lxn3f5j//puJ2rNnGNqlu76aWGhdkjgoUzKrURfkgfB1rl5Gq4Ck\r\nhZOXOdqkbCgOuEpuy5Oj293cO0JS9yJKp4+J3hSJOrnf9mgdJs49bhkfhlUX\r\n7r3jxAh5SrxkUCWFy0WsVP6x3yk3KDuP0DAv+Pt8iPjHzsv2Yl6HpdBl8BD3\r\nLezmg4d6kpvgr4mi83CTfZpHv3VswgjuaYjxFMo+Uht+u37zRZpEvpsh8Ht7\r\nAkijB1JtrF4pHBkXps6Tcd5n2qLf+n7a7vemJRWoCTGddTmciHkysGtjMfEj\r\nWA9bzg1QPeS7g8gqEGhbuEyrg7Xpyjh+qh39/3k5O5Ue/vml/8L7CTkyAbkq\r\nGnX7YFmTjfshLgtthCc5cl3KC91eWYo1R01WEvSZM237RIneyeDIq0G3kb3o\r\n+jFvcvCWj01M/KiQqTqBK6PUpjzDOZb4SLLp+2Lf+TWOIjhB/671zdxbRs+S\r\n8PU65zgkTR+AGAZJEi42CqwFfPy5TXQGawk=\r\n=VIbS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.1-b5456882.0_1663320261218_0.9194950915975963"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.1-7c676f63.0":{"name":"ipfs-http-response","version":"4.0.1-7c676f63.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.1-7c676f63.0","ipfsd-ctl":"^12.0.3","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"90802df6c68ef286b155c31dc4f625a9f29ec7a7","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@4.0.1-7c676f63.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.2/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-oLU9fWx87wcKYrLXX6p7rCla0OOyiKfp0UP5SSurEGrxwGP1FSx77Cb1BeSpagIVmeiLqfYiqscnqQZ/CH95Jg==","shasum":"6e9b438d85e903f231cac2675ac398ecccf40c76","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.1-7c676f63.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVtTE06M0Sg+rKnBrnW9xyWu2E8dQA9EjhPzM8b9gE8wIgXGp3JRGFfaGV2QmS3ucKpz8MbIs0/VkLlzhWi9ZHwAQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK2MPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpToQ//dns5Lc7x6v8JtPxQU7XC3MZ5Dy4ypCRPnZf6YgzjpQ52P79Z\r\nimdMKlc7/q9IcuZzRsxH/u0TcrP3x26Eq9QkXLmtvLbW60qxuMvXZPYtAPx2\r\nRPGEwGwzPXw5XRYZ6k5fvSyWRaC93Vlm1XfL2NXYFhiTohQvC/YnKeMRy6iY\r\nVEXwusCmUR9Y2d1Lo6BeaFvK3aWl8R6zvWnJS387+Z7DGg83czAUn0hC7auU\r\nKj3QHC50U0ByTGYxZ1XGEiYqIpKqeeTHHQAMR9ay46+HVmEtKcFRt7jT1r5M\r\nrx4RYOwgdWBHNe4Elf0e09y9iMQzps7TOm965+jnX9AI/SGWzKs0kaCNltNr\r\n4HyN0ox/BjdsXj4TrPkXvOilznDy83QmE+KWriKy9ZIS0K5lBI9TsCgz2r0z\r\ndS6r9a2U+eRIZNt3GhYtA7nkDrs2iDiGj5dHXPtTBpVgxPgsV2KZYz+D0gFV\r\nNM70esM7ombx708KXpTz4fnu93cFYnaHx6nrKiTIhvCz+EJZ4pHJPptdgTsx\r\nvw2Mss9rKi+vyvrPa8hYRX1M+sd5OBsIA1QPL9eOtYceuB7nFCvgduHDE/UA\r\niZ3X2qDlAu6h8ozE/tXeDaUZR1tlnOcSfp1TeHP/akOJk5u7Qe65VdVoDrGI\r\nJw/LYvvBeQvaOBW0AFOkNLz0MpajhtyEFDY=\r\n=89W9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.1-7c676f63.0_1663787790779_0.22108856520021503"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.1-2a830bf5.0":{"name":"ipfs-http-response","version":"4.0.1-2a830bf5.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.1-2a830bf5.0","ipfsd-ctl":"^12.0.3","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"ec3e046a48458e999e557f7adea92e304bd7b0e8","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@4.0.1-2a830bf5.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.2/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-oi5fz/YXI5NuBCbPVjVo0YElYLxvPBB+dgWeRAJ+Qh5sfHHP0JoY+f+uevbXSetcr3oY9H0OikgrSuuCKCcK0Q==","shasum":"04ae2c609743157ce1f815859ca24881481f187e","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.1-2a830bf5.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUYSnrouwwzmOqt4/5m/5oWzHNv+KBu9+0Nc1TkRpAkQIgc9M6HjNOdZrzTc2PhOesDXWSWPIpLiLz8trFhUnf09E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK3nxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPWg//Yq/OXgDdnzFIO9yBwNSOjBrmzjneAMO/Now7AcPqby1x0ZUy\r\noc3UHYEr15zeuIGotFXSOVK/s3aoAwBP6NbAwEW1bcnE5UHkeHYOqQWI+kVo\r\n1c6Kq2mNvZoxgg/OJLYN7gaLvIKmbM0v9Lg8RXhljN46Yh5M6LHdxkt04G/z\r\nGIgK4+X3ZQeiu3Xqi4Vthj3ndoKumOHZ2MaqtMEuXEKXRQH6sDF3l9Y+tTY3\r\njQ8o6rNeP5v90Ilo6U9mkWHeoxuqIDk76novvWBoopQ51CMWoFJkhI7PdsNK\r\nA7UixjW+cotat7/EzMyH2b9M1nARqkea6ajxrctAujW1PUHuD/rX4ApLtRtQ\r\nrg8MvvARifQjyR0v8coRnUispdgSJ1sYywLq7EWzAdo51Ir9ijDglW+TlADx\r\nJ0cWEBZU91DyK2TiW9mGOkkg+s6jKIw4+NvA/JkBugLff+87F0gql5eEK+RO\r\nVJPtIlTBXkWa73DYKOGGvIe26OhmMP094LBdggxt7jdxodBlMilkKdtN1a0c\r\nnjodX6B1+v9ZD24mM59bFkAO4vRXA+l0RETTrkLd+TW/+bThuJD2UuRJ06DN\r\nM84s6sd7PsDRT3TTJnGGNpb/z/xYQZ9YNQvwSsLZCMwKNRDp0a6lIAjr9Wzc\r\njfDIe6A7j8xbwZKnxrUthEbNjML0ESKrF2Y=\r\n=5zYr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.1-2a830bf5.0_1663793648896_0.27091280063191747"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.1-7304a0f4.0":{"name":"ipfs-http-response","version":"4.0.1-7304a0f4.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.1-7304a0f4.0","ipfsd-ctl":"^12.0.3","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"95735ef611dd7b897d3d939e512b6229757532f3","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@4.0.1-7304a0f4.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.2/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-03R6NKhuEjy6+9/s1PvQp1LSWugGvx74Gcd8nbm6l5Lt5IugKqKWCQd7LKYQ4RQezJlnkKQ/lE1x/6x5HZfyTg==","shasum":"12bd53a12783705c4d9348fe70d73ace7254e401","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.1-7304a0f4.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmjF/m5S229S5V6HNS3d7JLP9YLVLaPLziBwy9qzZxDAiEAs3OQle8xhrq6VWLuz24HLApxUiHPSOMr6f+2DCQQtg0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK3oaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWrQ//a9VZfpRiTnv1alu887IDWKk1XQSQFM6XnTl0jX1v92u6pZCX\r\ntK2KYCuzSy3BizbQQHz5N4j+wCdYt9rv6e9b8qVqnQnu0JwF53t3R8X0Z1TO\r\n+R8HOKbItGwCwM2Wc3C4q0yJXsLTA24SkMjDB3exbWZnwEWMq0J5QI2eET3o\r\n5zoMl/Z7fa2fzKfbSo56asjKIQDu8mRCNGDF9SrXHNMY9/PHmQpgLcXze0vY\r\nicwvszA+MA8ppVh1mK2hw42oYQBn0q1kllKNN+B1YVXOO+S3bU2V2ODVXiQf\r\n6pdEzVzSk8pV2XeItXCmBv8Feo6pnfGbGXhIpfWBSqrxUYEpNdIqCWsLVQmC\r\n7cuzcYvnFvaHY7S5BEop5TbuyzRcDte4nhlY6N6aINzDh8QYbrhRRDNWLReO\r\n9V867yCNxuPEtiNfiXWdLODWKPz12ZYcA4eYgYEyAndoSuR+luzUAZg/MKec\r\nacRZSvKNGJrpJs6Z7ACrz6B+9w+sDD/WWBAk7P81Pa5VguTq4lJPM0X04Z+4\r\n9N2/VuwM+wtRnzYYDktbOQux1OXCpxD/ICZNb9yIYxIGVw5v55lzLOihoyGu\r\n+vvUO5/fONdQNlWreTvpe728O9xfbxe7ECW3KOXysJisv1ALSgpxrwKxSEUi\r\n9eWWPV3LiezcYiuWR0zbf9Ezxj7Q8hileDg=\r\n=vY4z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.1-7304a0f4.0_1663793690401_0.8373915059309596"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.1":{"name":"ipfs-http-response","version":"4.0.1","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.1","ipfsd-ctl":"^12.0.3","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"d1f1e75b2060c5c2e64d133a7a6bbabd2641e5ef","_id":"ipfs-http-response@4.0.1","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.2/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-B8oX9tFdrqXB2YFWnQkA3oroA0VJDBSeOYryBRb7ef/Tvdrpy/X3VE37i1aABCjjyzGEjS1dvMU3XH2uM9Jqwg==","shasum":"2a774e15103702aa8da745f09d314c62f0a1d18a","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.1.tgz","fileCount":21,"unpackedSize":227338,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnVBYw0LByjct2YxfpAAouQB615qfcttzM8w8wsBF/1gIgKKjymWaMo5R1ThJZxEg0cpytnl3ZVP5poLRBl+Buodw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK4g3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmquow//S4gur+lQstHN+IyvMldX5X+sCwpcAfReT2limaelwQLVhEOq\r\nQ9WI02rduIw0amiYDde6iakoWrpQghLmjfMfvvJekc0wAgkeK6Au4n0Kun7I\r\nCg6Y0oCdKRbagzROkutNPtNx99w+pazM4gvsCU9Vp7FzKcoNuzzKZKoQLgAC\r\njW9bV7DQUZsPdR+oe97Z2Hp2Wm3TEmGgp79GSQFS0BDFaGZvCimhPEVEGYpT\r\ngxfynHXhjZcpcZ7Ohpzx7I7U8Slk35Ho2mt6vXgWeuAhfSLM5J9OQvGnW/58\r\nyQCJ9IUK8uxGgrAZrusOuC+vOzpDBmjOHwU3krlKNB5jNoeeQRo0pMB8v3Cn\r\nrrfyveYPk7XmY9wIYalxpguKLabTUuVBB2lJWS6Hll6pVeaGi0XeE2aBx2sU\r\nTuYigjg9+IFcHvMO8tzXQQHCVfIVVqo4kcUuvvS9QBs820BBNPGLo0HjlPT1\r\na2x6ZUl1V1mkekfiH5/UdId0616OrViNsoandJX6aWY8u+CFaCtzcu8ZxjOO\r\nLVAvRgvBgyrC0bPsoUgnEPyAyDfSpfFuEB1BUR9N2mcWCP3Rcq/Kbg7HRWKg\r\nV9lbvnWH/Hb4V7DPAMGGZg+Ibr2tdv6QgjF42004wEAJf2Dvgl3s0iZYpc5/\r\njEprhPMqLjAaisLEweYMNYb74LfPlSRCvjc=\r\n=2Ffa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.1_1663797302934_0.015395378090912626"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.2-d75e0a39.0":{"name":"ipfs-http-response","version":"4.0.2-d75e0a39.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.2-d75e0a39.0","ipfsd-ctl":"^12.0.3","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"4233393ebc1f8526290235c1b52f4d459ff96e1b","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@4.0.2-d75e0a39.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.2/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-CRRU0DlWObhsiWuYA/ADYacvf5NlOxEbLM2U1u2oQtLj4bGTZjrFzswoje13H1/2k2+IzQ8TL3BHWTfLOWyZqQ==","shasum":"119e36085aa00fb0a8bf99abc28648988e861454","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.2-d75e0a39.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSc9x63wVzezWnfRaDLKhJT1nCs1pfibzPl1USuaXe8AiAT8YPDzjBqYZiW5KyOJt8twpy4Syx8Y+l9w5iV6JLeeA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLCJAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7bw/9E/BHl597etj4leFPJb6mWTEzlzEYWW5QLGB5S/p7wWM3AMw3\r\nLeVgVVCGodT9fiB55E6w3JUCk/ICPLk2XIrs0hdb7GJ61BZ8brlKuTuUiOiJ\r\np5hRovSGv3OilX3TTjRVS0eIcWXdAPkTDxb1mNMi3R49Il2pk+jNIcLkWHA1\r\nCrvXs9UYdPjo/DGnusYa6UcBvee0HrCVRXqK4EhLDrP/xR6STjVqycTqdQwp\r\nHyc/vgu/sAmlLUsrmu1/SIQiomApWXPhRJzNNo4w1TD9a0VR04WrjCquA/nx\r\n5EfhKekdjcSbpeDff3qELO8l+cLmZezi61zfSpWb9aHl7mxit6w7yTwnV15l\r\nDE7xfHlYyoCOwOGr0AQbEVY8FuJvis6Z6ILDlZKwBHn7Qwj4Nbi6Xzm76veS\r\nErfZABaX90B3pSfnByFjrNCpHW6gBWBHSdk/KAxNDfe0PY1ZHTf8MmEk/qq1\r\nEFVdDp2PfuwXTy76BwiV0sf3lwhlBHE87NlHSpDRIwJrbl8es1+Y/mYLRWQx\r\nyVGCtf/bogxITiGUkMJp671ymwWZZvNXWX51vGZlSzbBrPjn/Hcrsu0JurQK\r\n/e9nPIuBHhSCMdbkDo5XileAaaHSBpzH4VoAh37UWs6vj6wJcVVYNATPnPeK\r\nXWpQ+bBd8II600oC9c1IA1OMO/s9b21KVEQ=\r\n=rK/+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.2-d75e0a39.0_1663836736139_0.7164059179293065"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.2-d1b0a8a7.0":{"name":"ipfs-http-response","version":"4.0.2-d1b0a8a7.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.2-d1b0a8a7.0","ipfsd-ctl":"^12.0.3","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"de2a2b2cb3fb26e858af2319c63296a1ca411c25","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@4.0.2-d1b0a8a7.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.2/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-SKi/cc8ijXbW5xqgLIJoCMi6tz5Lt6fx/v1WoBxT5ufd/SukySrKN0tLahVAmTViBgYXXT25JkardgnrGp4WdQ==","shasum":"5931738047f94cb930c69708fba918c70905a5ae","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.2-d1b0a8a7.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEI7tlLWE3BYgGuVX2HflmPw8PF72ibF6zRmD6avPlTRAiBw6LVeWhv659bH80LoOc+H4hHv7tX56OzgFOLBq7Hb8Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLDvxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbTw/9GOQ9GQbI2gfnp7lWq762axU7l7bPYtXinPH2x0Y4rCGN+d9y\r\n3wZYqqqtpt/c14wNeja/gKiKfTEjA9RmwNjR15Gentc2K/2/NYbBSDWRFUfz\r\nZJZpoM24/V5bxmBGqOifOmrQ4CgQ6blzo1tQThINd1oKbtqKV9mm0qJU2rTp\r\nJsYWh9YOUiq5p0jBlMoQmQ58u81pTckGs4hYOzGSuMsH9qwDZSKxHzgHlpMi\r\nilwlDnzIQrlD4xfNDp8xyQ368vNkCLZj1CPNaqfCtHSfB8u81hLbjqrtpMnS\r\nbIpU0T9Yd/56ZneuawIeNoMUcihnFAnspSbAfzi/VF7AraykUwsWNSiaqDWJ\r\n72U73yapPH9dXzPPVjs5RZLA0UUj3hvoeu3IenHQ9B7hLP6/gKNITnrXqe3y\r\nDtn5HDbIoPAfoangoPEhqxoqxL0BMCsyHexyHCxvrNXwYbDEyoqllHsJpq4B\r\nFGRN0Xz3srkZKrwBjI7nzyw6otgtgbFjOHSG2BFghysdrH7UGuOFbn05wMMR\r\nVLnOA/r4QP2m8kR6+XxUXmRvHLbebhLB7Skz4VvJKU3+cAk8VTF5m4vBvJzQ\r\nSfHhKThzYeZ26mGMKQ36UPoxAMqN/9KT/cQ5bSwpj5VBGEUSKgCidJ0KxTMI\r\ni93m6XEZ9AIuR/CaajFSF2qdazx6VOA0+as=\r\n=VHWO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.2-d1b0a8a7.0_1663843313312_0.0074614731026330094"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.2-acbc1c62.0":{"name":"ipfs-http-response","version":"4.0.2-acbc1c62.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.2-acbc1c62.0","ipfsd-ctl":"^12.0.3","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"60666473159284a7bf9067d10436033caafeef5c","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@4.0.2-acbc1c62.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.2/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-nKYrd0yHj/YAqfq8XQelB+rDmYYEPikYfPCAVJTqHGZg8eiZLlfMKaefemhSqlYxIXhw+yX9rLBdeyVxd7M4Nw==","shasum":"02ae213266bed540b3946771cbaf7b4a81aaf7dc","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.2-acbc1c62.0.tgz","fileCount":21,"unpackedSize":227360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiEiKq6dZPnxhBAbzhnjJxusWbwv811aCwPyiuGFxvjgIhAIr5I2cf7Qh7hSELhKXV2q1Kt/I4z/nM9OWqi4ujA8ao"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLFxNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGORAAn6V+bQ3CScS4OOA1bXzZXJFtbG1PMoDb1YyMGzgN5WUtvqA6\r\n1tQ4DZpl2P2NlujBNaMKdMP+pQtFPTCNSCkuY/nuo1DhhrQlJRqQFOvX99/5\r\nj8RA3KiTUN4B1yznPe3S+pyW015QiHUjrD1yrl6bqczYQ3yG/gkNqq6i2DkQ\r\nTea5/NM3JGZTxbDZ1aTTHldeCukcR5Utm9ikixPpnn9amIP0aI4ES5a0O4rg\r\nPokO4OE1qK/tKJlvlBBq7TG4qcGKXjplKeuJ0Cl0aGl2CYjqFCwgax0kElym\r\namwpyx1Pue6UDGpY7yhfqrtAL120nQvKK0wOVCQSUA7n6eZ9cn77ip5g3xTz\r\nAmhRrj8lzU1489r3EgsKzaPuaQhDMHS4RteMsVEJMBi/GlPMBCvm6dzBlnOk\r\n02g7cizpb/GjfSKvMACCMD+CQOzLWdoSuiyu5vSqs69BhTiUgYPM5QanmfqO\r\nTE2PqblVnfQCwrApawoM/+oeAqe38G5kUFUYB3/XvKQA4nHHSuW0zF5/Osp9\r\ne0nM1z7PiHUyLUM8Q1QEAatZGT5uBeff7gZaX3SveQIU9eooPkMbDYS8VsZr\r\nmCPyeJUdOgQGkpi70vPS03aDsuygNvTki41tWFkxuUOcrEs5Yp/TG+cH5YCs\r\nAQYsS/Y6LNBVz71b3O54689MPuAeujfuikU=\r\n=L67n\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.2-acbc1c62.0_1663851597459_0.6814190048967457"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.2-dfc43d4e.0":{"name":"ipfs-http-response","version":"4.0.2-dfc43d4e.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^17.1.1","filesize":"^9.0.11","it-buffer":"^0.1.1","it-concat":"^2.0.0","it-map":"^1.0.6","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.2-dfc43d4e.0","ipfsd-ctl":"^12.0.3","it-all":"^1.0.4","uint8arrays":"^3.0.0"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"4eac92ae987d3ba6007c4742456913c865a06857","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@4.0.2-dfc43d4e.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.2/node@v16.17.0+x64 (linux)","dist":{"integrity":"sha512-g5djhYow4xRXv1SMN3vGDcCFw1vDzR5+qtHlecIevRervnJOBCycJwA7Yz+v8Ih45gL1JO7N+cBqT2hd943HkA==","shasum":"ab1421c838f9feb815245c3206cc374ee8c5d4ad","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.2-dfc43d4e.0.tgz","fileCount":21,"unpackedSize":227458,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiuj26ZE9It4tDRjX7ljujG5SFXO2MuwW0Uj3snVYfJwIgYRzhuKU+MEgxJ2CB7B0s2DTCf4r0vAOAw3FYmniOY1s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMbUqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLGA/8CLcCV0N7BY2Ny7hh6zXqMOi+4Emkv41aqPNRNX2KIKdXOyfj\r\nF7L1MarZI1TLrwNPymveP8NAHS1R+S40K/SjsJdxYL7I2SHvZ28dp8VS2o9x\r\nhmDBBkqgyahsPOQx/KhWkTAyMXpBiEukcRzbCSb5Yi1phjCQYW3g7gdSa2w4\r\nzbaC2SQgV+2G4eTJGRnIX1hl8KQnM24IA2F/yrFrJ+Waaix1uyYElVI6CkPy\r\nyb4MLKtNfu5zGfS103QgxxSclCxRFomtHmkvsctMDLa+2CHMtVHZOhalVTw3\r\nCsv3jA3gR2C0pJGvkubH0AFG/g+Q0ImKgAeEOvhVtpPdi2AW1MOAbgl5mnZz\r\n5cKkYu9TWGloCsi7JwOMJnCPjqOOLS4RRdLx5XcmIfXBqzzWjzfxSGblgpew\r\neqDEvaERV5h9KDCGO+ZmD5sbCWStxJgkKgQcEReIBQA5/lP7yXIHX5EAqDab\r\nPpkAHSUdRm5V+l+SuSX686zOO7wV6E7xpJM6ufvROT2I48PxJjD8BpCa7zvi\r\nujodgWYebv6iib5cpyONGEV97N5WUy3JGdDPUOHIqBZA13W0Sbd9O1nLKnEn\r\niQ0ncdRXnrrgXpDnEHJ7JS6Cou4Rqa+qyawHz+Diwu0X2QbPkF3dXkZGxkht\r\nU04KbmNfQKwCj0kn8di0qDvNFbrTsXqJvVc=\r\n=laLH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.2-dfc43d4e.0_1664202026205_0.2967844035041052"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"4.0.2-0cee4a4c.0":{"name":"ipfs-http-response","version":"4.0.2-0cee4a4c.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-concat":"^3.0.1","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.16.2-0cee4a4c.0","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"b44ea59fdb45d3e8532d6a2d5f670e2df46d36ef","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@4.0.2-0cee4a4c.0","_nodeVersion":"16.17.1","_npmVersion":"lerna/6.0.1/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-uIkjhdm+Gd0EbjnLwnhZLsLSolTk9uXbMMPWIM6J0aKs0LMGjj6IL/fhfvR5jDcWWTuH1cLfE4bRkL5E63xHqQ==","shasum":"76b83ec0dc1a634b51e1f64a2711b6dcf064a574","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-4.0.2-0cee4a4c.0.tgz","fileCount":21,"unpackedSize":227384,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSMuGxpvcXi8PfuW7v8SzNyYdrdS8+KHKZttKdqDv1lQIhALMK40iFqI8vI2pvBQ7rsVyDFhRN3uZGZzdMiWXlvjka"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVlc8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7hw//VARQQPLjW2YIkAJ1sL7sqJ1TF24kRBefM+91nXflNN7S4G0v\r\nA1Ld7jvy1oMMtdsu75y6in+fk9qt/OLU3SS72SUl7TxMZ5Ci0R5FHJ0eAI/E\r\n07q98jeqZszbpjI2RJ9D1TVS8S3ZkvFYu9y5dy1vGZBhWL4qNE3dt87xzQ5J\r\nghIxhi8SPpz9yw7Qetq2Py5r8rkvFf5hxpZBHmpd2Rngo6Vk1D7Y48Hh4JLG\r\npPaHy8GOUmgmE5Qqu3nQYG8wpp0ihtSp85pcjxQmc15peOCq50IFbA+u/6ar\r\nqpv6nNEbv+QPqV+J8hyXlLteaEzNoHVw/yaCZc2QClLT9rwUM+hhf3ChJknN\r\nJwnuDJmVjahjRYSP+GF0aLmBgzI/TzR2TuCuTuG3QHDMw+fzipP2SKsArAIV\r\nuA3rQJ/OcUVWhPbqRWO+A/RK8g3MwZrW8HvqQxeJVxs549Tkd/yhriartFaS\r\nB5CYidB6U5zdN/ARf7H4R+MU9Y5Jilb0BUvDyIqouLC3RS6ZrpSb9S/oI6gM\r\nT0Zskm5Xw+Q/+9ZhZDlUup7Fgk0o7Ptaj0D50rp3+ZTye71ZFmNqMt40+FFz\r\nxGrhCwkJYr4jnGnJmH+ecW3OMfq2mEXNR6t+dajgKeP79BdXmpTb6f8DjWLa\r\nziBlXAChl2UHMaVy4lSTlDNxh8blRVu02uI=\r\n=CMJP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_4.0.2-0cee4a4c.0_1666602812006_0.4731132764910164"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"5.0.0":{"name":"ipfs-http-response","version":"5.0.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-concat":"^3.0.1","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.17.0","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"e8b7b66bfa98c2a1c0d0bfc19f698d7d00b6c888","_id":"ipfs-http-response@5.0.0","_nodeVersion":"16.17.1","_npmVersion":"lerna/6.0.1/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-UxuaPbHBuMD56jHS2nek2N3+GN1P/cDKYg/ZbwA2R/cCWCvEVPWnes01tchej00uFUoZXZbfi33fP6D0OJreHw==","shasum":"647530dd5117b844fbbebbb1ed750f12fc9251f5","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-5.0.0.tgz","fileCount":21,"unpackedSize":227362,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkJS1lna8NblKMu31br0jzxFq2mOgVFASjp5uxIaZMbAIgT42mjDyxVO647B5H3NRQgeatb6iovXi8qVWscpcJEDs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVm1FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhcRAApO9puzB4IVeQ0LOdsIIVt94DwOIbMkW5GQz222UEiuWkVdQU\r\nU8CdPpt6XRCcKppd4rZwwBIWa495SW/6PcJ9jrCZXoL17VRfEL6G5x5klWKt\r\n0nXwTtp17kiuOuSS8m8rbEL4GEfkkTpgwsyNEm8aa1L44dMLcO02uABumm8L\r\ngK0QnbOOn0a5/yCwGPCdhdAnhgGkv7BqyFnDIKMwm+4T1FAJgkkbp68rhuW2\r\n1MR9rs+2Dy2ZvyvxoZrOcwxgzxJ8rLTRsVf4TXdAdC8e0XCWqpRLJi0fLaof\r\nQcondMI3W0iFgXmQfRXj/Uw0+jV54wkU4zHNK2jY7jbEvZnYKtqQ1xDO+2iE\r\n7SEPobQ5w/95hHHCIvsE1xZDylZNHWq9k8sXIYTdXLCV5d7B83OJY4wvGa7p\r\nb4X2+0uXV4Typr2ZdvIWIcn3aXzupJHDJ6G80q9YrOC4DzSDJfS/8GO2cKLI\r\nmbeb0u1SjP9d3tAGJ2iU17IZ6jHWkEEfmtbRdW2OWX4s/nSBy+g/eBWC2h0A\r\n/SghYpPJyxDdG0N5QOT6tyKFF13YRFZCduucoNjnPJipwacdjNez++O89gEn\r\nG/C2lU4IQp01bMXlgAjUADZLpfTq/cgTw2bxekhlRnvTakPsQqndGotKs1KW\r\nA6ZjCQCBrDJC/Ia23eO5ykRYAVPD50h+1GQ=\r\n=P5nY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_5.0.0_1666608453162_0.9766049020145637"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"5.0.1-a77e40cc.0":{"name":"ipfs-http-response","version":"5.0.1-a77e40cc.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-concat":"^3.0.1","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.17.1-a77e40cc.0","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"a614528c55b8b22866bbdd2ffcde2e38eb5f578f","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@5.0.1-a77e40cc.0","_nodeVersion":"16.17.1","_npmVersion":"lerna/6.0.1/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-w8ertS3UI9vyzIByoN1XNUvvJMT/jvM0Kr04V0BtHuMwd8tJBJAVpHaLddDuvGTmVb5FGGtz8F6Dcw80U1FdLg==","shasum":"60cf15d5164c617acd746aee6a9f10a589993701","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-5.0.1-a77e40cc.0.tgz","fileCount":21,"unpackedSize":227384,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfhek7SbCBORz5RDqi2tB667/xmQnC95Z0pcwR0u+DpAiBB4rU/R07Ug2ZI3VAmd8lx9Ni6PcViyfRIJkcaqsimOA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjV4wkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvpQ//WiKkt58je7+gjSm7jd5vJI+pE9Gfd7O0KzlE5IiB3STzzxGk\r\npcNMZrWYFOfqBBEvgeKAdpPyaNOElw8N+X9fR3Eid11Zry5ljMy1v0cUamjg\r\npOCXogdpdNsCcFRof2Eq6WUrny41wOohJSoyDkpE4S50ejvEHktR6ATi4Ys9\r\nCjsbMQt/nrUgzAXRp6tgMdMW14zoWR125hWn4uw+cV+F+BHMRtWuaD/AZo3h\r\n/qIrblKzfQmxm4dcGMEjizHH3qY8ys4ZUh9kszjlUdwLyaLBEvlsefsmZoq6\r\neHFjzXYMFarUt8AP9o8PQXDdXoNgthbQ8RaEp8hDutuQrl1f3k5crGP9DBPU\r\nktMmW0Gj8zncpWk+xRSg0l3Q8qja0oeoicrY6wll/PgabRuwRae1jLndezY5\r\n9q5Z1UY231PiFDTV84D5EdsntQ6Vrc0uZrkSsG2/7dopQ3Q1ve/flCTH+e3R\r\nGe5MoU9d+mLa3qTSU0qO7OuAAUMn3a/XuyVXbKnaofEDuJYCB+4eQO5tOf5e\r\nJmH82BhUjdoI+i9NnRzOFzSRS5qB7oWyWpyMfoUl2S/yiq9CEPZpl5wYvchF\r\nAp7w6ySkJg5vbyVtJqAs9qZAKKyg00Xth4cQeuhRgfWW6FiGcMDaGwwJ5jpB\r\nJYDMJBfS/0F/O7G5agojEn9o0zXM4smMZhQ=\r\n=HuSJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_5.0.1-a77e40cc.0_1666681892374_0.7755693328095383"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"5.0.1-58e6f468.0":{"name":"ipfs-http-response","version":"5.0.1-58e6f468.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-concat":"^3.0.1","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.17.1-58e6f468.0","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"2a13d94cabf2e6ca2f631dc9686f03de6aa42447","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@5.0.1-58e6f468.0","_nodeVersion":"16.17.1","_npmVersion":"lerna/6.0.1/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-+poliZtqkPiPFQyJPnFe5042d3cHKFUewlf2Bbhj4jKSEZR2y1ussUJANMlQuAyTQ8tN/TnYJm8kFGaeBlduRg==","shasum":"ce6c776f0ba1bdbc5b4d564365e6175b0dcb2203","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-5.0.1-58e6f468.0.tgz","fileCount":21,"unpackedSize":227384,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBW3MZB42AOnDubRafo95CumW/ComDhlMPim2rdQ9AQAiB9m6NFXy2iZ9N3XSxGl0unz9QqYrGF1vK9CN1a8fCsaA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjV5szACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+pw/9E40KN36YXdsp7e7Y1Qv974gH1Z/MevryOy3LssHbQACl7syw\r\nXYikViJCER0ADVIY2+7mr6Y2GOjZo9s8EQQov70XsV/v9LfElZw8K/cR+efW\r\nC/sHjzk5hx4k8aoY/ScLXRggTwQXPbgQg2+CJfDKTL6NhS5X6OcgqA0e3lvS\r\nFvsbjbQHYYNS26jpKQRrtOLz+t4rkJOTAv7r406jzSOr3V1h04BnVQ8a8dum\r\nxSE/XjT7I4ith6wYuoFCHCfYRhbtAHCQR37awPRFJ3PKU1MwpCNCKzpeyaKu\r\n23VrQpMEWOun1H0tabzaYecRp9E0F0hwo0QRDFUBCjjKf8350V8WZ54OLpNT\r\nODlNqhjb27xtsYIKtura+3eBy39n218O3F4NiaixOPOw2gh9T82AIRPVJEpx\r\n+uKZOb6oIBHHwbqWQMnf0fOGnvZwPhCI0Ghcxa1mUdOLtvZ+2vbIOjD3rl7F\r\n//TTlwIKIpR0z43qCpYG7qrMEMZjKivvYp7oQ0L7d3qJzksmxjRC9q8GdIP+\r\nXLTRAPMa40+hGZuXuV2ytceNLkxUKs6sKumerzEtIUcY0Q/YDO/OQebH7sH9\r\ngMHmSCOtxUzXVqxBoq50sV4yvK7KtBmXb25HYYK7eJoJZ/PEatqUDeCaKrA0\r\nEj5cKr1/RbpqvNGxlbhjyBQS6ZcLtGGgT5U=\r\n=sBIV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_5.0.1-58e6f468.0_1666685747457_0.8057966729207993"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"5.0.1-6ae5eb7d.0":{"name":"ipfs-http-response","version":"5.0.1-6ae5eb7d.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-concat":"^3.0.1","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.17.1-6ae5eb7d.0","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"848f64d53ffe001cdf63310c06e8f0ffe485278f","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@5.0.1-6ae5eb7d.0","_nodeVersion":"18.12.0","_npmVersion":"lerna/6.0.1/node@v18.12.0+x64 (linux)","dist":{"integrity":"sha512-KeVTlL65WdkGZWfgedwucKnRPj0QPgyXGAwUg3LQM4622BHsMqVdtNZrjrk8+gXkfwOfXOFuXBG/xbFeHVN49w==","shasum":"4e3c23fda3e368af6e8e2f69f1164895b6248de7","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-5.0.1-6ae5eb7d.0.tgz","fileCount":21,"unpackedSize":227384,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsjIMZyTYI5FIwDyVsXsEJim/A7yg0gH8qpRsK3jAETAIgRK1EyfgsljQuKCEJh+N8Knwcce7MIwluWaJkuMbfhoA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjW4TyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEmA/9EgTma186xg4BvKvY31QHq2xcvfNnKUD1gzHNBl59BM4eZ+KA\r\nxJnmsa0CVjUTg7L7tM8b0YfFV+8MuLQBHjGfm2lMcdRSBG8u+41fnuwayFTq\r\nu3aCPv0fqrS1Ucjn0+Bany0m0IhQRAa0P9NWlFsPnIwm6lWxqosmV4oxCL7F\r\nxyl6+TQysUcZoZEKKewFdO31Lbr2FCYiofVMs0U0/uWz6dzQFSArn1rUElVC\r\nJY1pSQw9jXVl0+uNdK7ELM/hLvCs+HQcDQVoYQtjmBAjE5QvzecNp/C580sK\r\n+1TKRsBkihUlP683kh2Fm35ng2BS+/XuM1eu3GcW8q7gawTz53IWM1WB63qI\r\nDAMoU+kACwxrw09bgPW2L/Dsm0zCutcRh8rNGgM+bA7Apojf+YmNpMs7rHTI\r\nFN8qXeZdkqD1qK27fnbU8VO2R47Mzlfv7K0o0Ph9zit4IGi9kDLMdycHZkHI\r\n9LeD1a1Uygv5lZVd56kTHJY6frWXQ9TUZ42nYbY071Gfx1NYgfJno0CF1S7u\r\nI1NkSJduO0rq5YvP/VpwsgKnpCiWn0oEr8FEU4JqYQiKtlkO7+tO86U3pvJc\r\nZL0R0lMXbTuU2DjV7YXjnB0ePlSaCFXBgUjc03aVWhJR32iTcLN2TOSoc/MH\r\n7BX8DCaz8phqGXzwizgnuUKHI3pCCoBn9t0=\r\n=leQP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_5.0.1-6ae5eb7d.0_1666942194240_0.6728774559571058"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"5.0.1-6be59068.0":{"name":"ipfs-http-response","version":"5.0.1-6be59068.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-concat":"^3.0.1","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.0.11","get-stream":"^6.0.0","ipfs-core":"^0.17.1-6be59068.0","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"81311d5fcc6a5512ed3414aa592bdc9e6c481b03","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@5.0.1-6be59068.0","_nodeVersion":"18.12.0","_npmVersion":"lerna/6.0.3/node@v18.12.0+x64 (linux)","dist":{"integrity":"sha512-h4yCFJyKywhr7yUgEirCx2d8Tk7plbSONy0wAyNScOD2y2VvzJVBQX6sy3RT7p00PWINAr5XQGeMB0x2jxKaiA==","shasum":"b2cd05491bf14003fe362f035e49432d4c42f527","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-5.0.1-6be59068.0.tgz","fileCount":21,"unpackedSize":227384,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFBqxNoZK/mkMR1AI3lw+5CpC5R0taiRrgW7WShYaJEHAiAJ2tT+xBRXkTi71MDYKjeyMYZP2KECOdHSJBzCMRcUxQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdo/wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPixAAoHWF5wKqQQjeW9Hn6aLUuo+6jWJI5dYO/K5z1993BruloFVn\r\nBH1ch1Yp53s0cymDQvID+bY59Cw0pfpEqHXI340oR1WLM2kXSb3Sglg1c5bs\r\neGXRhb3zheSEHkFsHrBMvTDzVU8gliIfUR6zZY03TE0O21VXGNva1wVYjqot\r\n2oqz3tzQJ6rLXX4Vi5h5Xl17Gi+wtBwwXbWrA8xlUT16mOp8/KeSp5nu/IaP\r\nHJjfr+cmntmTuSv6t9yDAWt0mvwepshXRUROGORIHhk5CsB+tgj72NAT7uWD\r\nKoYAcCtWxau3EZL+jzm2ebsEeOTk+0vDfT+GaSXZsBFw10n/U0QYwidYowsu\r\nGXksdNCW24gA6IaJ+BXLADjzU7Qq9rsUaGifmHYvKl63knL/IyYlr0gTAB2Q\r\nVsVZsnsExRYKs8y6Uw9eg/DEwMFr8MDxxBOrL9Yo7f830XR5GWpkCu9C72Hf\r\nH+gpcQ8MGmlIYML3xoYOMYSuZH0HS2qSrjNGNWIs3gET4eVrfxzLtyJcYTYp\r\nUq+kwvqWazUusiGAmtqq0G6P4Ic9qbo/6E8IPnW6onElxyY5ch8P1qk/ZByU\r\ncESU7mY7UkMSwIO9s0ocF4oAXuhdDP5effzDfGu28kERjkn/h4KGUe1n8NWK\r\nzZajy4LJgGTi7PGdOM+SS4gPKSsx/pCz6vM=\r\n=BbIS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_5.0.1-6be59068.0_1668714479913_0.530120600528734"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.0.1-563806f1.0":{"name":"ipfs-http-response","version":"0.0.1-563806f1.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.9.0","get-stream":"^6.0.0","ipfs-core":"^0.0.1-563806f1.0","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"19b0474216e0a7dd7363dcd6733379790b68a1f4","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@0.0.1-563806f1.0","_nodeVersion":"18.12.1","_npmVersion":"lerna/6.4.0/node@v18.12.1+x64 (linux)","dist":{"integrity":"sha512-6QVmAqQ1u17BygRgqDQjDcEJT05aBH6Rg7h1iWNxlYsmo3Ne94RL19O8SxIVCw6pus6s0EmGggWr+Dqc04k5DA==","shasum":"3829768185e5b7bdd36925bfa8482e7a9010729d","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.0.1-563806f1.0.tgz","fileCount":21,"unpackedSize":226884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICdz6BgdyQ0y4cYVaGyixPUgZdOhuNFXZ1K5pP+VUZ5eAiEAzmrcnDTsSSmMq0U32OxTMxgDdIBkYz8BVwS0uMEoWPA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvFjGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoIcQ//cY9QFwMpvqHipqLmaECqoAy+O3ps2PFbddZutrSrTN7D9QxP\r\nSJ2MC7wixmdVIyTyD0mzZZQzRwBqbaBLiS0y0oTnddWjfxpstEqwUP6n00si\r\nKlyJkx7Mn8zBlGeRkgfdTrMLY1HYniX1UnnAdP0JXjcAmQyDF651ljaRC5vT\r\n2iOaTr0Jetxh93wJGP2NYxc/PG2hVEvJlXRhmCC4JOIEhJ28Mfvsp4lp04le\r\nWClzHs3fg7obNCk/PdR7ycQ97QPYI1eOW3MO371SzQcL7r+zi2OXJPYkVZ5i\r\n5vweZ9vUF6AOmC0bCeJ40Qv2clBiybHuwhFhbUMfcl37dUu38RvsNzjPXhQP\r\nuKts2x0hOMz4McOHd8NRT+1Rqbti+a8fe/hwJEOmKDvW39DMyH53UyrNjh78\r\n0xy1qxvOTBQiUFzUPcjQnmWi52eFiSKwRz7ezT09cV17xk0AB1Ud7ffIDF04\r\nP+BCRlSYCvBO5x1dwappp5NsD+M2jqC5mQyEkqkblYLmIphrOjDoOA19Uguc\r\n547HGatYS4nCLg7JCeaWTEjMcnY2y6LDPXmUmYei/7FW4uNKGMuS4LJdpv6d\r\nFp0M6XnX85LncD8um3RIAH4ab5FP0fKcveCOFElaxpSb6X14/Dmk9LK/9RGN\r\nN5CisNTJhnX+UvvZ1ZZVyYeg0kt4t7U3jVs=\r\n=8IHc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.0.1-563806f1.0_1673287878296_0.4344283457099176"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.0.1-e85e5b6e.0":{"name":"ipfs-http-response","version":"0.0.1-e85e5b6e.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.9.0","get-stream":"^6.0.0","ipfs-core":"^0.0.1-e85e5b6e.0","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"5d268429a92d15e22b1cbf7fafadca662b131420","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@0.0.1-e85e5b6e.0","_nodeVersion":"18.12.1","_npmVersion":"lerna/6.4.0/node@v18.12.1+x64 (linux)","dist":{"integrity":"sha512-pvh81fVKnygNMfmWIWJg7xog7EYPGU9/3nj1ievyn8liG971RwRqJL7klj0dTSujABFmsQPzC6oegEji4vX1vg==","shasum":"3a9218703132bc5ae1c78863564236da76962b1e","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.0.1-e85e5b6e.0.tgz","fileCount":21,"unpackedSize":226884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEH4KBBKSULnEcP3H2R+2Jfiv52xIQbqp1PYnh3nlSowIgEzCDlKEYOj0Yr9XZNcadvqv7tplgqNPwv4or3O839LY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvGf5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrn+w/9GnPFOBOHOt7eupqYNBR8JQt4FSLMV1MGQsFnTvbsT/b89DNk\r\nbMHjpH6Hyk2oF91Nu5P9YSe9mwY63tze4uA5jvb/EeTLATT/B8Fd+UHnHNp8\r\nx585+hIKzEP3S+xr2nNMTv3jF80P0Dq/a3V6EE1r3e7Wcq+A/xQenNPT4/YP\r\nXojDw1ljI0fQJrysDlHiDuQX+y6hSGhhWRz+Mf3t3XiIofun1E1nUfTfgfi/\r\ntUYHORFSSOlgw2LTS5ACBsSbsKJDn5CYJ5mW36L25zIdIllnc+8KFnTHOucu\r\nXcR8Y+tWUbPCNzwqd9QEunFDvwFVS2TlYIxyxtjolCFUupxG+Dz0BLfZn7lz\r\npiykRuUiEekFzMBs+1ZzD4VjE86jiBGzLEnVcmIZ9Yx0VUkVW47SieIO6v2g\r\nXKTeRrfdlnniRigtRGoxRNu5bCRbrzy6kC695Rab9lHeTc/YlR4/h/VKIC4O\r\nbVzmhT5prl/IedT//TClRfQ6VEr+6BEO9Fv7xkkYfA5hroIC57JgTEqK5gs9\r\nDRAYJAoX2jW4Q9XnxHzaDMVzGemcGd6lC7WK/j/LZYCxrk/dQDK7MlY4Noah\r\nDq8TovQh99Hy4TKdsFFopC3es6t3a8V9ut0ipFR2BBABvEwjbvjppghDcuqD\r\nl8YAuWY49uMRg/TdkEf+lrgAuLUoLPL6gUs=\r\n=yF/S\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.0.1-e85e5b6e.0_1673291769608_0.7041235447593579"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"0.0.1-2a6fede5.0":{"name":"ipfs-http-response","version":"0.0.1-2a6fede5.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.9.0","get-stream":"^6.0.0","ipfs-core":"^0.0.1-2a6fede5.0","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"12b210560953c0358e012a120d162b5f3f32d06c","readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","_id":"ipfs-http-response@0.0.1-2a6fede5.0","_nodeVersion":"18.12.1","_npmVersion":"lerna/6.4.0/node@v18.12.1+x64 (linux)","dist":{"integrity":"sha512-ZVvbK0j9o14cgAc3VEwKFLt6+IneKtPFSrEn0ajC5YLhG0QBVCQ7b5ZBqP69K2Oz33cNVd1ZrdA0JGZyoLGtow==","shasum":"456b6d09b43233c988f5c8f64a3a929381977ea5","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-0.0.1-2a6fede5.0.tgz","fileCount":21,"unpackedSize":226884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3a6WmLOb+pC3j3GkOE1a+yaLc4MoGie5qc6DwbE+SdwIhAMI48Sc6y5eCFvXk/+sHCx8BwqNh0E3PHTlE182W3nzc"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvTF+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqr2xAAkH4bvvTZiV3/CxE3725uusypMDCTq02YJ2EWZ7oAh+Gf3BW1\r\nLPX13J/EFHx0Xy6QrOWLZ0302+en/n05kQ+zQojQeLQ5rjuAg14+wlCj1Q6j\r\niYv71wuZxh2PzUEh0V4CLguATTxT9078bsEQsGpv0BvA+mi+lg6E1TPbYOTK\r\nHdhFZIAQ2O1o3ZGlRGzuwtmvnd/RQBCjltSWYDl8FY0TfWnG4I7HhM1u0w24\r\n305pr125zkbC3BVsJflBvK7nqkX6dwp4EbB/x+9LfTR4Fzrs5JrIzQcA7k1h\r\nQSsxiGItS4euSFGoyewQdLtWVVi8y0meC86jILnOxXTDfntAezAnPpZKsFm3\r\ngViyBHOz4TkTCiIdwxbilrUTFKzPtiz3pJbk0+xHXtQ6xUuQ1nqoApBUE0xs\r\nKcVoGLkljnn/7IS0RajaBzH5yN/jABHxiSvsEcjzOqtYG7wJtLweDx9pxu2R\r\nWdXxUSw2SBCTvAwMUo4XbnshazudJ1ZkLWXgN6mc0RvwcmZVRXzuPA1YzZm6\r\nJnvs3Fsr0vEKZkptr+0B1WyVXDhI+MyWy37jjsKSy3YADlkRUn3rtYSr6WJL\r\nrBaRBfoWjKM77M2I4n1VYugWzlW82jOm5ViKqYrgJVDt0nvVG6IoZqccnyk0\r\nszA3L+w7R7CxB9R8Gc2+S9bUBhuKcqvXMno=\r\n=VJWS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_0.0.1-2a6fede5.0_1673343358702_0.9446559114334347"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"5.0.0-5f73ecad":{"name":"ipfs-http-response","version":"5.0.0-5f73ecad","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.17.0-5f73ecad","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"5f73ecadd7d397029be8dd9bc0dcd82469f07359","_id":"ipfs-http-response@5.0.0-5f73ecad","_nodeVersion":"18.12.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-+YVDBovdX4wHRqRNMmmhczDlCWwQGEKJnydZ2ooQLL8szKS3flwHptnp72xuj/c8+c6arzpGkZXO9I1K+eTnbw==","shasum":"a5a4f34ba821614eeed151eeccc31a7038063e1a","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-5.0.0-5f73ecad.tgz","fileCount":21,"unpackedSize":226824,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQNLwSx8TL4o7S/zJH4ilywzSd2HV52XVvb9/SX1NIvQIgNkZSUBTlSQbjSbvt8yxBK/JF+egS4VSVweJdfStYFps="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvZ0SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqgcRAAgJJV7zBRUYC4R6O8EPxCRk6Y8pNYgCzi+L54i/uRCWT7xjjR\r\nVeT3UexVeQ/BTxskUJ5b7eQejNdUetgjKAAUj8rx2RWhsd4xIo9fciEOTkiX\r\nesQZqKDUlN85S2cWuaBtBW+c8EXwt6FYd1qihuOCdLrquOw8/jFT+1AS9lFr\r\nEBbekBdFNDSuU9CuqXZi2Ga/kah839G5zdfn1uxNcDAtdgZmuSmroa6R5VGX\r\nz662f6rLUm8M97rKl9Qhj2mYwMYqUVc6UBY2etgotjn0ujkoaJQ75xC2C1Jk\r\npzk47SOP/LC4uzf8W04N90jlS/KtYQhVcKPyfZKyWae2wHQaSGTziFyL8jNt\r\nO0DorYyxnJQH5/DffcRuOi/Dm23o2zaw0uY9pW7UabYdhPVMGa2Au17AtG2h\r\nl/Ji5rXeUemeJbVnEI/ORnShX+RC7hT0wf1M377wM1DcxowHWOYZ5dg9uzH1\r\npRPenWFwyEzIHj0udGrcwx5Egj4MV9muXyK6AWAhqjJNyucO0TUsz9f2251c\r\npU/hSUrIZVcFMAQVvfzUrumC0VYqx0bCf4X2dJIRq9iZUeNiajtyHW/M2P4e\r\nqCnt+6CA5mwf+qrIUj6TtMspZOyhdB+pk1yvzfjuzjBf9hhTc7r2V5d23NhM\r\nZKW4seJZ3WssxFJcFePrUdm5EJiov4k9Efk=\r\n=K+EZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_5.0.0-5f73ecad_1673370898025_0.6408307032052591"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"5.0.0-4b4c124c":{"name":"ipfs-http-response","version":"5.0.0-4b4c124c","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.17.0-4b4c124c","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"4b4c124c4c49b1c60a68b4b8e24f1f00dd7f0517","_id":"ipfs-http-response@5.0.0-4b4c124c","_nodeVersion":"18.12.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-xSnwksn3DlEM0FMts82nYrSbr2xOLfEy53cfvAhKkiPU10ETqcBkkdaEES1+Ql+ojN0Sq2qmg3zxAzLFZ13MdA==","shasum":"df11415f227fb5510f89c5cff7b03c0baecdbe01","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-5.0.0-4b4c124c.tgz","fileCount":21,"unpackedSize":226824,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHoiK0h2Rr1EpHMoGfJP+UNLiFbVkO6FJihwwDAk6hCzAiEA6LXiPIp5HO06RQJFvn1QwAR8YsBhRXSXF4lIhFXqr3g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvt5+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+/g//XccV5J5Ymv+EFqjH9mSBnD9tGZ7hrwPWnQ2n8f25BNCnjmlV\r\nG1+W8A4ctXNNk+AQQI4QTuuK0rrE8H/RTEusg0ApMh8eWa6IsZjQ1Ob8S1TD\r\nVYPKCpULBVE049rSPvA9fjmLg7cRrC5xr2/0pjZ5SkZcmxkmkRXsgGDe1yoK\r\nnkprBaQ4nHV9KH4Y7BSFlbrAuDxV28f8V0lXTu1TVoR9Rc/ZyNXyF01+BFd4\r\n6yePM0GDS7yOzREz8xAxvef0YgktAE39FxLAY9mni/gmsl28IMNANMqgHosf\r\nHAIi/UWe/iD7HUjhckty8P4hYgzxVJHQIF25d26iNrJrkPb6mdguhe256rQs\r\ndJZiXTukhjlzxcAw7YkxJsXxH/ySOL4O7f6sL5NN9FSnbat3q3fkhXGkG46i\r\ndrJivo1Tq2kNoTR56t3yP4tleIa5VlprigzGD37Hi4HaJC9tNv/5+avsEzbz\r\nw/umHCq6OJAQx1GnavmycwR11/12cM8XyC3K1/Id/Shmj44WK5Q25B+8MZsw\r\nlgADBgjNKrA5J2iOLR91+OJnrOZgVpy/4qowL06VAYzN/jCFu8Yyy9OwO/8S\r\nf8GJd64hmQJilYBRdry1EEQkW9VEbfmn9//sEPijJ74OvhZiz3iPO7bKG1Yn\r\nusu6yFUp/l9Nw31b2xE35Hs6TXmDxV5hxCM=\r\n=jNKh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_5.0.0-4b4c124c_1673453182099_0.525890285486007"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"5.0.0-789ee585":{"name":"ipfs-http-response","version":"5.0.0-789ee585","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.17.0-789ee585","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"789ee58556083ef71a4ef44e3358f86c5be101fb","_id":"ipfs-http-response@5.0.0-789ee585","_nodeVersion":"18.12.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-7v9q628vfobGJowRQ/l7eVswwvEB+tcQjvjcZr8mcsarP6+mqSHtGQ/7ftxhK+l8uymeaHb3o+0FzljM+N2HPw==","shasum":"925bba3ed77c4e1d5e4754b10d7fa5df5f8ebfc8","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-5.0.0-789ee585.tgz","fileCount":21,"unpackedSize":226824,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDJ6KDZ9Vffc2WMQEqoQhhCoF+HTUpxefWlx3y2Us2eCQIfRNlOon5UdwfSGi9SSI/bzPSkkUiXljVdsqckCzGPpA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvuxzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3eA//Y4HmvEZrWmzoKny3s4MuHzIkJjbf96S1SqLfNUiYUkVX2rcP\r\nqTG1ixS0tJ9EJ8OPkGDRpT+1F4FQ9wLepJQSOA+eWPaIxL0My0emI0cR/B40\r\nBssHP0by5v1fDJuJ4jtC8p4jLWptOh7zsTS8gbq0H7HA0fp3XjUk3AbsqpBo\r\n6R7prZr591eNGi3/dUkLkiMIetY4vhhgxZ4oCB50PIfvwf9vZen/UWaLUtZE\r\nC4IWXk+gC+szSgk9OG2R5WxJA7TYffFX/dKVwLJu+RI1u5Ubqsg2TEfBx6io\r\nd2M2BJOsvy1VxziFpv4uf15Zx/CA3RS14mxFw4iEsd6r6UHfMQ1NawY14vHv\r\n7ZCwIbSffL8FEJTLlDefw31GVyfI+L2lXgNz7Hir42lALGXB24K51Tii8peO\r\nMBu7Vk3/IgOVUaSAmJN/WI5DwHPDo3MUu8W9+EWH0O1qt09KNTTn1cVtM8gB\r\n8JAk8fI7mYALLfxpK+UMadVJlrgiLwOxybEyZ5wmmpKXIpFHjbV7+UM9K582\r\n92oAEnZaB7kUIG91GJy60Yd2+QI8qOOimJ8zhhKMLXUsv1jnBT3C9ngasgFO\r\n5RFJna4cIpY7skVDmBO7GIBkfkaEwyIlNMdKkF/0IU3VulYfhnWmfs5iLyV5\r\nOpcphCSXS4F71y/eB5lu9Y3nmGg5Cy+Qf5U=\r\n=uSXR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_5.0.0-789ee585_1673456755360_0.49774316353450954"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"5.0.0-fa578bac":{"name":"ipfs-http-response","version":"5.0.0-fa578bac","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.17.0-fa578bac","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"fa578bace93e459849a0ffcebbd6f222dc05652d","_id":"ipfs-http-response@5.0.0-fa578bac","_nodeVersion":"18.12.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-wBMC3vYCItuJHCPJNXMrLJyyH1oa/lQuxCVLjwW+ebkYrRfkSVkWBc2gDARVzShmNA0n82ay8Q+tE253O6+Oww==","shasum":"bad84814f50da931c330d9f295b7f840f1683d64","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-5.0.0-fa578bac.tgz","fileCount":21,"unpackedSize":226824,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDTphLOKq8gYGshJlJFpL8N9SseeeePrwLLqipb4+ra9AiBTenM/yKghtMXUzukVol3fYxa6JFMHOwD8RKkEB3fWlQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvvbyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/RQ/+LW0cwFqxfbffx2aOrsaoChA5STwVOk9AloOTw8hxVzni4H4d\r\nJAn7fpeK4iLhy2tyax6Qi0oezpF1is/SFuYieWdpHdJfno9x+g2I9UDnVL1V\r\nu9H/2YIFcqzz+ZkvM4R4omKO/Blzi6cEmD22IqiTtVWlqZTr4rGnAZHRofHG\r\nX7nGKJ4RtrVJrGPobAoxdumSmxFGvPjWOfesWAxvU3yQ/vaCt1M2PaQooxi1\r\n4Oii9CP1TguEVV5OuJh43goumMusiD4sBeTzLMEc6Qsp0TKs9SLywvYFUrM9\r\nY3WpngOEHXx+ZJoOcp5B6SF2Yavsqi2V8d2CZqgOs/ymE0jbQmm1yY6O3+pr\r\nkPtiL7SkE4K90J8BPtS7k30izT63WLwl099QgBbFR/frCfx0xjRBtmqybM0Y\r\neoR5UYOQcQVEr6Vvlcw07hrLfYhAHAsGkJCyMgjW7dj1pxSX3qlUz8GcRYJS\r\nGEleN0jadnjLardNoDzu/0TthsPO5l6M+0b43VPDqzbVhU7clir7+dCFp8LL\r\nqPvb2e/UZvBrTbkcg4EVQOjoJl5f3vn1ORxXtGGPD27z+KtQ/TZ9rBfKFR0+\r\nS7Xu4ly0W3x6K3sHSruIyfJxqGns9XhrvzmaGRHsvsDAsIzqRwG5+NuBa1Zd\r\n6DGim+5JgI+XbUuBacXgWBdogdPW35Hy6KM=\r\n=sYI7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_5.0.0-fa578bac_1673459441998_0.7826226718730238"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"5.0.0-d1c3abb3":{"name":"ipfs-http-response","version":"5.0.0-d1c3abb3","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.17.0-d1c3abb3","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"d1c3abb32b57379b5446d5eda232d7750a2ecff0","_id":"ipfs-http-response@5.0.0-d1c3abb3","_nodeVersion":"18.12.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-lHEUb44FjMUleigwtIviSVOYUONaUlmKPAl7kuGyPC1Nu80HCYgvwvfuCkOSWaCQAq48L4sCvmgq+CCfj/RXpQ==","shasum":"418e39dc6e937a4cb95fbc80b84adc90fc7955af","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-5.0.0-d1c3abb3.tgz","fileCount":21,"unpackedSize":226824,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGiv6RISET+OEJMAi/bHGM8nyll5xxbAOLwdG61IGcPgIhALTS0pLiWqngUJtnLcleDQ5svdV1UwMosv546UuuidPG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvvtOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVmA//cl7ItIrpjA/PIM/+Umji8TYKSOYq68BzNDQ/lM+COJP+MV1O\r\nJSX08vZ9esChYdCG7IJdO8ls7FzCH6397PpCf9cVMbb1mHrisPu2xS9a/Tyw\r\ngZkHCNGQfqcyE0Xlbd3HNISMnELhZ4Fpwhy0BaQrd3XRfAqhd1b8VJKF0yJh\r\nWRgCLsTU9US+CzVHRiyjMumcmesLC/BVHCJNp95gY/rBQF6oCRCKhW738Bua\r\nLaORpS2MZ25zN2Uh6mlfTD5KJ4vWoPo/Qx91HJjLmaluzDthugMR4pg6tQ1j\r\n75g4JNoPSy3Kw0SHdTjdbuu2NOYukcaVAACB6qd84lwuMVs6Sv0PBgjre+AN\r\nlqt0mtcePgouHDNNrTGzTpb9oyGniprdPiqTbIdJn+cSH05jwtHEdpPLl0IQ\r\njJ3U7o+XJlmiPsHuKkjwX7nTNpklrA42+82nSHL4apvecInbVGOYVEOf61jK\r\no50+I46urbiVdKEq4xUMTbkPhBFiqqLHpuzWWMyyzIElJherfkcOWdlzoH4S\r\nBlmzjkXAObz5gEmocQ6DYZCCzafOJle+sknfCQKyC9uFLMcx7d7rgBw1iIeT\r\nqoaO7fNTrtlGKJlcghQCaXABrHqnCBDQvRSkva3xsyfLI4AG7hbyRWxDoG7g\r\nALj/paDYjrq+gu8/a5/jMBwUGtd+fWuBLUU=\r\n=3MEm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_5.0.0-d1c3abb3_1673460558496_0.7524979872856452"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"6.0.0":{"name":"ipfs-http-response","version":"6.0.0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"^0.18.0","ipfsd-ctl":"^12.0.3","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"6e940670681859682d41ca1339744955c9ee20bf","_id":"ipfs-http-response@6.0.0","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-TX8yuEjeci/GiR//u2k73PW8H7xjs/xOGRA5yUy9QymELfDws5ONg26dPW9MWAkGeB1dL22ePsKtQRKSLPY4yw==","shasum":"b9db75748b933e68233733879fb1d1fb2f10c76a","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-6.0.0.tgz","fileCount":21,"unpackedSize":226807,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEHi7+TY4GEiQSh5U7ga+nHn68z2syI7RFNe/q56Z36gAiB0CTI0aA4kVUTtKOw5ijZohsPKn7/X0hsAutPxP4U17A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv/DUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmriAhAAmckDt7HlSroYsDgXU6rsatbU7GB+mlA2BO5fJW6Oub25ZSsO\r\nsxIxbb7+M+WAmyUmP08OzZzWGkr+cMAEt6Q52TL3/gVZRFGNn2yUkVYjw/SL\r\nLELOLAQmcIDMJtu3vTCKz4bTY9YxF6ZNsPPf4CMaIxU8tvQWt5JGP5y1pfVb\r\nJQeiVOzAFtpYaDtXUCK5275X7aJY85fnj92l/9I1yCSZwobvZicOIoZ9U4kA\r\nQG4SC5KAX394OI912UO5xKhpMvqmePVH4/uqtz3kxh0P+KKebIcqaXiKBc8/\r\n0XXOBKFNtgJf7xniZY4l6ya8SFX7IOGmrrLFp7DdLyFSc1EbcUlgqLxRTYUe\r\nhpUvy/yi+NVQ6mu9hBGfQRbcjd+YsSf2Ocf9v70/7pXk8v+IztoGn78zHuAw\r\nX4/9TJxvzp/F6srDjxvR/a4nHCjHmd+8zzJOSb5A/hevnbDDO/6YsgP1L58O\r\n8uegwoOhMYm5d4u6CUXXUIRmufKe/DNd4AIT+iqqe/+X90xu50yqPGJK8qJs\r\n2KxIyQau8GyChr8z7Oxb6yGX8kaCeoxzOly8pksW2DFFNt+mkdJM0xnGK6ah\r\nJREUxh7nBkFx0yqV33cB2W/cY0b0ujE+TbKj5XrxCkhXgzCoUXSKhjosCTor\r\nwwT8t7dp76Zrr7QAB6xiUpZsY5Pr+4XxKZM=\r\n=nI1g\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_6.0.0_1673523412648_0.016500401861679448"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"6.0.0-6eeb1be5":{"name":"ipfs-http-response","version":"6.0.0-6eeb1be5","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.0","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.18.0-6eeb1be5","ipfsd-ctl":"^13.0.0","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)\n[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)\n[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/workflow/status/ipfs/js-ipfs/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"6eeb1be57c8366b82351030e49a5886d1aff8bf6","_id":"ipfs-http-response@6.0.0-6eeb1be5","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-qGUTX993b3EEtYuNv22Lf/eVA12J0ALKFNpB25JXaHrTFCU9qVMXo+c5LR+1+PueCI5PEcpjd4CznOuNBgOBNA==","shasum":"206cc230a8fffc531c6fe25820b7f13b64c55c74","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-6.0.0-6eeb1be5.tgz","fileCount":21,"unpackedSize":226824,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMlCO8KoOnZgbkzgUGbP59Vvcx8bIqEONfhxA+1mBpXQIgS1slfMkooC4nRhQYQLjdD+reev6T/rfJHnY9XN6aVKY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwaEHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDuA/+LnSYRRZfSxFD36OdWj0mxJbh4GtfE5lQHP5zbfDgpnmMmJCh\r\ncT+XVxqg0oon4sW5TDCkV22S1rXZhsK+xG1DIH3a0DwONUl1CkvECVRp3bGi\r\nS7oTcfC2J7TRKErHToYSSok3tVqsRovIjKZs5M+6Gr6v4jWb+lt7iHpH6C0i\r\n9sSsrgIVr7Wi6rhxLGO1mEvhjDdOrbGLCQaaUo8OzM8G22pPANT87yCwZoaK\r\n82WcusQrwU92rO1ow9QIwkMpTh3V7Xid4t9eQgf2azwuoZRLmR5vsB2z2h1A\r\nAtx2PsHMjrZcXkcjZ0G6MbT5dCNBh2z3SP/ohUTgK1+Cj5fb7alhHbq+EXqx\r\nprdv9uPj9gD5RYoZ8/I+43eUpT0594nLxdxZCnTKfQeI2RKGtDAD1pvrHI4h\r\nIe6PQXX7Y3/Cd0TLrhIr+XxxyeISBCTCjzILLP1vQXtTwVe0yQDdSjah66NW\r\ncbYCmxJTXreQvNhg52Mu2wpbb8SoQqBDWcc2uclSy0J+q5i0WgLgNyvK+H6W\r\nFpxWs78/IemK5y2Mcmv4gmt36LmM7yeUmNKv6h0KFIjHAxE/hMwWBjgPK99n\r\nUAXnz6zTj2ltF9lEXBiwdQxHfN0wOueje5Dmg5J6w/P42diSB9JPs73KKyrs\r\nXE+xFBk8xsVc7nlSXMVDD7Sw/56B0Jz1TTA=\r\n=xbUz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_6.0.0-6eeb1be5_1673634055296_0.6067443639728023"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"6.0.0-ab02e8f8":{"name":"ipfs-http-response","version":"6.0.0-ab02e8f8","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.5","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.18.0-ab02e8f8","ipfsd-ctl":"^13.0.0","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)\n[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs/js-test-and-release.yml?branch=master\\&style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"ab02e8f8b3cf8f4eeb9991fef3b0104728ced675","_id":"ipfs-http-response@6.0.0-ab02e8f8","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-VFhu7adyN6K4qSAaytq+5SHjyuM7OpgLODU/K4xROPE1u4JIl4rAGMqvsRtVr9RHRvXVGDP0VGYdVIHiohlVYg==","shasum":"662d91c9cd62e53cba7f891df4e97ca8506c1c0f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-6.0.0-ab02e8f8.tgz","fileCount":21,"unpackedSize":226753,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICfqFKGEZ37MF79OlH7A8594Mt8lk9/IwDYZLlwYU8UUAiB63ERpSy3zIa5/4+Ykn2iWq4offzR1fgjVZpui/qGKYQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxpOAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqP3A/+IGe22zu/siHX3GtRR+CSh/DNr8Juw7/BpzalLeshmFzO8a/t\r\nw4dPkbCBSCuntfxiJdrpONEd2ZZEikNRfL9anTIVJIrI0Pa56vjbTdh4FVxH\r\ngWYmYuK6UeVh2K1VNDe5I2p3o+uwtrPQVQanqeVqNofOW02A2DonOpR9XSYX\r\nH1ZVUTlbt5X4pw85oZVyoA7LIh41gxBUATlCvijW6IpE9XGxwrcQTfGz6b5D\r\nDlPAsc0qbeYFbecwpa1Y4z/D+zzCOT4BqhwMbgXR9pNlBgWmcn9SvWpiLqka\r\nkbwr6ky4UCJu139Mzx99OdAJAFbqHj/aJl0OAlpB0E7ivLXEjyDjWWiSHjX2\r\n49Ms9bZ/ZBCY8dOeZhDn7LLnw0z3HSCDNQgeZCw2bcyoJtaVEtqv8v1skPGJ\r\nfrq6uPQIbzZoYMSM1syfJztyWruLt2pDDyQBISvhMETXMK13M6//3svXqJkw\r\njRi2RX54v8Z9yaQuHY6EYupuLay75qWlC2bf6z6PhcI31UWa8JwIFOYQSKHp\r\nTCGpmht3o6QtgbNRsSz7cEv1k1Q4gvG1+WAFjJE2/kJKCX18wVMpe5ro8vfI\r\n3nW1lAVze3JwxoXI+M/3YnKsythUnXDRuoIJmry5kPxZW8dvbtGDkd5LqrSe\r\nYi97dXmtvhIrp/YPCxUCaXbLmQ4BVP7jEdk=\r\n=2r4/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_6.0.0-ab02e8f8_1673958271805_0.6047064199076635"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"6.0.0-3bcabe38":{"name":"ipfs-http-response","version":"6.0.0-3bcabe38","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.5","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.18.0-3bcabe38","ipfsd-ctl":"^13.0.0","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)\n[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs/test.yml?branch=master\\&style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/test.yml?query=branch%3Amaster)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"3bcabe3818ce8bbbafe0cbb68749b286d8a7edd9","_id":"ipfs-http-response@6.0.0-3bcabe38","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-SDT4zfsUet2GjDieZdwT5F2WFWBaD8id5Rm2YbQKke+w1eE+upQ1iD0NC4lSkR3ijus/DySqwqQJeTc6YYmfPQ==","shasum":"b6c7b03f3b8dfda19b1047904972ef63939525a9","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-6.0.0-3bcabe38.tgz","fileCount":21,"unpackedSize":226723,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6cp2tGHYFoUsIj5FTokxc8AJRcuebUJiBWUWH04gYkAiANiAZ7K7wNGSZhQXZl36ILgejfwhnm18UAzzUFcPuZvg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxr9kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJBRAAnqj5WHbua0aYWjdTzhHgS/8pecVNjtz4QF/PknQbV0BSicoJ\r\nRO5rD8q3y8qLEnOUQUk/jujhqMUpbJRfxbbKPYn+DqGwGQWi4YXrYOjE+ObT\r\nz0FH2ta2i6Lq6lopzdCIjjZnoW+3xnuLmyRkl7pzFA4t4XUzhkoJfjqds50Y\r\ng/FFTDFSuxSo3OBy8609p04HjxYAiLakfTmfkIzgA1gX+UPAk4BToEADcDiH\r\nbLPyIMtl0XUv89+GAGf/GjDenB0Ne2YG1MvfQHP9/PHBW8xEULrmDb4EA6tx\r\nyLXn0i++x758PFxiQZ76+xNUUymMQKkFHfgLCLnjuB55lNDoMlLLxNycXHkF\r\n234H6CotUC5JmInFn/nqeTGg40bxPbZwburRuorls3FJ7fPPGkEYKimJOpcE\r\nyBIiNPeNbbyissne6/YA90AWL8oNOIihY9eJO6bI2qTrqKaPD1qeoqWJuaw+\r\necKtWRVkeHl6YryYcbz1x/ejI3jhbxfjx8Gm9ZpX9rS/4irJunsL/LFl140X\r\n8Rf444ljlN7quZePM8+dehD5nfY8tD0VzDcfkidfJ5RdPfpMABRM65xzBp8q\r\nj1OMo3GtjAHmz+Go2JlfZmD6hX9LBUZAb+VKVAYfK1K5Ux/SoqYKPhHOJMGX\r\nPpXJ7GzSDARW6ekbQpXSU+Mumo6JGYs54Xs=\r\n=DwtD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_6.0.0-3bcabe38_1673969507742_0.9075856939978051"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"6.0.0-b64d4af0":{"name":"ipfs-http-response","version":"6.0.0-b64d4af0","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.5","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.18.0-b64d4af0","ipfsd-ctl":"^13.0.0","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)\n[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs/test.yml?branch=master\\&style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/test.yml?query=branch%3Amaster)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"b64d4af034f27aa7204e57e6a79f95461095502c","_id":"ipfs-http-response@6.0.0-b64d4af0","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-wiIm9kS6kBO+YxhiE/S5M8mx+lCmiNXTsH9e/yc5WAgPhjW82bMGOp6tykfB/SlR1E8c3jgOKsGRrcVTKz4VGA==","shasum":"e4670dfe208f6964c8b1e2af652aed36f3ea802f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-6.0.0-b64d4af0.tgz","fileCount":21,"unpackedSize":226723,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+N+VbrSQxXmpSiiWOYMCLEwjULNGcgKMB2DKtAJ8JowIgJHtJywOCZO0+hARU4AIHyVGBKC9U2aeVK28NIhdz3nc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2kwBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPJA/9HuIptZHoj8qQPvNNNTnmQEU1wy0cfExbSXDPnMPNytpD+NBW\r\nMFZhUMVp/YJmS7ZTWRKpUtlHTxpJDc5smamK+AzV30oncdpRVAoUNPB4eryT\r\nC5NnZ9Xyx39Ll9lthM0nILWvyU9Tk6IIsfZhMM0LD6a3JQC1dzMHoE13vZIG\r\nivCnynGmyZ32zzgLKUZQXEMKoOCugxq2Hlrqu4wi1IHcwxmBbetMrHrcHjLK\r\nd4h+BPQbWKZTfBlGvY3wFxn4f5sykhHVDBGl3Q7YsIRotvqV08jJsNp4m2SR\r\nGc3rYShrXQnlYwM5p5d7ZIWFMC74ehJvytB6WMqB7s2A+0YNayHFMqmN9jPS\r\n0ngnR9//70hbVEUW8slkP0Kk7XBPBzzptp8/1mBYGci5wwRjQ5if9XQFj1hh\r\n4eLCBk0sS0G/BEeqlIySGtBQSemH9/NP9My5dUeU/Q9buNzLaFcWmqinOk8A\r\nBpTC/Jhb5Rv6goTg7ZDjcYAhx+MhDWeXEcVFmBi5XDOnv11rWUhihlX+ApmF\r\nk0SEkyxFr2ITcLt1sLo6+iHvZi9li5Cg1phRIuwobkt7POQXxnVGSuTAc0VT\r\nitcXC9mV+mXCwyVVm7W0LehRII9ybAk6UWTFHK/Vs0G0Lhlpr0Ja24FoTdMB\r\nn0ckVsr0SSb+4X9y19D2cicVtgOGJyx01Q4=\r\n=oV+N\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_6.0.0-b64d4af0_1675250688952_0.22226997281776084"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"6.0.0-e64813f6":{"name":"ipfs-http-response","version":"6.0.0-e64813f6","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.5","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.18.0-e64813f6","ipfsd-ctl":"^13.0.0","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"> # ⛔️ DEPRECATED: [js-IPFS](https://github.com/ipfs/js-ipfs) has been superseded by [Helia](https://github.com/ipfs/helia)\n>\n> 📚 [Learn more about this deprecation](https://github.com/ipfs/js-ipfs/issues/4336) or [how to migrate](https://github.com/ipfs/helia/wiki/Migrating-from-js-IPFS)\n>\n> ⚠️ If you continue using this repo, please note that security fixes will not be provided\n\n# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)\n[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs/test.yml?branch=master\\&style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/test.yml?query=branch%3Amaster)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"e64813f6fdc681328da7cb893c93e1f4f70bfc99","_id":"ipfs-http-response@6.0.0-e64813f6","_nodeVersion":"18.16.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-WmR9ROB3ZGtf2yBPcHCKLRg27sBQfBMK0HqLXBeM17QNNu36ulD4Ji2Dl9xIJmxTrEaeNkt2m0v++E7CAdVKxg==","shasum":"1fb5a17b3d324e052151d66ae0258b5f8a6e894f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-6.0.0-e64813f6.tgz","fileCount":21,"unpackedSize":227118,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoExfVSsp4Nvi25ZaXLv9OAhjDqce1G1NWVYNpC+IyJwIgEbGhh4XwZfxexzTcG8HLZuQCDqG6AO1A5WZcnpDPrXY="}]},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_6.0.0-e64813f6_1684953968762_0.38445757848006323"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"6.0.0-4694e806":{"name":"ipfs-http-response","version":"6.0.0-4694e806","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.5","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.18.0-4694e806","ipfsd-ctl":"^13.0.0","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"> # ⛔️ DEPRECATED: [js-IPFS](https://github.com/ipfs/js-ipfs) has been superseded by [Helia](https://github.com/ipfs/helia)\n>\n> 📚 [Learn more about this deprecation](https://github.com/ipfs/js-ipfs/issues/4336) or [how to migrate](https://github.com/ipfs/helia/wiki/Migrating-from-js-IPFS)\n>\n> ⚠️ If you continue using this repo, please note that security fixes will not be provided\n\n# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)\n[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs/test.yml?branch=master\\&style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/test.yml?query=branch%3Amaster)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"4694e806aea15c66db32e3b4be81c0a5e2fb8ade","_id":"ipfs-http-response@6.0.0-4694e806","_nodeVersion":"18.16.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-46iTyJm3y/+Rx0fQhftM9rrXp5b0VI6VhA5vfxE4gpOOZyOqSBESFhwcFHC+K6N9nSFZ7F99YVNfUh3xFY6DRQ==","shasum":"a2f98c059187585e4f00fd92c244ac6720b0e2b0","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-6.0.0-4694e806.tgz","fileCount":21,"unpackedSize":227118,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyfH3wRYFjC3h0WqvNnwzrOXtv2zpwF3QwjfaEiAy3qAiEAlnAjWzhCZhY+mvhsatHCwkhByDg8apEbHx377ia/ci8="}]},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_6.0.0-4694e806_1685014326533_0.34914185457813307"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"6.0.0-6d95ce08":{"name":"ipfs-http-response","version":"6.0.0-6d95ce08","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.5","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.18.0-6d95ce08","ipfsd-ctl":"^13.0.0","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"> # ⛔️ DEPRECATED: [js-IPFS](https://github.com/ipfs/js-ipfs) has been superseded by [Helia](https://github.com/ipfs/helia)\n>\n> 📚 [Learn more about this deprecation](https://github.com/ipfs/js-ipfs/issues/4336) or [how to migrate](https://github.com/ipfs/helia/wiki/Migrating-from-js-IPFS)\n>\n> ⚠️ If you continue using this repo, please note that security fixes will not be provided\n\n# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)\n[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs/test.yml?branch=master\\&style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/test.yml?query=branch%3Amaster)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"6d95ce0864055e5236ac88c0999460ebc5075c10","_id":"ipfs-http-response@6.0.0-6d95ce08","_nodeVersion":"18.16.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-aK501kX4c2vE3BUk35aPS/U8TT61Oq/X52CZR3neMRuS75G+eWZaxAakzqaF6GT8Ba9nWCd6JFqkaHPxg7lpkg==","shasum":"fac846b0a7f963d4f4fc563fca7d761bb2d25452","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-6.0.0-6d95ce08.tgz","fileCount":21,"unpackedSize":227118,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUNVrvLlIIHiwD5z9rMzeG5rd8YIIhMRFKOjCr+eme6gIgUWtU4GlYwuIrfQYq+h9N7IaGTMSfsPbFnyneWsrjg9s="}]},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_6.0.0-6d95ce08_1685016659781_0.7409111891539124"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"6.0.0-7b79c1b8":{"name":"ipfs-http-response","version":"6.0.0-7b79c1b8","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.5","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"0.18.0-7b79c1b8","ipfsd-ctl":"^13.0.0","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"readme":"> # ⛔️ DEPRECATED: [js-IPFS](https://github.com/ipfs/js-ipfs) has been superseded by [Helia](https://github.com/ipfs/helia)\n>\n> 📚 [Learn more about this deprecation](https://github.com/ipfs/js-ipfs/issues/4336) or [how to migrate](https://github.com/ipfs/helia/wiki/Migrating-from-js-IPFS)\n>\n> ⚠️ If you continue using this repo, please note that security fixes will not be provided\n\n# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)\n[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs/test.yml?branch=master\\&style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/test.yml?query=branch%3Amaster)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md","gitHead":"7b79c1b8df5c818dc124b346ea28330455732d5c","_id":"ipfs-http-response@6.0.0-7b79c1b8","_nodeVersion":"18.16.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-yMwcRd79zJYQbJN8hi1sgYFwikrb0ckvdGSVf30r/bV/viEpgAqBibIZVSVvm6XNlxSRyG+V46aJ6L03lf3yQA==","shasum":"29fbbb92366c95f8ff3bf56d1268db7a28d7e91f","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-6.0.0-7b79c1b8.tgz","fileCount":21,"unpackedSize":227118,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC3OATmkJ6OFIxS5uN6A45jjvvWZf3yzrWT5Az6IijxOAiEAiV7lhX1T9USqnOql7Tn+f08c1rNmWvGrkLkpz09zIMA="}]},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_6.0.0-7b79c1b8_1685018803666_0.18779682438570933"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"},"6.0.1":{"name":"ipfs-http-response","version":"6.0.1","description":"Creates an HTTP response from an IPFS Hash","author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"license":"Apache-2.0 OR MIT","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"keywords":["http","ipfs","response"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"scripts":{"lint":"aegir lint","clean":"aegir clean","build":"aegir build --no-bundle","test":"aegir test -t node","test:node":"aegir test -t node --cov","dep-check":"aegir dep-check -i global"},"dependencies":{"@libp2p/logger":"^2.0.5","ejs":"^3.1.6","file-type":"^18.0.0","filesize":"^10.0.5","it-map":"^2.0.0","it-reader":"^6.0.1","it-to-stream":"^1.0.0","mime-types":"^2.1.30","p-try-each":"^1.0.1"},"devDependencies":{"@types/ejs":"^3.1.0","@types/mime-types":"^2.1.1","aegir":"^37.11.0","get-stream":"^6.0.0","ipfs-core":"^0.18.1","ipfsd-ctl":"^13.0.0","it-all":"^2.0.0","uint8arrays":"^4.0.2"},"browser":{"file-type":"file-type/browser","fs":false},"gitHead":"bf1bc8b18d750d5591bdd575a6d0f4c067d61d0a","_id":"ipfs-http-response@6.0.1","_nodeVersion":"18.16.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-tnXDr2zTpxCbtueByjKUo1OA8IOruw8mOVtQevAs6gn+362oJ695ddOH9rpsKk84rn9WpNP+ds2+kzkWAiQxYw==","shasum":"67a25057c62545fa5bc150808a4d1f86b8bf73a6","tarball":"https://registry.npmjs.org/ipfs-http-response/-/ipfs-http-response-6.0.1.tgz","fileCount":21,"unpackedSize":227101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLsYtQuP4okz7f7q2hBjp15BBZUh9r3iMql5ZrO1wzQAIgZnfGl3OKjRCTKBh3xImIF9npalTGGhCR5eAxk/d+vIo="}]},"_npmUser":{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"ipfs-npm-publisher-bot","email":"alex.potsides+ipfs-npm-publisher-bot@protocol.ai"},{"name":"npm-service-account-ipfs","email":"npm-service-account+ipfs@protocol.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ipfs-http-response_6.0.1_1685026806225_0.06915224209896276"},"_hasShrinkwrap":false,"deprecated":"js-IPFS has been deprecated in favour of Helia - please see https://github.com/ipfs/js-ipfs/issues/4336 for details"}},"time":{"created":"2018-05-24T10:52:53.269Z","0.1.0":"2018-05-24T10:52:53.394Z","modified":"2023-06-01T16:26:27.526Z","0.1.1":"2018-05-27T14:23:28.870Z","0.1.2":"2018-06-01T15:13:59.697Z","0.1.3":"2018-07-28T17:00:30.756Z","0.1.4":"2018-08-02T16:03:12.595Z","0.1.5":"2018-09-28T15:53:19.924Z","0.2.0":"2018-09-28T16:00:42.435Z","0.2.1":"2018-11-09T16:22:49.691Z","0.2.2":"2019-01-19T15:28:36.713Z","0.3.0":"2019-05-21T11:05:10.542Z","0.3.1":"2019-06-06T18:29:46.891Z","0.4.0":"2019-10-14T10:12:41.654Z","0.5.0":"2020-01-07T13:34:12.799Z","0.5.1":"2020-06-30T08:34:47.587Z","0.6.0":"2020-08-14T08:16:13.184Z","0.6.1":"2020-12-22T12:13:08.647Z","0.6.2":"2021-03-17T09:01:39.667Z","0.6.3":"2021-04-12T12:54:06.859Z","0.6.4":"2021-04-16T12:21:12.782Z","0.7.0":"2021-07-12T08:37:07.413Z","1.0.0":"2021-09-07T22:12:38.631Z","1.0.1":"2021-09-08T07:52:17.428Z","1.0.2-rc.6286":"2021-09-28T12:00:10.203Z","1.0.2":"2021-09-28T12:03:12.774Z","1.0.3-rc.0":"2021-09-28T12:07:37.794Z","1.0.3-rc.1":"2021-09-30T15:48:48.034Z","1.0.3-rc.2":"2021-09-30T17:39:06.104Z","1.0.3-rc.3":"2021-10-02T12:58:10.353Z","1.0.3-rc.4":"2021-10-08T14:32:56.757Z","1.0.3-rc.5":"2021-11-04T07:26:14.750Z","1.0.3-rc.6":"2021-11-12T11:31:10.220Z","1.0.3":"2021-11-12T11:54:28.082Z","1.0.4-rc.0":"2021-11-12T11:56:04.003Z","1.0.4-rc.1":"2021-11-19T15:42:02.355Z","1.0.4":"2021-11-19T15:46:09.507Z","1.0.5-rc.0":"2021-11-19T15:48:23.329Z","1.0.5-rc.1":"2021-11-19T17:23:24.180Z","1.0.5-rc.2":"2021-11-22T16:17:12.677Z","1.0.5-rc.3":"2021-11-24T09:35:35.569Z","1.0.5":"2021-11-24T09:37:50.944Z","1.0.6-rc.0":"2021-11-24T09:39:27.789Z","1.0.6-rc.1":"2021-12-03T10:51:49.106Z","1.0.6-rc.2":"2021-12-03T13:26:16.013Z","1.0.6-rc.3":"2021-12-03T14:05:22.591Z","1.0.6-rc.4":"2021-12-03T15:01:29.050Z","1.0.6-rc.5":"2021-12-06T10:37:41.111Z","1.0.6-rc.6":"2021-12-06T16:28:45.191Z","1.0.6-rc.7":"2021-12-06T22:23:32.336Z","1.0.6-rc.8":"2021-12-13T11:34:24.222Z","1.0.6-rc.9":"2021-12-13T12:09:18.278Z","1.0.6-rc.11":"2021-12-15T12:50:11.801Z","1.0.6-rc.10":"2021-12-15T12:50:26.945Z","1.0.6-rc.12":"2021-12-15T12:52:51.907Z","1.0.6-rc.13":"2021-12-15T18:25:02.029Z","1.0.6":"2021-12-15T20:27:29.315Z","1.0.7-rc.0":"2021-12-15T20:29:42.406Z","1.0.7-rc.1":"2021-12-16T09:06:20.608Z","1.0.7-rc.2":"2021-12-17T09:57:04.166Z","1.0.7-rc.3":"2022-01-13T18:31:07.864Z","1.0.7-rc.4":"2022-01-20T14:26:21.453Z","1.0.7-rc.5":"2022-01-21T15:45:55.912Z","1.0.7-7fe0da57f.0":"2022-01-26T12:13:39.922Z","1.0.7-5439a0e.0":"2022-01-26T13:07:22.856Z","1.0.7-a6b201af.0":"2022-01-27T15:37:15.087Z","1.0.7-fbe14923.0":"2022-01-27T18:17:15.081Z","1.0.7-6cb3a87e.0":"2022-01-27T19:12:25.148Z","2.0.1-2afef2eb.0":"2022-01-27T20:08:45.925Z","2.0.1-3a5d61d4.0":"2022-01-27T21:33:29.050Z","1.0.7-cca6e321.0":"2022-01-27T23:03:34.905Z","2.0.0":"2022-01-27T23:17:27.013Z","2.0.1-8d260215.0":"2022-01-27T23:52:45.223Z","2.0.1-2c8ec080.0":"2022-01-28T14:56:13.431Z","2.0.1-3a74c110.0":"2022-02-04T16:16:53.202Z","2.0.1-383dc07d.0":"2022-02-04T19:57:00.164Z","2.0.1-709831f6.0":"2022-02-06T16:03:13.768Z","2.0.1":"2022-02-07T16:51:15.583Z","2.0.2-1082fce9.0":"2022-02-18T16:14:49.502Z","2.0.2-125d42ba.0":"2022-03-01T09:46:51.052Z","2.0.2-df1bd1bb.0":"2022-03-01T11:11:05.963Z","2.0.2":"2022-04-05T15:10:06.039Z","2.0.3-e90b8f13.0":"2022-04-05T16:09:53.983Z","2.0.3-8f7ce23c.0":"2022-04-20T12:40:07.835Z","2.0.3":"2022-04-26T07:02:00.436Z","2.0.4-7165bf71.0":"2022-05-16T20:07:49.047Z","2.0.4-4e93dd5d.0":"2022-05-27T13:42:59.866Z","2.0.4-919b27a8.0":"2022-05-27T16:18:30.177Z","3.0.0":"2022-05-30T19:17:14.963Z","3.0.1-ddfb899f.0":"2022-05-30T19:56:53.428Z","3.0.1-764b4adc.0":"2022-06-01T14:26:14.677Z","3.0.1-be025c89.0":"2022-06-01T14:31:27.543Z","3.0.1-87e00a69.0":"2022-06-01T14:36:06.465Z","3.0.1":"2022-06-01T15:16:27.410Z","3.0.2-70e142ac.0":"2022-06-13T16:00:27.282Z","3.0.2":"2022-06-14T06:25:25.503Z","3.0.3-7be50bd1.0":"2022-06-22T17:48:29.838Z","3.0.3":"2022-06-23T12:03:10.746Z","3.0.4-00bd3dd0.0":"2022-06-24T09:30:41.187Z","3.0.4":"2022-06-24T10:25:27.703Z","3.0.5-a05695fc.0":"2022-07-20T13:22:13.104Z","3.0.5-39dbf708.0":"2022-08-17T21:43:04.294Z","3.0.5-8f351a89.0":"2022-08-17T23:18:56.763Z","3.0.5-83f9882e.0":"2022-09-06T11:30:40.075Z","3.0.5-051da161.0":"2022-09-07T12:55:36.537Z","4.0.0":"2022-09-07T13:38:02.974Z","4.0.1-b5456882.0":"2022-09-16T09:24:21.418Z","4.0.1-7c676f63.0":"2022-09-21T19:16:31.021Z","4.0.1-2a830bf5.0":"2022-09-21T20:54:09.096Z","4.0.1-7304a0f4.0":"2022-09-21T20:54:50.650Z","4.0.1":"2022-09-21T21:55:03.169Z","4.0.2-d75e0a39.0":"2022-09-22T08:52:16.392Z","4.0.2-d1b0a8a7.0":"2022-09-22T10:41:53.571Z","4.0.2-acbc1c62.0":"2022-09-22T12:59:57.621Z","4.0.2-dfc43d4e.0":"2022-09-26T14:20:26.474Z","4.0.2-0cee4a4c.0":"2022-10-24T09:13:32.217Z","5.0.0":"2022-10-24T10:47:33.346Z","5.0.1-a77e40cc.0":"2022-10-25T07:11:32.691Z","5.0.1-58e6f468.0":"2022-10-25T08:15:47.667Z","5.0.1-6ae5eb7d.0":"2022-10-28T07:29:54.530Z","5.0.1-6be59068.0":"2022-11-17T19:48:00.143Z","0.0.1-563806f1.0":"2023-01-09T18:11:18.528Z","0.0.1-e85e5b6e.0":"2023-01-09T19:16:09.779Z","0.0.1-2a6fede5.0":"2023-01-10T09:35:58.909Z","5.0.0-5f73ecad":"2023-01-10T17:14:58.243Z","5.0.0-4b4c124c":"2023-01-11T16:06:22.292Z","5.0.0-789ee585":"2023-01-11T17:05:55.637Z","5.0.0-fa578bac":"2023-01-11T17:50:42.331Z","5.0.0-d1c3abb3":"2023-01-11T18:09:18.780Z","6.0.0":"2023-01-12T11:36:52.856Z","6.0.0-6eeb1be5":"2023-01-13T18:20:55.522Z","6.0.0-ab02e8f8":"2023-01-17T12:24:32.047Z","6.0.0-3bcabe38":"2023-01-17T15:31:47.987Z","6.0.0-b64d4af0":"2023-02-01T11:24:49.227Z","6.0.0-e64813f6":"2023-05-24T18:46:09.010Z","6.0.0-4694e806":"2023-05-25T11:32:06.774Z","6.0.0-6d95ce08":"2023-05-25T12:11:00.024Z","6.0.0-7b79c1b8":"2023-05-25T12:46:43.905Z","6.0.1":"2023-05-25T15:00:06.442Z"},"maintainers":[{"email":"alex@achingbrain.net","name":"achingbrain"},{"email":"npm-service-account+ipfs@protocol.ai","name":"npm-service-account-ipfs"}],"description":"Creates an HTTP response from an IPFS Hash","homepage":"https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs-http-response#readme","keywords":["http","ipfs","response"],"repository":{"type":"git","url":"git+https://github.com/ipfs/js-ipfs.git"},"author":{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},"bugs":{"url":"https://github.com/ipfs/js-ipfs/issues"},"license":"Apache-2.0 OR MIT","readme":"> # ⛔️ DEPRECATED: [js-IPFS](https://github.com/ipfs/js-ipfs) has been superseded by [Helia](https://github.com/ipfs/helia)\n>\n> 📚 [Learn more about this deprecation](https://github.com/ipfs/js-ipfs/issues/4336) or [how to migrate](https://github.com/ipfs/helia/wiki/Migrating-from-js-IPFS)\n>\n> ⚠️ If you continue using this repo, please note that security fixes will not be provided\n\n# ipfs-http-response <!-- omit in toc -->\n\n[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)\n[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)\n[![codecov](https://img.shields.io/codecov/c/github/ipfs/js-ipfs.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-ipfs)\n[![CI](https://img.shields.io/github/actions/workflow/status/ipfs/js-ipfs/test.yml?branch=master\\&style=flat-square)](https://github.com/ipfs/js-ipfs/actions/workflows/test.yml?query=branch%3Amaster)\n\n> Creates an HTTP response from an IPFS Hash\n\n## Table of contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Creating HTTP Response](#creating-http-response)\n  - [Using protocol-agnostic resolver](#using-protocol-agnostic-resolver)\n- [License](#license)\n- [Contribute](#contribute)\n\n## Install\n\n```console\n$ npm i ipfs-http-response\n```\n\n## Usage\n\n### Creating HTTP Response\n\nThis project creates a HTTP response for an IPFS Path. This response can be a file, a HTML with directory listing or the entry point of a web page.\n\n```js\nimport { getResponse } from 'ipfs-http-response'\n\nconst result = await getResponse(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\n### Using protocol-agnostic resolver\n\nThis module also exports the used ipfs `resolver`, which should be used when the response needs to be customized or non-HTTP transport is used:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.cid(ipfsNode, ipfsPath)\nconsole.log(result)\n```\n\nIf `ipfsPath` points at a directory, `resolver.cid` will throw Error `This dag node is a directory` with a `cid` attribute that can be passed to `resolver.directory`:\n\n```js\nimport { resolver } from 'ipfs-http-response'\n\nconst result = await resolver.directory(ipfsNode, ipfsPath, cid)\nconsole.log(result)\n```\n\n`result` will be either a `string` with HTML directory listing or an array with CIDs of `index` pages present in inspected directory.\n\n![ipfs-http-response usage](docs/ipfs-http-response.png \"ipfs-http-response usage\")\n\n## License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n## Contribute\n\nContributions welcome! Please check out [the issues](https://github.com/ipfs/js-ipfs/issues).\n\nAlso see our [contributing document](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md) for more information on how we work, and about contributing in general.\n\nPlease be aware that all interactions related to this repo are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\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\n[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)\n","readmeFilename":"README.md"}