{"_id":"copc","_rev":"1656660","name":"copc","description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","dist-tags":{"latest":"0.0.9"},"maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"time":{"modified":"2026-10-31T06:09:08.000Z","created":"2021-08-17T15:25:02.442Z","0.0.9":"2026-08-10T16:37:35.679Z","0.0.8":"2025-02-19T01:43:33.046Z","0.0.7":"2024-09-26T15:13:49.817Z","0.0.6":"2024-03-26T15:03:41.858Z","0.0.5":"2023-11-29T20:12:51.935Z","0.0.5-alpha.1":"2023-11-09T10:51:11.351Z","0.0.5-alpha.0":"2023-11-07T10:14:46.998Z","0.0.4":"2022-09-12T19:45:51.170Z","0.0.3":"2022-07-29T17:02:23.551Z","0.0.2":"2021-08-23T16:13:35.907Z","0.0.1":"2021-08-23T16:12:33.972Z","0.0.0":"2021-08-17T15:25:02.442Z"},"users":{},"versions":{"0.0.9":{"name":"copc","license":"MIT","version":"0.0.9","type":"module","main":"lib/index.js","scripts":{"build":"tsc --project tsconfig.production.json","prepare":"npm run build","test":"vitest run"},"dependencies":{"cross-fetch":"^4.1.0","laz-perf":"^0.0.7"},"devDependencies":{"@types/emscripten":"^1.41.5","@types/estree":"^1.0.9","@types/node":"^20.19.43","husky":"^7.0.4","prettier":"^3.9.6","pretty-quick":"^4.2.2","typescript":"^5.9.3","vitest":"^4.1.10"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"browser":{"fs":false},"gitHead":"ba1ea7d1b4a62730b035d254d47fc2fb2ed432bf","types":"./lib/index.d.ts","_id":"copc@0.0.9","description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-10wWYz05hRuJ2um30fxCzumJzkBZUxMft2y7FGCv4RQfdA5gG22mKqb9VspEpXOdyRy1bRFSgIbDHOjWKNtHtw==","shasum":"989283bdf9f639e939219a67bb192721d108f17b","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.9.tgz","fileCount":102,"unpackedSize":78140,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD4jaCejfC9qzXRqgJIG/CAtgmFMmL1NxVb89xi8u8oNgIhAIyCWLKPQus++ERFdpZf286pleZ8VahsiSnwqZEdCBo0"}],"size":20122,"noattachment":false,"key":"/copc/-/copc-0.0.9.tgz"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"directories":{},"maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/copc_0.0.9_1786379855512_0.06301689496684593"},"_hasShrinkwrap":false,"publish_time":1786379855679,"_cnpm_publish_time":1786379855679},"0.0.8":{"name":"copc","version":"0.0.8","license":"MIT","_id":"copc@0.0.8","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"10ed04ad5185709a0d1800cffc4d49da44772357","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.8.tgz","fileCount":102,"integrity":"sha512-OWjfOZKhh7EkSYIMST/yxmegMwCR5Gye3Koq3ov1+oHFozBbPwlK1bsSWB9aNdJrXElaTh374bNhOSPxx1xSog==","signatures":[{"sig":"MEUCIAo+GbQGQiN38rseHLfcIzyLG0DWfLx3WBRfcKnJNvbKAiEA+x1L31RU5qJy3ypWYB9BmdES8TBRmfMlf6eLPmvQoxo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90749,"size":21189,"noattachment":false,"key":"/copc/-/copc-0.0.8.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"types":"./lib/index.d.ts","browser":{"fs":false},"gitHead":"d95d5a85869c54121ecc568afb4298a1b6650d2d","scripts":{"test":"jest","build":"tsc --project tsconfig.production.json && tsc-alias","prepare":"npm run build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"_npmVersion":"11.0.0","description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","directories":{},"_nodeVersion":"22.12.0","dependencies":{"laz-perf":"^0.0.7","cross-fetch":"^3.1.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^7.0.1","ts-jest":"^29.1.1","prettier":"^3.0.3","tsc-alias":"^1.8.8","typescript":"^5.2.2","@types/jest":"^29.5.7","@types/node":"^20.8.10","pretty-quick":"^3.1.3","@types/estree":"^1.0.4","@types/emscripten":"^1.39.10"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.8_1739929412862_0.19423884260764157","host":"s3://npm-registry-packages-npm-production"},"publish_time":1739929413046,"_cnpm_publish_time":1739929413046},"0.0.7":{"name":"copc","version":"0.0.7","license":"MIT","_id":"copc@0.0.7","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"2aa1b2d5277f6d2c7b88eb843f3b92bcef0a6ae7","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.7.tgz","fileCount":102,"integrity":"sha512-vAeqqORGwvtAuQG8ZDUAsRYpyTHhdzR5i2ZBt4BAGMkDgMv21oDBqUIVIKv8Xe04gbdcyBzzVmmiz8WKszFcsA==","signatures":[{"sig":"MEUCIQDZ1NvjP69Hil+jkcyyHklUUtZGQffn2O05lGUCI9ELmwIgYheEqEdDQecfSkti7rxYX58ZZM3dFbTVB/fvsfogdwY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":90749,"size":21189,"noattachment":false,"key":"/copc/-/copc-0.0.7.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"types":"./lib/index.d.ts","browser":{"fs":false},"gitHead":"aba04f214c1c3d73c76c1b94e5efaa293684f72d","scripts":{"test":"jest","build":"tsc --project tsconfig.production.json && tsc-alias","prepare":"npm run build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"_npmVersion":"10.5.2","description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","directories":{},"_nodeVersion":"20.13.1","dependencies":{"laz-perf":"^0.0.5","cross-fetch":"^3.1.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^7.0.1","ts-jest":"^29.1.1","prettier":"^3.0.3","tsc-alias":"^1.8.8","typescript":"^5.2.2","@types/jest":"^29.5.7","@types/node":"^20.8.10","pretty-quick":"^3.1.3","@types/estree":"^1.0.4","@types/emscripten":"^1.39.10"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.7_1727363629576_0.5502093004641742","host":"s3://npm-registry-packages"},"publish_time":1727363629817,"_cnpm_publish_time":1727363629817},"0.0.6":{"name":"copc","version":"0.0.6","license":"MIT","_id":"copc@0.0.6","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"ad672585119a71495774b90556b97f5b8d81cad3","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.6.tgz","fileCount":102,"integrity":"sha512-hh5dp1cnSom1pdvbeqrHcSLdxboig4hEcV0yCnShNxKO/a/nMDxiRmksRL59ol/o52nDBzub2mk/WhA8lxGKiA==","signatures":[{"sig":"MEQCIDAdBcSvP/MP3wo5P83vp0lCi6yOOgRkXtNazSaJg3LvAiBOiqii+wxXP/QkutNX+3jEbMYAnfbAqDMJTyXmK7/DNg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":90384,"size":21066,"noattachment":false,"key":"/copc/-/copc-0.0.6.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"types":"./lib/index.d.ts","browser":{"fs":false},"gitHead":"9a1d36a76ab8a70d3283941e0f1084d1369cf556","scripts":{"test":"jest","build":"tsc --project tsconfig.production.json && tsc-alias","prepare":"npm run build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"_npmVersion":"9.5.1","description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","directories":{},"_nodeVersion":"18.16.0","dependencies":{"laz-perf":"^0.0.5","cross-fetch":"^3.1.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^7.0.1","ts-jest":"^29.1.1","prettier":"^3.0.3","tsc-alias":"^1.8.8","typescript":"^5.2.2","@types/jest":"^29.5.7","@types/node":"^20.8.10","pretty-quick":"^3.1.3","@types/estree":"^1.0.4","@types/emscripten":"^1.39.10"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.6_1711465421712_0.3743435723602597","host":"s3://npm-registry-packages"},"publish_time":1711465421858,"_cnpm_publish_time":1711465421858},"0.0.5":{"name":"copc","version":"0.0.5","license":"MIT","_id":"copc@0.0.5","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"9c0b9f9ae1cbf1ccdd5fa9a2202b43366410c808","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.5.tgz","fileCount":102,"integrity":"sha512-6FomlN1gMJ13C1QmLuKpjchXSg/UjdWb1/vTPp6GnrULaEQPtdQw1bSQBF1INvxhjCGz5T6OzV09t/gUJWkjmg==","signatures":[{"sig":"MEQCIBPCvCtC+u660SDFVesTKASDglAdHWuO5g5iAKgHEadmAiAgFIMoDo5vaCUI7f/ZZvZHz1pzcAMvYY981kbLfiidUA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":90348,"size":21050,"noattachment":false,"key":"/copc/-/copc-0.0.5.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"types":"./lib/index.d.ts","gitHead":"2bafac25f39e1dc969979fe5e588711d7370f3a9","scripts":{"test":"jest","build":"tsc --project tsconfig.production.json && tsc-alias","prepare":"npm run build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"_npmVersion":"9.5.1","description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","directories":{},"_nodeVersion":"18.16.0","dependencies":{"laz-perf":"^0.0.5","cross-fetch":"^3.1.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^7.0.1","ts-jest":"^29.1.1","prettier":"^3.0.3","tsc-alias":"^1.8.8","typescript":"^5.2.2","@types/jest":"^29.5.7","@types/node":"^20.8.10","pretty-quick":"^3.1.3","@types/estree":"^1.0.4","@types/emscripten":"^1.39.10"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.5_1701288771684_0.26261759642230276","host":"s3://npm-registry-packages"},"publish_time":1701288771935,"_cnpm_publish_time":1701288771935},"0.0.5-alpha.1":{"name":"copc","version":"0.0.5-alpha.1","license":"MIT","_id":"copc@0.0.5-alpha.1","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"f334095427e5e71f46ba896939430fa39ce04c4e","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.5-alpha.1.tgz","fileCount":102,"integrity":"sha512-Vo4g0XJxSV/Zz0bknvkL+XIAIZPorD31x+NoTqAg5eWwyecY0El/nGHcyxORzwREWpKa0bmpXoYvfFvI8SXkxg==","signatures":[{"sig":"MEYCIQD+JN8I5Yy9JYbDVObJ1Eb/GfygGuagOuC2dby0AA/tTAIhAOvZxdsszbR4tSVVG8y1kNtvb2YhqnRDkv8ph3mMmFmP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":90435,"size":21073,"noattachment":false,"key":"/copc/-/copc-0.0.5-alpha.1.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"types":"./lib/index.d.ts","gitHead":"44e2eb305663e325c8d3b1a8ba22b256ccbb5638","scripts":{"test":"jest","build":"tsc --project tsconfig.production.json && tsc-alias","prepare":"npm run build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"_npmVersion":"9.5.1","description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","directories":{},"_nodeVersion":"18.16.0","dependencies":{"laz-perf":"^0.0.5","cross-fetch":"^3.1.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^7.0.1","ts-jest":"^29.1.1","prettier":"^3.0.3","tsc-alias":"^1.8.8","typescript":"^5.2.2","@types/jest":"^29.5.7","@types/node":"^20.8.10","pretty-quick":"^3.1.3","@types/estree":"^1.0.4","@types/emscripten":"^1.39.10"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.5-alpha.1_1699527071145_0.4876103717129654","host":"s3://npm-registry-packages"},"publish_time":1699527071351,"_cnpm_publish_time":1699527071351},"0.0.5-alpha.0":{"name":"copc","version":"0.0.5-alpha.0","license":"MIT","_id":"copc@0.0.5-alpha.0","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"5929f73fbf6c98050fdb4c9212fa14bc59438b19","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.5-alpha.0.tgz","fileCount":102,"integrity":"sha512-FLOBvAEIO0KeazxAjkRMhU7YpJ1v18ByC5OuVXl7rtJDLhpGUxzteOqe0ucAySlxL6jWd3yjaCiRp/EeWa7oHw==","signatures":[{"sig":"MEYCIQD78KFrhlzkBnGCij+2lgROR4dG9CK6cY9ampvi5dqK5wIhAOuONqWKijtmw4foPv1D2X4bPUtd/bSnuGQg7OW8eQmb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":89887,"size":20868,"noattachment":false,"key":"/copc/-/copc-0.0.5-alpha.0.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"types":"./lib/index.d.ts","gitHead":"44e2eb305663e325c8d3b1a8ba22b256ccbb5638","scripts":{"test":"jest","build":"tsc --project tsconfig.production.json && tsc-alias","prepare":"npm run build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"_npmVersion":"9.5.1","description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","directories":{},"_nodeVersion":"18.16.0","dependencies":{"laz-perf":"^0.0.5","cross-fetch":"^3.1.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^7.0.1","ts-jest":"^29.1.1","prettier":"^3.0.3","tsc-alias":"^1.8.8","typescript":"^5.2.2","@types/jest":"^29.5.7","@types/node":"^20.8.10","pretty-quick":"^3.1.3","@types/estree":"^1.0.4","@types/emscripten":"^1.39.10"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.5-alpha.0_1699352086827_0.24846590713132133","host":"s3://npm-registry-packages"},"publish_time":1699352086998,"_cnpm_publish_time":1699352086998},"0.0.4":{"name":"copc","version":"0.0.4","license":"MIT","_id":"copc@0.0.4","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"6ca1192b1619cd94640e86eace6b99820ed43a4f","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.4.tgz","fileCount":108,"integrity":"sha512-qXFuJmh5qYFoMNAfsbpvjH6pj+O6Ntv46NmOFkzlZa3FSVB21BrPNz4+jMufOHH6TJYuu0VYAYMMIbdwa2yk+A==","signatures":[{"sig":"MEUCIQCEYe9SCHajfErGFRML+oPOUagRVuKdHpoPJZX2HVJofQIgfMQQV+qZnTf/bTrX+nm7KVcS4BYckeljxvgKd7QjSMQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjH4xvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmog1w/7BUHN/ThSCaHCcN4rsddbaOEGWkmkvugIha6ln+9m2tT0B7Fg\r\nuN+kf/1sbBPjRhatwTNFRcmR1bvgynH2gUrYOzdRTa5FVBSq7XJHEdRf/zou\r\n2BLyghUuN6xl9NqFAtrBngYmiv2RZzjcjOx0g7OJQ4DSvYgBheThevTXZ296\r\n39OrturYfIrcKQ6L71sh4lQOTrHcJjPnfQ5WN3TL05bdysO1MnlzTipMKe0s\r\n42wYCUC3jjFNux6/CgZSazniE7/sX86VfIOsQEBM1W9SDpFGzdJI45YPH3Hi\r\n8WzF8Hfr0rnAOS7tWklLGGeYJzoNiSR8X5bMzYiog/K6tW/8bVkYzKhxRT78\r\n/ElwJFW4bYpqQoLr+ojhCi33fwLMGQSzR/tqbhiB16oCOwrn3H2MzaVHkC3T\r\ncy0OnjGFsjDNfOYJz6kl66XSVT01TD5dpfL9ro39pCh4dPYZu6jFKg5sygP8\r\nB5k6hB0y51v71IUy4raR62B4yvO5AcR6XD/CkncSOkLfoYTc3r6sveuRgkD0\r\nv6h/5Y1toQwlyYqs6z8zx8Mgjd1x+PeDfzo8cuxlzdy4XsoJ/+wHUGjcdAFz\r\n5984KbqVmTUWDxkPaW/Tb/TsPNda/nU2FAdzdgewaBed2JVG3yOuVbfbCmzR\r\nOD5/VQIpVKwY3izuhXGONhR3U40o9X5T//Y=\r\n=8MM/\r\n-----END PGP SIGNATURE-----\r\n","size":22124,"noattachment":false,"key":"/copc/-/copc-0.0.4.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"scripts":{"test":"jest","build":"ttsc --project tsconfig.production.json","prepare":"yarn build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2021 Connor Manning\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"laz-perf":"^0.0.5","cross-fetch":"^3.1.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.6","husky":"^7.0.1","tslib":"^2.3.1","rollup":"^2.67.2","ts-jest":"^27.0.5","ts-node":"^10.2.0","prettier":"^2.3.2","ts-loader":"^9.2.5","typescript":"^4.5.5","@types/jest":"^27.0.1","@types/node":"^16.6.1","ttypescript":"^1.5.12","pretty-quick":"^3.1.1","@types/emscripten":"^1.39.5","@rollup/plugin-json":"^4.1.0","@rollup/plugin-commonjs":"^21.0.3","@rollup/plugin-typescript":"^8.3.0","rollup-plugin-includepaths":"^0.2.4","@rollup/plugin-node-resolve":"^13.1.3","@zerollup/ts-transform-paths":"^1.7.18"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.4_1663011950964_0.3704198915254431","host":"s3://npm-registry-packages"},"publish_time":1663011951170,"_cnpm_publish_time":1663011951170},"0.0.3":{"name":"copc","version":"0.0.3","license":"UNLICENSED","_id":"copc@0.0.3","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"9dd8a86a679b110a520871e3c964f07ac5330da9","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.3.tgz","fileCount":78,"integrity":"sha512-w7AVpmOyivX+xkyRQyy6BHbqhWauCqJmR0/WyqqKy8sACyfrfN9Z8CsDhQONujGi9zFQ73bDgFMfwK49tUc1wQ==","signatures":[{"sig":"MEQCIEEi0w/EHzSyW0QyAWQAyGv3f8TrlcOBK1xWG00a6U8jAiAOPcmY6oSY9aZMOr4jlR26OIoWwPWDbdfPtkWfakRXRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":234230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5BKfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpd8w//SeTGlwLTfRaLHAwlCaSM6p06qj7+bdbDvsh4+uNV6CQQ0PMc\r\n2fs5sYPvg/ClvrpPoNvHu91W9a/qokjr47lEGAvauODrRAQ15MzsaEsNrSA3\r\nO7EhiguhFhrOovvTpm38+nMqZxRHg6+EyMbjhbVrrfB1bNoF+QFAXaSqCWKJ\r\ntr6WIfVqaUj+pV8rQqrJgKLY0aGgT3F7U5RBzdQ+WvA9ZnKelrThsGZRWDZn\r\ndyFnWf0iOchcZ1lnvWUvwHA/FnioWD5GhA32nfh2YmueL59T0FE+LhQkaOH9\r\np5vosWR5dOSpUiO41oCYJ42DWwTO38gua99NGUDpm8twwKk99ac/WHEJNqJp\r\nWsE+fjcJgT1S8lpaxdsmcmSl7PKs5CYvIF7vWOAU3ELxUzFq7G6UTZj1OBfU\r\nxn3AfKBOTVohmnOGBtUOkSv5HhQWjQfc+mPKi7MyBHEAmxSO1C793Xam8XZz\r\nMcnaftu30a2fmLBb5pbn2eJX7uwZ5miDxV9jdkaV1i2pMDiVzAaUD8kzRtua\r\nYoPZMj34Q9uo2RcV9ipzrtzI7wGjhnY6Ix3+NZHTOLx9r+QTiPS9l17wwTTd\r\n0CN5xzz6EfDTGUmkhOwYULKLTuPtxXf+iwayrFmVXt30d6j14VOFuSsdXv0w\r\nPwQtM/tbYxJXGt7dSzYOgsH+DTlJ57xkuAU=\r\n=lpKl\r\n-----END PGP SIGNATURE-----\r\n","size":46330,"noattachment":false,"key":"/copc/-/copc-0.0.3.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"scripts":{"tsc":"ttsc --project tsconfig.production.json","test":"jest","build":"rollup -c && ttsc --project tsconfig.production.json --emitDeclarationOnly","prepare":"yarn build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2021 Connor Manning\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"laz-perf":"^0.0.3","cross-fetch":"^3.1.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.6","husky":"^7.0.1","tslib":"^2.3.1","rollup":"^2.67.2","ts-jest":"^27.0.5","ts-node":"^10.2.0","prettier":"^2.3.2","ts-loader":"^9.2.5","typescript":"^4.5.5","@types/jest":"^27.0.1","@types/node":"^16.6.1","ttypescript":"^1.5.12","pretty-quick":"^3.1.1","@types/emscripten":"^1.39.5","@rollup/plugin-json":"^4.1.0","@rollup/plugin-commonjs":"^21.0.3","@rollup/plugin-typescript":"^8.3.0","rollup-plugin-includepaths":"^0.2.4","@rollup/plugin-node-resolve":"^13.1.3","@zerollup/ts-transform-paths":"^1.7.18"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.3_1659114142962_0.8522437221216892","host":"s3://npm-registry-packages"},"publish_time":1659114143551,"_cnpm_publish_time":1659114143551},"0.0.2":{"name":"copc","version":"0.0.2","license":"UNLICENSED","_id":"copc@0.0.2","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"a858b0052348b37193d66204966428ee33fdc52f","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.2.tgz","fileCount":77,"integrity":"sha512-ryIS5w8YDzpDs/N2pC1FzkgwBoqGMqqWqXqPQZq2XvbSf3+1j2CmcLaQPCuUEQovdWghE8oR0KhbvaQb+ZteDA==","signatures":[{"sig":"MEUCIQDg13OGrEnDuHBM9FOkJIlII9tKglJHcwlpg63IMkRkUQIgVqu8mwfxWrGJd2IqiC1lw+xtzjaBoXE9RZvAyeiF4Bk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhI8kvCRA9TVsSAnZWagAAjL8P/1w3FYsXTy3BPOY122U5\n1hRH7TT3UKqwYg0EVcptA0RL7JcX01r8uF+RqszsWB1hSRnOFrFsfjFgfqJ3\nVII+p1+z7moYH0gwt/wp/Sk3+U7L0sJfHTv2KhY3MMq6XC+kK2FRfelOMbYf\nw+paBTsBzaHc9HbKarEzOz39GhjGH6nsMkaEt+AO80OrWIxmjFdOqIjN/qXW\nd8gLVGyIS4AcJ2IF1xjzrQyEf2DbGmPvOyIwlIPhbRto2COAMUwAiIN+2O3L\nuoraSduSmooZDL2TnLEsv0KISoWCyOBRfLNjbgM25oPr5Aefprkh8zblhfS6\n+3YA8X3Yo7wEY9+VjXkwdZL7L/7An1uHkyKXeXMU1RJjOSQ05zaIx7ij+umT\ndPxELd+5kqtJMI8Y2vW8oF89dcEKU85+ulz8UD1dSr4uZ4NViZSHUJtaOIPF\nrhhY0gOFJQgcArCPBJdWbrg5xUxZe+FldBzwLyXqCd/YxNBqaaRElEicxAtp\n6xEr1aqnR2Y1YdimwbtyTbM4LS9sWlpFB+zaEQos1/jkSPD82120yx/lRXHj\n3+bTURGPTAvnW/Oq1fFXXki76OvkMMrjhn3Sut6uQlEt33H95Nk8ONURhxlU\nUDZXooeYV7bmw9RXnaRS56ksacwL+NHlJicBlK1gRknvVmC5gC8KvvJ1ZA2S\nttnG\r\n=1P4X\r\n-----END PGP SIGNATURE-----\r\n","size":11494,"noattachment":false,"key":"/copc/-/copc-0.0.2.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"scripts":{"test":"jest","build":"tsc --project tsconfig.production.json","prepare":"yarn build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","directories":{},"dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.6","husky":"^7.0.1","forager":"^0.0.8","ts-jest":"^27.0.5","ts-node":"^10.2.0","prettier":"^2.3.2","typescript":"^4.3.5","@types/jest":"^27.0.1","@types/node":"^16.6.1","pretty-quick":"^3.1.1","@types/emscripten":"^1.39.5","@types/node-fetch":"^2.5.12"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.2_1629735215739_0.47157130248944523","host":"s3://npm-registry-packages"},"publish_time":1629735215907,"_cnpm_publish_time":1629735215907},"0.0.1":{"name":"copc","version":"0.0.1","license":"UNLICENSED","_id":"copc@0.0.1","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"3af107c33ca99c02f457cc450eae0a9e8503e523","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.1.tgz","fileCount":77,"integrity":"sha512-mEyPwaeocdIh/jnZTm1HoP4DU7v+w1qbgZVB4seJWwhBZ2fxmkYdQ7DJb/WuoX92sqpu7YhFf9YhWh/gxpwJjg==","signatures":[{"sig":"MEQCIE/jZegl0QohGldac+dmQX8u07q49PYxg2CroJJ88TEqAiBOvTGbBmxmjQcshT+Ai6oZ1DPg9pZAQTqTPlr1RkZApw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhI8jxCRA9TVsSAnZWagAA1YAP/jPOco09R+cPME4cj9+q\ncqHhq1RKbJRz48ITXcUi6hlyTC8TnlvruUgdtsR+hGa3BXLNcEcInA4AZGzr\nJi2ALNfeJ/hQKgq4DXSMRYVyuI7pHvaA2NjdA55ZaJkH8cu3MlhrAwvMreFT\nEGJ6+NbDTFKYmz0UmlXqyKZHnPao63lHRKlsGRXepa9hhEl/KmqLhQ1ifhV+\nZONOVZTHA5w8lsXPCg8cwg34v1Qg3JUfpzYduNZKoY7SjwvbcpKh+o7xg7Lq\nfX7FjLfD7i9nJ5jrLpip9DFPiq+gHPya5zPRjmCn/P6FVzoC+ZyapCT22WmH\n3BFeZtpoPptwF5TdjwxkuqHts9JBiakfijdiqJzY0bG3iPNhbKrqqGH/CZlr\nsMzcM8TKvdT/QoaFaTFBVVn6RNa8MJz0Q+NxFulqL9HnxcyzGvbJUy2yXuSP\noMA4XzRksN516zpJLxlTNLbBv3uNtX0o1Ej0t+LlcWL30T5bGqpasmQlEWW0\njWJuaS+AumQF1mMYXP9IYVakM0KPxq2INWtEiWhzEZJg1TZeFMWUFl7XpVkN\n7aL3Euf9YahAeqWukVKuPXtjGQoNxS8u6LLL3uTePaABjIw8zJnQXJR6WBSH\nQX/UIzsH8XMioJ89DNM/38oMf0632pSW5QvYkJtDWDSKwTr8XCnQi2BERLD2\nJ4ku\r\n=4fcq\r\n-----END PGP SIGNATURE-----\r\n","size":11494,"noattachment":false,"key":"/copc/-/copc-0.0.1.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"scripts":{"test":"jest","build":"tsc --project tsconfig.production.json","prepare":"yarn build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"description":"![test](https://github.com/connormanning/copc/workflows/test/badge.svg)","directories":{},"dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.6","husky":"^7.0.1","forager":"^0.0.8","ts-jest":"^27.0.5","ts-node":"^10.2.0","prettier":"^2.3.2","typescript":"^4.3.5","@types/jest":"^27.0.1","@types/node":"^16.6.1","pretty-quick":"^3.1.1","@types/emscripten":"^1.39.5","@types/node-fetch":"^2.5.12"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.1_1629735153838_0.17196932942359022","host":"s3://npm-registry-packages"},"publish_time":1629735153972,"_cnpm_publish_time":1629735153972},"0.0.0":{"name":"copc","version":"0.0.0","license":"UNLICENSED","_id":"copc@0.0.0","maintainers":[{"name":"connormanning","email":"connor@hobu.co"}],"dist":{"shasum":"30d950873d9c91590325309f6672399d2dff87d3","tarball":"http://registry-npm.ywwl.com/copc/download/copc-0.0.0.tgz","fileCount":7,"integrity":"sha512-NCak9MFOIUXmLSc3YWXpDFIPbdtPmaKQrW8t5bnqOf4Wrqioe+lVz1FjwYKfoQ/iDACZmU+SJk9+oXVCmKQuDA==","signatures":[{"sig":"MEUCIDxsPhASaD7BtLN0qJbM/gXoepiifBQYOBoQv7ZhPOKkAiEArFWRFZ9roDcf9PVCRSYNaywzODlOPC3zMVWfQJWG9tk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhG9TOCRA9TVsSAnZWagAAaBEP/2Uc+ftmMuF+zGGv093A\nk8QzgVOmGwZ+SXn9kFS+arBQ1CAxf+MXYjbfRRP7w0UjmKDsFuASGoufk2JL\nFhiTwXUwDq9oe0qEjCR7t4BSS2meKq0guFD4aiuj4U9O7rRS8RjVj/K7mYJg\nwfnjxCAn89MiagOtAHBO339kehiTcr11ov+Q21RUmDk7PbpC+RT5TL5D542u\nJSDNez+SoaGo+EhQ7PoIafgpO9qvZFahP2Q6hKZ05FNWGQHuPPAP0yiepMHr\nEAofg+uscsWG3Ekkzg3QJJffVA2YIMIs3zW6MGk9myAI+YwPUe3ZAzKnxjUY\nq0CiECmVHs2nznx1bsTbT5Ub3oG7sM6iseivqW/SDFOIXDxZk2Ugapx1RDnw\nkpejIS3ua2bUCpd6b4OaydaX0FwwIeJsHMuPSatiPF9Rn9r31TkgKur9w1Tb\nbQgYghWHyGyThLOcP/Eu2o+2NtpP+PEpw5GOMeczD1DuymeRSO2HvDEhCnwm\nsL8HV+/lK4J7WYmoNjYpp42718qgJJjrhtbi5GmOC/wZZO4CNQdDD/KTecU9\naixJbvIVtMDbET6QcSOIA+xevcpZOgGkasx7ZIXH+SWtTdkR153fZ8YFOA0F\nkHqpGEN+vap7n3R6m1uZqik63a1bhcg7mwjOATATs+sRXKXWLSNb/RAOB3EI\nQJ3M\r\n=NyQv\r\n-----END PGP SIGNATURE-----\r\n","size":798,"noattachment":false,"key":"/copc/-/copc-0.0.0.tgz"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"scripts":{"test":"jest","build":"tsc","prepare":"yarn build"},"_npmUser":{"name":"connormanning","email":"connor@hobu.co"},"description":"![test](https://github.com/landrushing/template/workflows/test/badge.svg)","directories":{},"dependencies":{"node-fetch":"^2.6.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.6","husky":"^7.0.1","ts-jest":"^27.0.5","ts-node":"^10.2.0","prettier":"^2.3.2","typescript":"^4.3.5","@types/jest":"^27.0.1","@types/node":"^16.6.1","pretty-quick":"^3.1.1","@types/node-fetch":"^2.5.12"},"_npmOperationalInternal":{"tmp":"tmp/copc_0.0.0_1629213902281_0.48358618001268416","host":"s3://npm-registry-packages"},"publish_time":1629213902442,"_cnpm_publish_time":1629213902442}},"readme":"# COPC\n![test](https://github.com/connormanning/copc/workflows/test/badge.svg)\n\nA TypeScript library for reading and parsing [COPC](https://copc.io/) data.\n\n`npm install copc`\n\n## Usage\n\n### Initialize a COPC object\n```typescript\n// Can also pass a getter instead of a filename string.\nconst copc = await Copc.create(filename)\nconsole.log(copc)\n```\n```\n{\n  header: {\n    fileSignature: 'LASF',\n    fileSourceId: 0,\n    globalEncoding: 16,\n    projectId: '00000000-0000-0000-0000000000000000',\n    majorVersion: 1,\n    minorVersion: 4,\n    systemIdentifier: '',\n    generatingSoftware: '',\n    fileCreationDayOfYear: 1,\n    fileCreationYear: 1,\n    headerLength: 375,\n    pointDataOffset: 1424,\n    vlrCount: 3,\n    pointDataRecordFormat: 7,\n    pointDataRecordLength: 36,\n    pointCount: 100000,\n    pointCountByReturn: [\n      50002, 49998, 0, 0,\n          0,     0, 0, 0,\n          0,     0, 0, 0,\n          0,     0, 0\n    ],\n    scale: [ 0.01, 0.01, 0.01 ],\n    offset: [ -8242596, 4966606, 0 ],\n    min: [ -8242746, 4966506, -50 ],\n    max: [ -8242446, 4966706, 50 ],\n    waveformDataOffset: 0,\n    evlrOffset: 630520,\n    evlrCount: 1\n  },\n  vlrs: [\n    {\n      userId: 'copc',\n      recordId: 1,\n      contentOffset: 429,\n      contentLength: 160,\n      description: 'COPC info VLR',\n      isExtended: false\n    },\n    {\n      userId: 'laszip encoded',\n      recordId: 22204,\n      contentOffset: 643,\n      contentLength: 46,\n      description: 'lazperf variant',\n      isExtended: false\n    },\n    {\n      userId: 'LASF_Projection',\n      recordId: 2112,\n      contentOffset: 743,\n      contentLength: 681,\n      description: '',\n      isExtended: false\n    },\n    {\n      userId: 'copc',\n      recordId: 1000,\n      contentOffset: 630580,\n      contentLength: 160,\n      description: 'COPC Hierarchy',\n      isExtended: true\n    }\n  ],\n  info: {\n    cube: [ -8242746, 4966506, -50, -8242446, 4966806, 250 ],\n    spacing: 2.34375,\n    rootHierarchyPage: { pageOffset: 630580, pageLength: 160 },\n    gpsTimeRange: [ 42, 42 ]\n  },\n  wkt: 'PROJCS[\"WGS 84 / Pseudo-Mercator\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],PROJECTION[\"Mercator_1SP\"],PARAMETER[\"central_meridian\",0],PARAMETER[\"scale_factor\",1],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Easting\",EAST],AXIS[\"Northing\",NORTH],EXTENSION[\"PROJ4\",\"+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs\"],AUTHORITY[\"EPSG\",\"3857\"]]',\n  eb: []\n}\n```\n\n### Traverse hierarchy and read point data\n```typescript\nconst { nodes, pages } = await Copc.loadHierarchyPage(\n  filename,\n  copc.info.rootHierarchyPage\n)\nconst root = nodes['0-0-0-0']!\nconst view = await Copc.loadPointDataView(filename, copc, root)\nconsole.log('Dimensions:', view.dimensions)\n\nconst getters = ['X', 'Y', 'Z', 'Intensity'].map(view.getter)\nfunction getXyzi(index: number) {\n  return getters.map(get => get(index))\n}\nconst point = getXyzi(0)\nconsole.log('Point:', point)\n```\n```\nDimensions: {\n  X: { type: 'float', size: 8 },\n  Y: { type: 'float', size: 8 },\n  Z: { type: 'float', size: 8 },\n  Intensity: { type: 'unsigned', size: 2 },\n  ReturnNumber: { type: 'unsigned', size: 1 },\n  NumberOfReturns: { type: 'unsigned', size: 1 },\n  Synthetic: { type: 'unsigned', size: 1 },\n  KeyPoint: { type: 'unsigned', size: 1 },\n  Withheld: { type: 'unsigned', size: 1 },\n  Overlap: { type: 'unsigned', size: 1 },\n  ScannerChannel: { type: 'unsigned', size: 1 },\n  ScanDirectionFlag: { type: 'unsigned', size: 1 },\n  EdgeOfFlightLine: { type: 'unsigned', size: 1 },\n  Classification: { type: 'unsigned', size: 1 },\n  UserData: { type: 'unsigned', size: 1 },\n  ScanAngle: { type: 'float', size: 4 },\n  PointSourceId: { type: 'unsigned', size: 2 },\n  GpsTime: { type: 'float', size: 8 },\n  Red: { type: 'unsigned', size: 2 },\n  Green: { type: 'unsigned', size: 2 },\n  Blue: { type: 'unsigned', size: 2 }\n}\nPoint: [-8242596, 4966706, 50, 128]\n```\n","_attachments":{},"license":"MIT"}