{"_id":"torrent-piece","_rev":"27-fc5f1f023a29a0351708864e22b2149b","name":"torrent-piece","dist-tags":{"latest":"4.0.1"},"versions":{"1.0.0":{"name":"torrent-piece","version":"1.0.0","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"author":{"url":"http://feross.org/","name":"Feross Aboukhadijeh","email":"feross@feross.org"},"license":"MIT","_id":"torrent-piece@1.0.0","maintainers":[{"name":"feross","email":"feross@feross.org"}],"homepage":"https://github.com/feross/torrent-piece","bugs":{"url":"https://github.com/feross/torrent-piece/issues"},"dist":{"shasum":"cded56367d1ee5dd55a86a6960a283482f96bb92","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-1.0.0.tgz","integrity":"sha512-5HUJiQxKn/TIhSHhqX5Kn1krMtsAv48V+6CNRu9o8im8+kamWbnpIcV7hhX55cjcOWZ35PgXD2UBhsoV2AXeuQ==","signatures":[{"sig":"MEQCIFhzDaYpCLq9iXZiNUpk5vWEOTvpEetz2cZ50M2qeUN8AiAczhFpk6PKfoqkXIVzfwttay2BQ7ru5aGRhUNQ/cfqwg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"cded56367d1ee5dd55a86a6960a283482f96bb92","gitHead":"b43ce101b65d915213eeaee197c47fca4e9c4619","scripts":{"test":"standard && npm run test-node && npm run test-browser","test-node":"tape test/*.js","test-browser":"zuul -- test/*.js","test-browser-local":"zuul --local -- test/*.js"},"_npmUser":{"name":"feross","email":"feross@feross.org"},"repository":{"url":"git://github.com/feross/torrent-piece.git","type":"git"},"_npmVersion":"2.10.1","description":"Torrent piece abstraction","directories":{},"_nodeVersion":"2.1.0","dependencies":{},"devDependencies":{"tape":"^4.0.0","zuul":"^3.0.0","standard":"^5.0.0"}},"1.1.0":{"name":"torrent-piece","version":"1.1.0","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"author":{"url":"http://feross.org/","name":"Feross Aboukhadijeh","email":"feross@feross.org"},"license":"MIT","_id":"torrent-piece@1.1.0","maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/feross/torrent-piece","bugs":{"url":"https://github.com/feross/torrent-piece/issues"},"dist":{"shasum":"dd3ae8dba3e58df5c9ed3457c055177849d82854","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-1.1.0.tgz","integrity":"sha512-LbBJqwLfsuPpulnAzZEanEspIOOBrJt50j4AHRSsWHRd4CKxTUhsiNvJrsQ0LxAswmuZ+D6Wb0d55FsOu+MUrw==","signatures":[{"sig":"MEUCIQCkXdTBAQhhMGdnzElakDK77jXgKC4eEJp0IL0m2U3shQIgUNYMifIK3JFj+TVS7C4VI5AE71VAhRaUNxMSUYhX1uQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"dd3ae8dba3e58df5c9ed3457c055177849d82854","gitHead":"be941aea5ae38ec6c3b81ab6fbe3248e99660503","scripts":{"test":"standard && npm run test-node && npm run test-browser","test-node":"tape test/*.js","test-browser":"zuul -- test/*.js","test-browser-local":"zuul --local -- test/*.js"},"_npmUser":{"name":"feross","email":"feross@feross.org"},"repository":{"url":"git://github.com/feross/torrent-piece.git","type":"git"},"_npmVersion":"2.14.12","description":"Torrent piece abstraction","directories":{},"_nodeVersion":"4.3.0","dependencies":{},"devDependencies":{"tape":"^4.0.0","zuul":"^3.0.0","standard":"^6.0.7"},"_npmOperationalInternal":{"tmp":"tmp/torrent-piece-1.1.0.tgz_1456811461308_0.49638390354812145","host":"packages-6-west.internal.npmjs.com"}},"1.1.1":{"name":"torrent-piece","version":"1.1.1","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"author":{"url":"https://webtorrent.io","name":"WebTorrent, LLC","email":"feross@webtorrent.io"},"license":"MIT","_id":"torrent-piece@1.1.1","maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/webtorrent/torrent-piece#readme","bugs":{"url":"https://github.com/webtorrent/torrent-piece/issues"},"dist":{"shasum":"50346e42a43b35daf2a86f414afb153629a854be","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-1.1.1.tgz","integrity":"sha512-C3xKl3aBDivbNYuNHT+KQC8ElhIyOeIlCxBuBl1It8OMbGeRRHU928oawPH7Tp64EYHQXswSEMdSqFfI9r3CtQ==","signatures":[{"sig":"MEQCIHLJS3RFN7i3G7tkCSIXDnoBPIsGZrDHAPQv7bpTVJzoAiAsIuUikyOvp5w58JL4HQgkLZor8qxz/wZjtqao6N3//w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"50346e42a43b35daf2a86f414afb153629a854be","gitHead":"ed3f18c16cd97967249897c25b2d7cb64e94c86a","scripts":{"test":"standard && npm run test-node && npm run test-browser","test-node":"tape test/*.js","test-browser":"zuul -- test/*.js","test-browser-local":"zuul --local -- test/*.js"},"_npmUser":{"name":"feross","email":"feross@feross.org"},"repository":{"url":"git://github.com/webtorrent/torrent-piece.git","type":"git"},"_npmVersion":"4.5.0","description":"Torrent piece abstraction","directories":{},"_nodeVersion":"7.8.0","dependencies":{},"devDependencies":{"tape":"^4.0.0","zuul":"^3.0.0","standard":"*"},"_npmOperationalInternal":{"tmp":"tmp/torrent-piece-1.1.1.tgz_1492198940422_0.5810085290577263","host":"packages-18-east.internal.npmjs.com"}},"1.1.2":{"name":"torrent-piece","version":"1.1.2","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"author":{"url":"https://webtorrent.io","name":"WebTorrent, LLC","email":"feross@webtorrent.io"},"license":"MIT","_id":"torrent-piece@1.1.2","maintainers":[{"name":"dcposch","email":"dcposch@dcpos.ch"},{"name":"diegorbaquero","email":"diegorbaquero@gmail.com"},{"name":"feross","email":"feross@feross.org"},{"name":"fisch0920","email":"fisch0920@gmail.com"},{"name":"flet","email":"flettre@gmail.com"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"ungoldman","email":"ungoldman@gmail.com"},{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/webtorrent/torrent-piece#readme","bugs":{"url":"https://github.com/webtorrent/torrent-piece/issues"},"dist":{"shasum":"774cadac08f65e3d55b84610842171365e349dc6","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-1.1.2.tgz","fileCount":4,"integrity":"sha512-ElXPyXKKG73o+uziHJ8qlYE9EuyDVxnK2zWL+pW/2bma7RsLpSwFFIJAb8Qui7/tel2hsHQW1z3zBnfQNREpWA==","signatures":[{"sig":"MEUCIFQN0YCbR2Qytgay3Q0u7JkBzkQDNUje14bWNVctBEUBAiEA6pdMKDzLtJPgfKhqbOQIqsCDqd9EvM9+e9GxWr7t4T8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHF6hCRA9TVsSAnZWagAAVKAP/3Uyh6Oyv+RgLyLNo/ST\nwa/vHybMUaGlOG01LynKdB421ue4mRjikLWXVsM4KRBfazOjCEiN0TL7hLQl\nsOqsHSvw7YygyRCdhUfiq6CHxlW0pZ6yr16skBBcEPI1ClbQ+W5c10JWWjE4\nf7EM+AgB2kQze7UO1KOP3THzUATFG6dbQssDMZphL/IuveQiQTR0ufDkEyMT\natIJHYz97+jDHTBhVq4aPWfuMhDIzxxQ8GMurri+Y5egdD60g1pb3aPbFJdZ\nSkqu545jlHvA0Xg1K3IjymXg8ua4tX8BvAdDD1IxFPyVpD/zzqumiep9RJ0H\n9PAtpvB/AW4Pd+fi341Jz400UscQIeZ3kxpO2O+Ys6xDsjjBbTUOUX5MB7bZ\nM02ZEfwY8F3kJ/n4MsorT6lovn8Yqo4ssQgZ5n/3PSBCj5QZhwzHsMdJrShQ\nqJy3B9DunRqKP3U29IkBApCjsPSbWJQTpZbs4Z5hzVscEhUEcCpDfS58QEqQ\n0aegoBO23N5lFRPuSLUwKP/DtNG6IiVyHgrWNVAfk/ypDbzgNDvLdzXMpN6Q\nEg6OFyDV2BEVOuzDyJMsZueoJIbPjj5YQ4jaue/IHeAVgPVZyTz6b/ZfySJe\n+5b5iNEE7x4l2xUU2Kv5uJjm8XZXfe9PYjzkt3rS8NhjBLclDHN9NgHqBDhR\nRPGQ\r\n=cl6u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"9c329eff1d447d8f16d35fc50904befd3764c868","scripts":{"test":"standard && npm run test-node && npm run test-browser","test-node":"tape test/*.js","test-browser":"airtap -- test/*.js","test-browser-local":"airtap --local -- test/*.js"},"_npmUser":{"name":"feross","email":"feross@feross.org"},"repository":{"url":"git://github.com/webtorrent/torrent-piece.git","type":"git"},"_npmVersion":"6.1.0","description":"Torrent piece abstraction","directories":{},"_nodeVersion":"8.11.2","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.0.0","airtap":"0.0.7","standard":"*"},"_npmOperationalInternal":{"tmp":"tmp/torrent-piece_1.1.2_1528585888042_0.862827590446833","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"torrent-piece","version":"2.0.0","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"author":{"url":"https://webtorrent.io","name":"WebTorrent, LLC","email":"feross@webtorrent.io"},"license":"MIT","_id":"torrent-piece@2.0.0","maintainers":[{"name":"dcposch","email":"dcposch@dcpos.ch"},{"name":"diegorbaquero","email":"diegorbaquero@gmail.com"},{"name":"feross","email":"feross@feross.org"},{"name":"fisch0920","email":"fisch0920@gmail.com"},{"name":"flet","email":"flettre@gmail.com"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"ungoldman","email":"ungoldman@gmail.com"},{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/webtorrent/torrent-piece#readme","bugs":{"url":"https://github.com/webtorrent/torrent-piece/issues"},"dist":{"shasum":"6598ae67d93699e887f178db267ba16d89d7ec9b","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-2.0.0.tgz","fileCount":4,"integrity":"sha512-H/Z/yCuvZJj1vl1IQHI8dvF2QrUuXRJoptT5DW5967/dsLpXlCg+uyhFR5lfNj5mNaYePUbKtnL+qKWZGXv4Nw==","signatures":[{"sig":"MEUCIQCwmkMuCPnQfyE0geZijmAdFzWqs6ztIrHSEX3EUMNhdwIgHoCEGC+uonaPFETJjG0HTOzU/K8k9XiaZgcLMcbw9/8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWj9jCRA9TVsSAnZWagAANx0P/32yCchIdNVGvEaVA7f6\nogBnbt2StwCqUuYEzBB2t3VxVGpzrY37kfMp6YBlj1o62JvZPoi3BoavLIy2\nvgW/EFCJF7goypMbVAGj+hDDRL3aJd7qN5QQG4IPRNSorPHaoB3NBlfESroa\nM0iswhLX26rFXr1ydC3KAWhX3n888eMOyo1XRV7epyM4TmN2G+Wx7RsQXLtT\nJa6TSzYX+6iAL81myHaQitai9wqO8sfEiSyEadv4h23gbDSEs7aTPRecQ2OD\nIulP2HufojqgA4HAHVJ0QZNjYzl2HYI5PT9of1dAQolNfpSNvTRbwZp3WT/8\nb42dDqVvIDAWJju+/7urZRI2i1xB0f9+F+ViLwq/JCuM0T9IvzvhY/tvKDS4\nlAcl8QbBkE+Y4hJj61EhKiCOOZs2HClG3HWU+P9WVTDfIYdVwOhFrjpxbkc/\nPsbhJnBy7xn/13l2YKuFrjAeduqiqv8DbV5Sofakpvao6UcrpQq5c14CwjwH\nDDmytEEeUakGS5MWdGj3hliRhtYxb9W+yHhsEm4Gce0Qk0zLA/yD8tgsNc7O\nYaE6OZVe9LO89T0/i8vrjyzPfcVlOsjF0DVRJoRRSHPL9UWjyL7o5XJ/d16A\naForkG9lDKr1SdrVHtYxIu/y7BZ7E2qlV2xEB6UM7h7ZvL5tKWTKbb4fXbUL\nmezT\r\n=/pj2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"f94ad29307492e667f4dde0ab4c14a0a2783b1db","scripts":{"test":"standard && npm run test-node && npm run test-browser","test-node":"tape test/*.js","test-browser":"airtap -- test/*.js","test-browser-local":"airtap --local -- test/*.js"},"_npmUser":{"name":"feross","email":"feross@feross.org"},"repository":{"url":"git://github.com/webtorrent/torrent-piece.git","type":"git"},"_npmVersion":"6.2.0","description":"Torrent piece abstraction","directories":{},"_nodeVersion":"8.11.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.0.0","airtap":"0.1.0","standard":"*"},"_npmOperationalInternal":{"tmp":"tmp/torrent-piece_2.0.0_1532641123339_0.6487473656971228","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"torrent-piece","version":"2.0.1","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"author":{"url":"https://webtorrent.io","name":"WebTorrent LLC","email":"feross@webtorrent.io"},"license":"MIT","_id":"torrent-piece@2.0.1","maintainers":[{"name":"jhiesey","email":"john@hiesey.com"},{"name":"feross","email":"feross@feross.org"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"flet","email":"flettre@gmail.com"},{"name":"watson","email":"w@tson.dk"},{"name":"ungoldman","email":"ungoldman@gmail.com"},{"name":"diegorbaquero","email":"diegorbaquero@gmail.com"},{"name":"hicom150","email":"hicom150@gmail.com"}],"homepage":"https://github.com/webtorrent/torrent-piece#readme","bugs":{"url":"https://github.com/webtorrent/torrent-piece/issues"},"dist":{"shasum":"a1a50fffa589d9bf9560e38837230708bc3afdc6","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-2.0.1.tgz","fileCount":4,"integrity":"sha512-JLSOyvQVLI6JTWqioY4vFL0JkEUKQcaHQsU3loxkCvPTSttw8ePs2tFwsP4XIjw99Fz8EdOzt/4faykcbnPbCQ==","signatures":[{"sig":"MEYCIQCJ2089BKfGfV4esjII+mWtzySijtpO431JRNmG0GWA5AIhAKvlhyII1huGCUROnWRHyc96bX/5rxfzhhjq04mQwPpU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZWRLCRA9TVsSAnZWagAAmNcP/RrPtf2GGQrkg4bIlRSG\n/LzF+J1VLBubKHpCHoe3RH7wdAQcslLWfPAKdQCMv43lX3u6pJLCmR80a+SO\nsmagAHoxhGSv/QYHhAFqCWCIw5rBtJ4ADT9/puMoL3t1Nz5vlTVvb0yOz8t7\nnCrJruXDXW1OMH6t2GvHZs9oLaSo5rh6azYTDlXKPNMgfMJ8c32TWmQfwHqX\nmB/PJXx42h0UXDcGMZQhec9HVoF1onNsh5mVJbTrCpknh3UtCjxA5CZ6uItE\nZIJYQs4cZYMDRdTPov7mQEiB8UdUEnbMPd+i9tTlZd2Y/iBvJCLR20pY146u\nKN1X3jpNdclf2yo6uQfoyvCD5bP9LvnkIk1MqX1GuyTT+hlksaeJ5t2GIj5K\nIjCqDxYiWWW9WlXWGOgOJ2DDVkITiZ6DXjGt+taD5kCwM6crTTfs2CFKB+A+\nGrSkxujCvt5UCmZ9RGlmZ2uaU1gWIZQdLXi3o/l4UkRITXgIUCqpWCfy8d+B\nilKVjzs/gdcxfonJH10soLgW0Qk4AWIO7G8r052DSOwnVtGQeq0cFrukJgba\ngkZ7mqLH5jkPwH7U3vSmyRN+Ti5iE3xlUtol8CaWWhnDfnNpR1q+6voS+TN5\nK/VPQtCu6gVKOuedM735V4P9FSYU8reAlg1WaOJFrPS75ni67sJECSnyihPl\n9RvM\r\n=rAPi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","funding":[{"url":"https://github.com/sponsors/feross","type":"github"},{"url":"https://www.patreon.com/feross","type":"patreon"},{"url":"https://feross.org/support","type":"consulting"}],"gitHead":"6d63eb698f1ce33abb476b213b03e1bbf372dcd3","scripts":{"test":"standard && npm run test-node && npm run test-browser","test-node":"tape test/*.js","test-browser":"airtap -- test/*.js","test-browser-local":"airtap --local -- test/*.js"},"_npmUser":{"name":"feross","email":"feross@feross.org"},"repository":{"url":"git://github.com/webtorrent/torrent-piece.git","type":"git"},"_npmVersion":"7.7.0","description":"Torrent piece abstraction","directories":{},"_nodeVersion":"15.12.0","_hasShrinkwrap":false,"devDependencies":{"tape":"^5.0.0","airtap":"^3.0.0","standard":"*"},"_npmOperationalInternal":{"tmp":"tmp/torrent-piece_2.0.1_1617257547332_0.46130230650234316","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"torrent-piece","version":"3.0.0","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"author":{"url":"https://webtorrent.io","name":"WebTorrent LLC","email":"feross@webtorrent.io"},"license":"MIT","_id":"torrent-piece@3.0.0","maintainers":[{"name":"alxhotel","email":"alxmorais8@msn.com"},{"name":"feross","email":"feross@feross.org"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"flet","email":"flettre@gmail.com"},{"name":"watson","email":"w@tson.dk"},{"name":"diegorbaquero","email":"diegorbaquero@gmail.com"},{"name":"hicom150","email":"hicom150@gmail.com"},{"name":"jhiesey","email":"john@hiesey.com"},{"name":"webtorrent-bot","email":"contact@webtorrent.io"}],"homepage":"https://github.com/webtorrent/torrent-piece#readme","bugs":{"url":"https://github.com/webtorrent/torrent-piece/issues"},"dist":{"shasum":"395e37c39e62dec75ed601f79c90e4a62e639be7","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-3.0.0.tgz","fileCount":4,"integrity":"sha512-j0tRX7qq22nIuVFF57Tg/wAvFq79F1eM9pcMxY+b0qCCe7yXJnIrqF+Q5YEJ94tNisDnJzcqDHNrPmD9X/yAIg==","signatures":[{"sig":"MEUCIC4Wz1uhZhCbh4in9/rqdlgnn7f/IZ9gVuHxgVA7vLquAiEAvYeniwF6WwNKi8tQDiuu+5L+xUIm5SRclXitkAhyQXU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7308},"type":"module","engines":{"node":">=12.20.0"},"exports":{"import":"./index.js"},"funding":[{"url":"https://github.com/sponsors/feross","type":"github"},{"url":"https://www.patreon.com/feross","type":"patreon"},{"url":"https://feross.org/support","type":"consulting"}],"gitHead":"6a5d5a514335e24e4d1a7e31fd822b5003ca4b65","scripts":{"test":"standard && npm run test-node && npm run test-browser","test-node":"tape test/*.js","test-browser":"airtap --concurrency 1 --all -- test/*.js | tap-spec","test-browser-local":"airtap --preset local -- test/*.js | tap-spec"},"_npmUser":{"name":"webtorrent-bot","email":"contact@webtorrent.io"},"renovate":{"extends":["github>webtorrent/renovate-config"]},"repository":{"url":"git://github.com/webtorrent/torrent-piece.git","type":"git"},"_npmVersion":"9.5.1","description":"Torrent piece abstraction","directories":{},"_nodeVersion":"18.16.1","dependencies":{"uint8-util":"^2.1.9"},"_hasShrinkwrap":false,"devDependencies":{"tape":"5.6.6","airtap":"4.0.4","babelify":"^10.0.0","standard":"*","tap-spec":"^5.0.0","airtap-manual":"^1.0.0","airtap-system":"^0.1.0","@babel/preset-env":"^7.22.9"},"_npmOperationalInternal":{"tmp":"tmp/torrent-piece_3.0.0_1690112218741_0.8562914818246792","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"torrent-piece","version":"3.0.1","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"author":{"url":"https://webtorrent.io","name":"WebTorrent LLC","email":"feross@webtorrent.io"},"license":"MIT","_id":"torrent-piece@3.0.1","maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"flet","email":"flettre@gmail.com"},{"name":"watson","email":"w@tson.dk"},{"name":"diegorbaquero","email":"diegorbaquero@gmail.com"},{"name":"hicom150","email":"hicom150@gmail.com"},{"name":"jhiesey","email":"john@hiesey.com"},{"name":"webtorrent-bot","email":"contact@webtorrent.io"},{"name":"alxhotel","email":"alxmorais8@msn.com"}],"homepage":"https://github.com/webtorrent/torrent-piece#readme","bugs":{"url":"https://github.com/webtorrent/torrent-piece/issues"},"dist":{"shasum":"3f5899aac991256618812d066d7917f809a1ba21","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-3.0.1.tgz","fileCount":4,"integrity":"sha512-EvCqfOkNm3PXqgaGPVVmp0JlGC8fDpH+8Yt5uUiF4oCrAqy3htyUFxK1DJpneWfg1fFdeTKsstxLxQUrHpmocA==","signatures":[{"sig":"MEQCIGizWE8kejI7ZeB0VukL+K20x95YijH70XXs6bOevhfWAiAuwcVtX4hBQY+PJZqGMYp0Co9r9oOaYWFue+0zHVqMqw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7308},"type":"module","engines":{"node":">=12.20.0"},"exports":{"import":"./index.js"},"funding":[{"url":"https://github.com/sponsors/feross","type":"github"},{"url":"https://www.patreon.com/feross","type":"patreon"},{"url":"https://feross.org/support","type":"consulting"}],"gitHead":"234ba8f02f4eb06b9ab61265689629717fae1a91","scripts":{"test":"standard && npm run test-node && npm run test-browser","test-node":"tape test/*.js","test-browser":"airtap --concurrency 1 --all -- test/*.js | tap-spec","test-browser-local":"airtap --preset local -- test/*.js | tap-spec"},"_npmUser":{"name":"webtorrent-bot","email":"contact@webtorrent.io"},"renovate":{"extends":["github>webtorrent/renovate-config"]},"repository":{"url":"git://github.com/webtorrent/torrent-piece.git","type":"git"},"_npmVersion":"10.8.2","description":"Torrent piece abstraction","directories":{},"_nodeVersion":"18.20.6","dependencies":{"uint8-util":"^2.1.9"},"_hasShrinkwrap":false,"devDependencies":{"tape":"5.9.0","airtap":"4.0.4","babelify":"^10.0.0","standard":"*","tap-spec":"^5.0.0","airtap-manual":"^1.0.0","airtap-system":"^0.1.0","@babel/preset-env":"^7.22.9"},"_npmOperationalInternal":{"tmp":"tmp/torrent-piece_3.0.1_1738183406309_0.12165420729941068","host":"s3://npm-registry-packages-npm-production"}},"3.0.2":{"name":"torrent-piece","version":"3.0.2","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"author":{"url":"https://webtorrent.io","name":"WebTorrent LLC","email":"feross@webtorrent.io"},"license":"MIT","_id":"torrent-piece@3.0.2","maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"flet","email":"flettre@gmail.com"},{"name":"watson","email":"w@tson.dk"},{"name":"diegorbaquero","email":"diegorbaquero@gmail.com"},{"name":"hicom150","email":"hicom150@gmail.com"},{"name":"jhiesey","email":"john@hiesey.com"},{"name":"webtorrent-bot","email":"contact@webtorrent.io"},{"name":"alxhotel","email":"alxmorais8@msn.com"}],"homepage":"https://github.com/webtorrent/torrent-piece#readme","bugs":{"url":"https://github.com/webtorrent/torrent-piece/issues"},"dist":{"shasum":"c77cca41f1f4909fd6ff92358052bb9190c60493","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-3.0.2.tgz","fileCount":4,"integrity":"sha512-K1A5tZ3BolFrUtnBpk9iDg8av1na0OgQ7E0IlA9tj0bcsPhLhzvln+oMtMmtkqAwmUsbNCilRm2ymUdZg0rVbQ==","signatures":[{"sig":"MEUCIBMe4PZ+45s4uXA6EPeehTE30Kyb+AJt5huujWFUFrZcAiEAiC2c528MGIoTgaAubTNraArWgV5PxD+tXPQ8GSIfV3A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7311},"type":"module","engines":{"node":">=12.20.0"},"exports":{"import":"./index.js"},"funding":[{"url":"https://github.com/sponsors/feross","type":"github"},{"url":"https://www.patreon.com/feross","type":"patreon"},{"url":"https://feross.org/support","type":"consulting"}],"gitHead":"c04e9da6f888451df1e4bd3182dbb2513361e2d9","scripts":{"test":"standard && npm run test-node && npm run test-browser","test-node":"tape test/*.js","test-browser":"airtap --concurrency 1 --all -- test/*.js | tap-spec","test-browser-local":"airtap --preset local -- test/*.js | tap-spec"},"_npmUser":{"name":"webtorrent-bot","email":"contact@webtorrent.io"},"renovate":{"extends":["github>webtorrent/renovate-config"]},"repository":{"url":"git://github.com/webtorrent/torrent-piece.git","type":"git"},"_npmVersion":"10.8.2","description":"Torrent piece abstraction","directories":{},"_nodeVersion":"18.20.8","dependencies":{"uint8-util":"^2.1.9"},"_hasShrinkwrap":false,"devDependencies":{"tape":"5.9.0","airtap":"4.0.4","babelify":"^10.0.0","standard":"*","tap-spec":"^5.0.0","airtap-manual":"^1.0.0","airtap-system":"^0.1.0","@babel/preset-env":"^7.22.9"},"_npmOperationalInternal":{"tmp":"tmp/torrent-piece_3.0.2_1754242900961_0.7013461484079209","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"torrent-piece","version":"4.0.0","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"author":{"url":"https://webtorrent.io","name":"WebTorrent LLC","email":"feross@webtorrent.io"},"license":"MIT","_id":"torrent-piece@4.0.0","maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"flet","email":"flettre@gmail.com"},{"name":"watson","email":"w@tson.dk"},{"name":"diegorbaquero","email":"diegorbaquero@gmail.com"},{"name":"hicom150","email":"hicom150@gmail.com"},{"name":"jhiesey","email":"john@hiesey.com"},{"name":"webtorrent-bot","email":"contact@webtorrent.io"},{"name":"alxhotel","email":"alxmorais8@msn.com"}],"homepage":"https://github.com/webtorrent/torrent-piece#readme","bugs":{"url":"https://github.com/webtorrent/torrent-piece/issues"},"dist":{"shasum":"0a9438e30ed60edc392c869b81c4d72634b0efb1","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-4.0.0.tgz","fileCount":4,"integrity":"sha512-Iaap22ypasyTkzvanratEXmQUx9MjSb97NcM6fi83bjAfTX4ywE9BLaiAVEJ/v22xdQcSkUGEi4aCGzqLcXe9w==","signatures":[{"sig":"MEQCIDolrxeQ3kponX6be+qbsG17gJyIRedWnBnpYQa6aCOLAiAOo/R3FW6nVKBy957d/+U0I0Ki0QEJtq3SjvN1/WEulg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/torrent-piece@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7311},"type":"module","engines":{"node":">=12.20.0"},"exports":{"import":"./index.js"},"funding":[{"url":"https://github.com/sponsors/feross","type":"github"},{"url":"https://www.patreon.com/feross","type":"patreon"},{"url":"https://feross.org/support","type":"consulting"}],"gitHead":"758cf896377d869766018696665a8bf8bc92d5d2","scripts":{"test":"standard && npm run test-node && npm run test-browser","test-node":"tape test/*.js","test-browser":"airtap --concurrency 1 --all -- test/*.js | tap-spec","test-browser-local":"airtap --preset local -- test/*.js | tap-spec"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:da659db2-c30f-4beb-bf9d-e60101e427a6"}},"renovate":{"extends":["github>webtorrent/renovate-config"]},"repository":{"url":"git://github.com/webtorrent/torrent-piece.git","type":"git"},"_npmVersion":"11.15.0","description":"Torrent piece abstraction","directories":{},"_nodeVersion":"24.15.0","dependencies":{"uint8-util":"^2.1.9"},"_hasShrinkwrap":false,"devDependencies":{"tape":"5.9.0","airtap":"5.0.0","babelify":"^10.0.0","standard":"*","tap-spec":"^5.0.0","airtap-manual":"^1.0.0","airtap-system":"^0.1.0","@babel/preset-env":"^7.22.9"},"_npmOperationalInternal":{"tmp":"tmp/torrent-piece_4.0.0_1779737793246_0.6331468932781339","host":"s3://npm-registry-packages-npm-production"}},"4.0.1":{"name":"torrent-piece","description":"Torrent piece abstraction","version":"4.0.1","author":{"name":"WebTorrent LLC","email":"feross@webtorrent.io","url":"https://webtorrent.io"},"bugs":{"url":"https://github.com/webtorrent/torrent-piece/issues"},"type":"module","dependencies":{"uint8-util":"^2.1.9"},"devDependencies":{"@babel/preset-env":"^7.22.9","@webtorrent/semantic-release-config":"^1.0.11","airtap":"5.0.0","airtap-manual":"^1.0.0","airtap-system":"^0.1.0","babelify":"^10.0.0","standard":"*","tap-spec":"^5.0.0","tape":"5.9.0"},"engines":{"node":">=12.20.0"},"exports":{"import":"./index.js"},"keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"license":"MIT","repository":{"type":"git","url":"git://github.com/webtorrent/torrent-piece.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"airtap --concurrency 1 --all -- test/*.js | tap-spec","test-browser-local":"airtap --preset local -- test/*.js | tap-spec","test-node":"tape test/*.js"},"funding":[{"type":"github","url":"https://github.com/sponsors/feross"},{"type":"patreon","url":"https://www.patreon.com/feross"},{"type":"consulting","url":"https://feross.org/support"}],"renovate":{"extends":["github>webtorrent/renovate-config"]},"release":{"extends":"@webtorrent/semantic-release-config"},"gitHead":"af4ec757b865b8fd79a6364b963eeeb9e5de2da7","_id":"torrent-piece@4.0.1","homepage":"https://github.com/webtorrent/torrent-piece#readme","_nodeVersion":"24.15.0","_npmVersion":"11.15.0","dist":{"integrity":"sha512-bL5lLm0CknuXMJ3c8Xw+27etPTH7P1vLXwEASQ3bktZlWV2ZEkCW1l0ssV6Y9EHpcUlf0aqB9x49bkgMA4JrHw==","shasum":"1fbc67c620be1c1bb4d76e7208e05d913c0e6a1d","tarball":"https://registry.npmjs.org/torrent-piece/-/torrent-piece-4.0.1.tgz","fileCount":5,"unpackedSize":7536,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/torrent-piece@4.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDsOBU7p6fwTmnktjTfd3tAFuHIPPmr2s2yJCsQK8ypTAIgEs3/UKjhiAtKXPARd227nid4uU7nrd+8p0nPppqKeJQ="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:da659db2-c30f-4beb-bf9d-e60101e427a6"}},"directories":{},"maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"flet","email":"flettre@gmail.com"},{"name":"watson","email":"w@tson.dk"},{"name":"diegorbaquero","email":"diegorbaquero@gmail.com"},{"name":"hicom150","email":"hicom150@gmail.com"},{"name":"jhiesey","email":"john@hiesey.com"},{"name":"webtorrent-bot","email":"contact@webtorrent.io"},{"name":"alxhotel","email":"alxmorais8@msn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/torrent-piece_4.0.1_1779831094439_0.027995601382325708"},"_hasShrinkwrap":false}},"time":{"created":"2015-08-19T15:39:10.701Z","modified":"2026-05-26T21:31:35.010Z","1.0.0":"2015-08-19T15:39:10.701Z","1.1.0":"2016-03-01T05:51:04.668Z","1.1.1":"2017-04-14T19:42:22.147Z","1.1.2":"2018-06-09T23:11:28.346Z","2.0.0":"2018-07-26T21:38:43.431Z","2.0.1":"2021-04-01T06:12:27.467Z","3.0.0":"2023-07-23T11:36:58.917Z","3.0.1":"2025-01-29T20:43:26.466Z","3.0.2":"2025-08-03T17:41:41.161Z","4.0.0":"2026-05-25T19:36:33.378Z","4.0.1":"2026-05-26T21:31:34.589Z"},"bugs":{"url":"https://github.com/webtorrent/torrent-piece/issues"},"author":{"name":"WebTorrent LLC","email":"feross@webtorrent.io","url":"https://webtorrent.io"},"license":"MIT","homepage":"https://github.com/webtorrent/torrent-piece#readme","keywords":["torrent","piece","chunk","webtorrent","torrent-stream","peerflix","bittorrent"],"repository":{"type":"git","url":"git://github.com/webtorrent/torrent-piece.git"},"description":"Torrent piece abstraction","maintainers":[{"name":"feross","email":"feross@feross.org"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"flet","email":"flettre@gmail.com"},{"name":"watson","email":"w@tson.dk"},{"name":"diegorbaquero","email":"diegorbaquero@gmail.com"},{"name":"hicom150","email":"hicom150@gmail.com"},{"name":"jhiesey","email":"john@hiesey.com"},{"name":"webtorrent-bot","email":"contact@webtorrent.io"},{"name":"alxhotel","email":"alxmorais8@msn.com"}],"readme":"# torrent-piece [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[ci-image]: https://img.shields.io/github/actions/workflow/status/webtorrent/torrent-piece/ci.yml\n[ci-url]: https://github.com/webtorrent/torrent-piece/actions\n[npm-image]: https://img.shields.io/npm/v/torrent-piece.svg\n[npm-url]: https://npmjs.org/package/torrent-piece\n[downloads-image]: https://img.shields.io/npm/dm/torrent-piece.svg\n[downloads-url]: https://npmjs.org/package/torrent-piece\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Torrent piece abstraction\n\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/torrent-piece.svg)](https://saucelabs.com/u/torrent-piece)\n\nAlso works in the browser with [browserify](http://browserify.org/)! This module is used by [WebTorrent](http://webtorrent.io) and [torrent-stream](https://npmjs.com/package/torrent-stream).\n\n## install\n\n```\nnpm install torrent-piece\n```\n\n## usage\n\n```js\nimport Piece from 'torrent-piece'\n\nPiece.BLOCK_LENGTH // 16384\n\nconst pieceLength = Piece.BLOCK_LENGTH * 5\nconst piece = new Piece(pieceLength)\npiece.missing // 81920\n\npiece.reserve() // 0\npiece.set(0, someBuffer0)\n\npiece.reserve() // 1\npiece.reserve() // 2\npiece.reserve() // 3\n\npiece.set(1, someBuffer1)\npiece.set(2, someBuffer2)\npiece.set(3, someBuffer3)\n\npiece.reserve() // 4\npiece.cancel(4) // cancel the reservation of a chunk\n\npiece.reserve() // 4 (given out again)\npiece.set(4, someBuffer4)\n\n// handy functions\npiece.chunkLength(0) // 16384\npiece.chunkOffset(0) // 0\n\n// eventually, when no more chunks left...\n\npiece.reserve() // -1 (signal that all chunks are reserved)\npiece.missing // 0\n\nconst pieceBuffer = piece.flush()\nconsole.log(pieceBuffer)\n```\n\n## license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](https://feross.org) and [WebTorrent, LLC](https://webtorrent.io).\n","readmeFilename":"README.md"}