{"_id":"@cogeotiff/chunk","_rev":"6-4a0534aadcc9a1265034cc07922267f7","name":"@cogeotiff/chunk","dist-tags":{"latest":"4.4.0"},"versions":{"4.1.0":{"name":"@cogeotiff/chunk","version":"4.1.0","repository":{"type":"git","url":"git+https://github.com/blacha/cogeotiff.git","directory":"packages/chunk"},"author":{"name":"Blayne Chard"},"main":"./build/index.js","types":"./build/index.d.ts","license":"MIT","scripts":{},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^14.14.31"},"gitHead":"490fe6284eb3c2974040b139d4dd14780d3c35c6","description":"Split up a file into chunks and then read the chunks as needed.","bugs":{"url":"https://github.com/blacha/cogeotiff/issues"},"homepage":"https://github.com/blacha/cogeotiff#readme","_id":"@cogeotiff/chunk@4.1.0","_nodeVersion":"12.20.1","_npmVersion":"lerna/3.22.1/node@v12.20.1+x64 (linux)","dist":{"integrity":"sha512-HqtE1VXtubXtgeXbXCQHeI4n/GzxnKLDy0lY7q1rRQ4LaOx6Uhn0ZqdqyXH5gW4dXuAzJTI55v537gnJyxYFFw==","shasum":"a2ce455fb30543c9b1145adfb7eb26a5e5249d17","tarball":"https://registry.npmjs.org/@cogeotiff/chunk/-/chunk-4.1.0.tgz","fileCount":41,"unpackedSize":117749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNKsCCRA9TVsSAnZWagAAggsP/0yfPdpS7U6rQEsVMSM2\n8v/eZ5r0ZA4anY3DmLkscFkIAat851ttClYsLX+kq0dakw815FV28y5Dh5pQ\nh33phSKO72aKtg4TUuwVfeGRCFl2xV4FWcqQhBomsRTQjb1D/WLWCw5R3gBf\nE3jkMaKGou7Ufcs8Er9P7vxytoH8A9zRDkVATHiS0PD5dNmkWcTuJvHM04gR\nwk8f2cMmjI9p8unZYAPUthLK15w+8SPkDWcNw8ULREROaX7iDs4iFQocg+sp\nOQ2Vspej1kYbP99fvNEUE1WXyhkExKhfvmK+FWqDiXm+tSH1UQ6D5fqWw+zi\nN/jifdCUjwwmhBv+iTwD0Cprlq0CpwIeWryR1LyhaUPpLuOsUY4EzDLRCHOR\n5Tiul5xSfruG5F8nWlNGc2JhMAhXQ/uIJSINg06tyDmS7FSzw/lnD1h/PdQN\nfWec1UP6530guYN2SE+eDLgaf0iOsMZmF4Tpw2omUeoQBIFp2eayA7m+6IVk\nBXQwsNw4cVa4GlF1dNtaF79UQUfDfOSuOvYUMxnuF+xCXFovV/WhksrAdWA4\nXGJn96mNaj7mhw7s/1CgZXbF9Lts2fNi20dzPubbl0+1Qn37LIh+cigMxOE3\nZ5RKKZV2TvWvPUg2woQQ4ojOyTAwJZSnVvF7eK9R+P1nPzvmDC+nlNFLw+jX\nBThg\r\n=2oQi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrprcqYdw5M2LhuzmkySQzU7W6VQvvihI+jA3cZhG7pAIgRTSOiuhn6KUJhLBKPa9Be26B+USlddpoJu/MIIROJms="}]},"_npmUser":{"name":"blacha","email":"blayne@chard.com"},"directories":{},"maintainers":[{"name":"blacha","email":"blayne@chard.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chunk_4.1.0_1614064386380_0.5259806686082074"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.1.2":{"name":"@cogeotiff/chunk","version":"4.1.2","repository":{"type":"git","url":"git+https://github.com/blacha/cogeotiff.git","directory":"packages/chunk"},"author":{"name":"Blayne Chard"},"main":"./build/index.js","types":"./build/index.d.ts","license":"MIT","scripts":{},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^14.14.31"},"gitHead":"dca680d294a7b2ac737a8ae3fc579c1c3eac4bab","description":"Split up a file into chunks and then read the chunks as needed.","bugs":{"url":"https://github.com/blacha/cogeotiff/issues"},"homepage":"https://github.com/blacha/cogeotiff#readme","_id":"@cogeotiff/chunk@4.1.2","_nodeVersion":"12.21.0","_npmVersion":"lerna/3.22.1/node@v12.21.0+x64 (linux)","dist":{"integrity":"sha512-YvwOEioMfhcWY9wPwiiD6mw/hHstJvbm+n2QndtpxvrcUrMmDJjq0+cvqt+tjtPbbLgwxQqcTOgGJhquUF0r7g==","shasum":"11741760a40bd103b658b95c6a14baf471a01294","tarball":"https://registry.npmjs.org/@cogeotiff/chunk/-/chunk-4.1.2.tgz","fileCount":41,"unpackedSize":117930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU9qmCRA9TVsSAnZWagAA8MoP/juXOTYBYLFVq3qFuW1d\nZvicw6VycGLqlBfVCSGlXeTD6eYiOquCgaaKqA+jH0gPCZvp3/yf4Xl9SJsI\nhEt7t3GMKFoKnrvGhX+oR7adEAAkGMP625V5n0nORbocoEncVOFp64PUON1j\nlyqlITf7IN19+ISw09SaAxOWJtdVuoEJiJqfZ3r4VDzV0QlkKYl39ffIJqA2\nivMi4awaolFFd/KO4G6bovFAy8jNV+/OUUrteNJt5yPwSfecl1wl1p5tK8ZH\nJL8ImsGtW/0gSP4c0336Ldr4/T9jUe/G5E461CtyRT+i7g/0Mrqq4e2VKe2C\nC6ZKOnpZc8MVMhEXBfN0DMRTyaMF1TX8ZhZyB+6dWinThDyOmXnsOH1z7cYe\nG3G3+h2PN8hk+mhhJVf4DxuUdv05uYebIMDbiWoBe5FtSblc2LvmYkVJq9LD\nThN8W+ISyH3OKDBBFIPicr5ZMgpAWixiL/frKWKWOfibBR2eNt5ntQNMauaW\nS3F0YDRs6wWQP+uFgWT4wOHIblTYkYC3SUOxAmdbLN+yrhZpVrkOKyRT3hGz\nhJoKyf4wen/gqre7ICWS4UMJnLRogJkm41H6rvbGO3GKbXWvVKUnrrLLSxlT\ngbeDiFvx2g3Mjhmwqn7RDKTItHlaM1gaHi+xp4welu53yc+ebJC8qT9UqWMQ\n8ExI\r\n=8VQ9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWB3WGGsEDa3naK5EC1DaHDHBiRqpqFhCq1V1UT7wdeQIhAILA2VJJzGHLz4NrDYps5NYayyht7nVSV/dU6GDkpE3o"}]},"_npmUser":{"name":"blacha","email":"blayne@chard.com"},"directories":{},"maintainers":[{"name":"blacha","email":"blayne@chard.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chunk_4.1.2_1616108198350_0.6098941379472367"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.2.0":{"name":"@cogeotiff/chunk","version":"4.2.0","repository":{"type":"git","url":"git+https://github.com/blacha/cogeotiff.git","directory":"packages/chunk"},"author":{"name":"Blayne Chard"},"main":"./build/index.js","types":"./build/index.d.ts","license":"MIT","scripts":{},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^14.14.31"},"gitHead":"3c3641f08272411cbac32e193c9f7424241f444a","description":"Split up a file into chunks and then read the chunks as needed.","bugs":{"url":"https://github.com/blacha/cogeotiff/issues"},"homepage":"https://github.com/blacha/cogeotiff#readme","_id":"@cogeotiff/chunk@4.2.0","_nodeVersion":"12.21.0","_npmVersion":"lerna/3.22.1/node@v12.21.0+x64 (linux)","dist":{"integrity":"sha512-QN6a9SfgEk0dMjM1ZGQLtbVHkyzYQwwi3asgnuR0d75192zxFRUj0XgXjB5GCH1GnkpTRTpVgNS8hYj1abNr3A==","shasum":"236edd611f713e55c6b1b87c28b0aeb231fcb00a","tarball":"https://registry.npmjs.org/@cogeotiff/chunk/-/chunk-4.2.0.tgz","fileCount":41,"unpackedSize":121775,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW/w/CRA9TVsSAnZWagAANG8P/2zjoSaVy5xHpZt50YSp\nyMlyTC3IDwnyBEyD3JN3Nqv9x6o8SBD1j9wyL6qyLvP3GhPTQkyrKi8lN3yU\nUNWIIjdnQyljWBp9Spjd6S+po7nWWt6Sejto6jyJYqgupvk4GJV0Q+wowB9a\npQg377pr9PUK0wNjcz0jqjqAlXwmspUY4Gyw+HVh5Xv4fqymRKvyJWW4QYEk\n2k6xDXgISwFCuY9Lgnn7dew+vNsNwAAQrBb6EqzGvebC0DL5jVq8zA93FCfo\numa5+r4t/kU1FP5Rl3zRW5tgVx6sq66aC94qOfZJNDGgeYL8O+OXvqQcCoOH\nyduGEjHD4Ku3FyvdgV7Q78GNhPWGJNwYcqIxZXDMZ8s9bHHXVNXZMK082e6o\nIifRSgIU5dN6F8IzRe2SumxHoF2lWwDR+AN6P9NHvSwVeFlSdOTBQZjHfSjp\niE+m53CGQSqbJDHYViJaAPSc3QjxxS7PT9xtPveVufWynnRCgv2JNRnE1xEX\n8j/LE9FjOfMIPdHUfb6xmoT7Q3emtUdfSl2lh/4+rJXCr2ycI69IDkJ6RXT9\n+Ebcl23NZ4fVbLC8GDfxWPs/+WFS/qHdcoVgIAUXxLhfKQ4ZNhslXZ1jXFgs\nlBb4WVLcRLjRnYm1bSwghdTGNp6k3WFqGjPOQtvYNkwTY8zGA6RpVd3f1NLk\n6b12\r\n=fMZv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZdhjRWYt0L/zK+BVe0jPY0E1gZGvd13HOH/2xK/rmnAIhAJoU/7RFnzJifHMl+2wLzfuYEmDryfFcQl2fAcUxiTLT"}]},"_npmUser":{"name":"blacha","email":"blayne@chard.com"},"directories":{},"maintainers":[{"name":"blacha","email":"blayne@chard.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chunk_4.2.0_1616641086991_0.902164137697949"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.3.0":{"name":"@cogeotiff/chunk","version":"4.3.0","repository":{"type":"git","url":"git+https://github.com/blacha/cogeotiff.git","directory":"packages/chunk"},"author":{"name":"Blayne Chard"},"main":"./build/index.js","types":"./build/index.d.ts","license":"MIT","scripts":{},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^14.14.31"},"gitHead":"776f1339fab6e0eaede12c45f3952f96561dcb07","description":"Split up a file into chunks and then read the chunks as needed.","bugs":{"url":"https://github.com/blacha/cogeotiff/issues"},"homepage":"https://github.com/blacha/cogeotiff#readme","_id":"@cogeotiff/chunk@4.3.0","_nodeVersion":"12.22.1","_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","dist":{"integrity":"sha512-duVgqb/Ed6RhWISCBVBibJggWRmL/HJ9Rqq/kdcdW+aj7toGSoo8xr2NGR8N07hjILcUw/Frxf0GTK2/m+xrBg==","shasum":"3372ccec11a7f17afafd704d6a11e1068fb1c56e","tarball":"https://registry.npmjs.org/@cogeotiff/chunk/-/chunk-4.3.0.tgz","fileCount":46,"unpackedSize":125505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0nOACRA9TVsSAnZWagAARS4P/R/lR5+tDKW+L1fXLY96\nySit1ZpbfQAwko5JNZ7rrB/tgp+dnTdz+7N8OpeUBnz2K0ZaqhBdHV8/fbsI\nG45rxrEBx3U3xa+Vufu3x26DPbhgRt7rhtQEASjlSKnlYs3kaBpv5FrMLDIW\n/WJBlUvgisb3nrf0cDfwbDdqKUMhvzSg1TKAOucnTcKhUuaqFyfYNjW1ZM8q\ni3Z/m5qVwcp5AsQ7yNA2NnuM62/sokJYdJVHfL6e/WVqQal8k2RWBPviJazf\nDbBeJXmru8VmkNN8FmgGeDZLtq+dMJaJe2uNMdA/cMWivrt5+aOcGHYJW3nq\nvMPsXTdB9YfumhPDLLInce/id9lC8KwTwHj4ZFL7FKyaGTq5pCyQkj7XCIMJ\nNjwNto8BBC8NgMAVeoFmVRi4gwXxXVZYC2Qhsbfs/M7iOudLIE79W/81V2YH\nKURPNI5lDgKhsqwYK9stXsdf7SgxFAfbTPAAT6sT7AhewhK02X7iqZcCKhiM\nxWad+LPbsz+CMPkqtWPjLm/OutXPF3vhRbWbFFEDMQIyQBTWnH8I3qXj48Ks\nyGKREVf8CU16OT73+m6imzQT7eTm5Wc3qBMq+bKmPGr4MZaB26PO4eu9R4dm\nEJOhmx38+idT2UMUwwHnU9rkIJjMS/33Ezy0la1VyF9B+Vm6Y1di4NoqdCBT\nBPat\r\n=5W9y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2M+vTXhhgzbdlqsb+MnzoSuZsN6jVGaCOgmXp7iXqiQIgbDzPTyk9szuc6mw+GoTulCy599X47GJqOewy/usdFtk="}]},"_npmUser":{"name":"blacha","email":"blayne@chard.com"},"directories":{},"maintainers":[{"name":"blacha","email":"blayne@chard.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chunk_4.3.0_1624404863747_0.6383642026192129"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"4.4.0":{"name":"@cogeotiff/chunk","version":"4.4.0","repository":{"type":"git","url":"git+https://github.com/blacha/cogeotiff.git","directory":"packages/chunk"},"author":{"name":"Blayne Chard"},"main":"./build/index.js","types":"./build/index.d.ts","license":"MIT","scripts":{},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^14.14.31"},"gitHead":"7a163e92dc85ef4ba420115355dbe08fbca93ec6","description":"**Deprecated**: this module has moved to `@chunkd/core`","bugs":{"url":"https://github.com/blacha/cogeotiff/issues"},"homepage":"https://github.com/blacha/cogeotiff#readme","_id":"@cogeotiff/chunk@4.4.0","_nodeVersion":"14.17.3","_npmVersion":"lerna/4.0.0/node@v14.17.3+x64 (linux)","dist":{"integrity":"sha512-6RNPH5eU6/fUh34bkAw6eAixtyttl0LWJSxy9blmV+wcYep7z0cuBQqtQ5lmDhhtOyBWBI+WI3XhCOfuj5J+Zg==","shasum":"a2d84960d22da4532dc167953cde0a61b1d9ada4","tarball":"https://registry.npmjs.org/@cogeotiff/chunk/-/chunk-4.4.0.tgz","fileCount":46,"unpackedSize":125859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+lXcCRA9TVsSAnZWagAA9bUQAImaU2Oz8j1J5bVbI5ph\n9y70DCduTvxZ+C8VOI4qIfuqdB9HXHOWVn3AukZl/gwEXHNLu2tlwX1bAikQ\nqfie64WtfcHVyYVMPqJFIH9sbaiSYzj1gOVcBWkh6T8VnmgsCpN+RnA87tA1\n5ekk5DDodXmgoZXsfAAa1OjbBd55l4SY4mwGwESPPK25xJqUTI+d3L99XEbr\nBAacak/TmMgZau7A6z4/EyRJVbh5y2WglwX7XfvGOyUEceLCZJQaI3eoGk2J\nFQoLw5fQjnVtXEYbQgO7jVq606L+mCsKMjnKeJzyvrYhBsF+uH3BJoU3wvRk\nPhu75OlQ2NAj5D7+vytosECaHH4bYcGUNAT+MUHdq8OtkRn17ccZ2dntyfLI\nZ/QZne8W1o5jkZzfq2QflO1N2c73WxMvXheqcg4MDnxWQv96+ZiaGkUhBD7t\nJV9zzElbPdEalsXR8yq0yuBZVqP8mp8Iz2pYhTz5GnGaVJ1XG5g/O4rXhZhA\nh/87yE7AT5CsUtzrNqMjMlbrIbw92Dk7P3CPiyHlBm4+fVtVCl5pwpH6e/Zk\nGajJ3KGhjZWg2KO0SLGKgpBxd2H2bhmJjcjct6sSMoL5nsprHqwdQ365OtUf\n3l7B+brUSJYExR8pTtT23G8g8UO8qCAvgUVKd/xBUUlX+W57RhigaG0ElOOQ\nJpqz\r\n=i7I6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDX8aLDjj6r0feBNuMgbPw0xH8+4rm2Mi8iP5FrEN2uTAiBCiXVGCqfr21WCA/BfcEys/7aSk6SZXqQZnxkGT96dqw=="}]},"_npmUser":{"name":"blacha","email":"blayne@chard.com"},"directories":{},"maintainers":[{"name":"blacha","email":"blayne@chard.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chunk_4.4.0_1627018716742_0.07361931765932583"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2021-02-23T07:13:06.196Z","4.1.0":"2021-02-23T07:13:06.553Z","modified":"2022-04-05T00:10:56.057Z","4.1.2":"2021-03-18T22:56:38.507Z","4.2.0":"2021-03-25T02:58:07.141Z","4.3.0":"2021-06-22T23:34:23.894Z","4.4.0":"2021-07-23T05:38:36.901Z"},"maintainers":[{"name":"blacha","email":"blayne@chard.com"}],"description":"**Deprecated**: this module has moved to `@chunkd/core`","homepage":"https://github.com/blacha/cogeotiff#readme","repository":{"type":"git","url":"git+https://github.com/blacha/cogeotiff.git","directory":"packages/chunk"},"author":{"name":"Blayne Chard"},"bugs":{"url":"https://github.com/blacha/cogeotiff/issues"},"license":"MIT","readme":"# Chunked object reading\n\n**Deprecated**: this module has moved to `@chunkd/core`\n\n\nSplit up a file into chunks and then read the chunks as needed.\n\n## Example Sources\n- File - [@cogeotiff/source-file](https://www.npmjs.com/package/@cogeotiff/source-file)\n- AWS - [@cogeotiff/source-aws](https://www.npmjs.com/package/@cogeotiff/source-aws)\n- Url - [@cogeotiff/source-url](https://www.npmjs.com/package/@cogeotiff/source-url)\n\n### Example Usage\nFetching Data\n```typescript\nconst source = new SourceUrl('https://example.com/foo')\n// Read 1KB chunks\nsource.chunkSize = 1024;\n\n// Read the first 2KB of the file, or two chunks of data, this will be one HTTP Range requests\nif (!source.hasBytes(0, 2048)) await source.loadBytes(0, 2048)\n\nconst bytes = source.bytes(0, 2048);\n```\n\nFetching multiple ranges at the same time\n\n```typescript\nconst source = new SourceUrl('https://example.com/foo')\n// Read 1KB chunks\nsource.chunkSize = 1024;\n\n// Read in the first two KB and 1KB starting at 4KB\n// This will do one HTTP Range request for all of the data even though 2048-4096 has not been requested\n// Chunks 0 (0-1024), 1 (1024-2048), 2 (2048-3096) 3 (3096-4096) and 4 (4096 - 5120) will be fetched\nawait Promise.all([\n    source.loadBytes(0, 2048), \n    source.loadBytes(4096, 1024)\n]) \n\nconst bytes = source.bytes(0, 5120);\n```\n\n\nReading raw bytes\n```typescript\nconst source = new SourceUrl('https://example.com/foo')\n\nif (!source.hasBytes(0, 1024)) await source.loadBytes(0, 1024)\n// Read a UInt8 starting at offset 0\nconst firstNumber = source.uint8(0);\n// Read a buffer from offset 10, with length of 100\nconst firstBuffer = source.bytes(10, 100)\n```","readmeFilename":"README.md"}