{"_id":"@tokenizer/inflate","_rev":"4082489","name":"@tokenizer/inflate","description":"Tokenized zip support","dist-tags":{"latest":"0.4.1"},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"time":{"modified":"2026-01-23T00:52:05.000Z","created":"2024-12-01T15:15:05.197Z","0.4.1":"2025-11-18T22:06:19.717Z","0.4.0":"2025-11-18T21:58:18.494Z","0.3.1":"2025-06-08T13:36:11.788Z","0.3.0":"2025-06-05T19:49:32.791Z","0.2.7":"2025-02-23T11:26:29.707Z","0.2.6":"2024-12-07T12:52:28.621Z","0.2.5":"2024-12-06T16:55:59.785Z","0.2.4":"2024-12-02T18:26:36.564Z","0.2.3":"2024-12-01T19:52:27.255Z","0.2.1":"2024-12-01T15:15:05.197Z","0.2.2":"2024-12-01T15:44:07.786Z"},"users":{},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"versions":{"0.4.1":{"name":"@tokenizer/inflate","version":"0.4.1","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","prepublishOnly":"yarn run build","eslint":"eslint lib test","lint:md":"remark -u preset-lint-recommended .","lint:ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test","update-biome":"yarn add -D --exact @biomejs/biome && npx @biomejs/biome migrate --write"},"engines":{"node":">=18"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.9.1","devDependencies":{"@aws-sdk/client-s3":"^3.934.0","@biomejs/biome":"2.3.6","@tokenizer/s3":"^1.0.1","@types/chai":"^5.2.3","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^24.10.1","chai":"^6.2.1","del-cli":"^7.0.0","file-type":"^21.1.0","mocha":"^11.7.5","strtok3":"^10.3.4","ts-node":"^10.9.2","typescript":"^5.9.3"},"dependencies":{"debug":"^4.4.3","token-types":"^6.1.1"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok3","tokenizer","stream","S3"],"_id":"@tokenizer/inflate@0.4.1","gitHead":"192e9f1db9f432270c21372a8c0dd0cdd0c8ab8a","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"fa6cdb8366151b3cc8426bf9755c1ea03a2fba08","size":7797,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.4.1.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/inflate_0.4.1_1763503579223_0.867366004445489"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-18T22:06:19.717Z","publish_time":1763503579717,"_source_registry_name":"default","_cnpm_publish_time":1763503579717},"0.4.0":{"name":"@tokenizer/inflate","version":"0.4.0","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","eslint":"eslint lib test","lint:md":"remark -u preset-lint-recommended .","lint:ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test","update-biome":"yarn add -D --exact @biomejs/biome && npx @biomejs/biome migrate --write"},"engines":{"node":">=18"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.9.1","devDependencies":{"@aws-sdk/client-s3":"^3.934.0","@biomejs/biome":"2.3.6","@tokenizer/s3":"^1.0.1","@types/chai":"^5.2.3","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^24.10.1","chai":"^6.2.1","del-cli":"^7.0.0","file-type":"^21.1.0","mocha":"^11.7.5","strtok3":"^10.3.4","ts-node":"^10.9.2","typescript":"^5.9.3"},"dependencies":{"debug":"^4.4.3","token-types":"^6.1.1"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok3","tokenizer","stream","S3"],"_id":"@tokenizer/inflate@0.4.0","gitHead":"ba6a697f8b349344ab50aa8e0150169361616e85","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"50f7fccd5a96f0c1d4e4e9ca777b5646259decc2","size":3341,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.4.0.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/inflate_0.4.0_1763503098326_0.8527805533967701"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-18T21:58:18.494Z","publish_time":1763503098494,"_source_registry_name":"default","deprecated":"missing files","_cnpm_publish_time":1763503098494},"0.3.1":{"name":"@tokenizer/inflate","version":"0.3.1","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","eslint":"eslint lib test","lint:md":"remark -u preset-lint-recommended .","lint:ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test"},"engines":{"node":">=18"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.9.1","devDependencies":{"@aws-sdk/client-s3":"^3.787.0","@biomejs/biome":"=1.9.4","@tokenizer/s3":"^1.0.1","@types/chai":"^5.2.2","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^22.15.30","chai":"^5.2.0","del-cli":"^6.0.0","file-type":"^21.0.0","mocha":"^11.5.0","strtok3":"^10.3.1","ts-node":"^10.9.2","typescript":"^5.8.3"},"dependencies":{"debug":"^4.4.1","fflate":"^0.8.2","token-types":"^6.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok3","tokenizer","stream","S3"],"_id":"@tokenizer/inflate@0.3.1","gitHead":"e89088866400b2921a354d91a81434b5dfd531cc","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"22.13.0","_npmVersion":"11.3.0","dist":{"shasum":"f0b9162741e8e4c5fa0c56764a049355ad29e1f4","size":7689,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.3.1.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/inflate_0.3.1_1749389771609_0.20637774040092816"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-08T13:36:11.788Z","publish_time":1749389771788,"_source_registry_name":"default","_cnpm_publish_time":1749389771788},"0.3.0":{"name":"@tokenizer/inflate","version":"0.3.0","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","eslint":"eslint lib test","lint:md":"remark -u preset-lint-recommended .","lint:ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test"},"engines":{"node":">=18"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.9.1","devDependencies":{"@aws-sdk/client-s3":"^3.787.0","@biomejs/biome":"=1.9.4","@tokenizer/s3":"^1.0.1","@types/chai":"^5.2.2","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^22.15.21","chai":"^5.2.0","del-cli":"^6.0.0","file-type":"^21.0.0","mocha":"^11.1.0","strtok3":"^10.2.2","ts-node":"^10.9.2","typescript":"^5.8.3"},"dependencies":{"debug":"^4.4.1","fflate":"^0.8.2","token-types":"^6.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok3","tokenizer","stream","S3"],"_id":"@tokenizer/inflate@0.3.0","gitHead":"cc4e9098a67abe1157d3a6c66b23458e9a33fcaa","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"22.13.0","_npmVersion":"11.3.0","dist":{"shasum":"74d5de2a66e5b429834b31eef09fbc3191b4055a","size":7677,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.3.0.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/inflate_0.3.0_1749152972605_0.3822785028227731"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-05T19:49:32.791Z","publish_time":1749152972791,"_source_registry_name":"default","_cnpm_publish_time":1749152972791},"0.2.7":{"name":"@tokenizer/inflate","version":"0.2.7","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","eslint":"eslint lib test","lint-md":"remark -u preset-lint-recommended .","lint-ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test"},"engines":{"node":">=18"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.3.1","devDependencies":{"@aws-sdk/client-s3":"^3.750.0","@biomejs/biome":"=1.9.4","@tokenizer/s3":"^1.0.1","@types/chai":"^5.0.1","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^22.13.5","chai":"^5.2.0","del-cli":"^6.0.0","file-type":"^20.1.0","mocha":"^11.1.0","strtok3":"^10.2.1","ts-node":"^10.9.2","typescript":"^5.7.3"},"dependencies":{"debug":"^4.4.0","fflate":"^0.8.2","token-types":"^6.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok3","tokenizer","stream","S3"],"_id":"@tokenizer/inflate@0.2.7","gitHead":"d922f3c29b847c11ee6ccbce00ff59772b617fd8","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"23.7.0","_npmVersion":"10.9.2","dist":{"shasum":"32dd9dfc9abe457c89b3d9b760fc0690c85a103b","size":7167,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.2.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.2.7.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/inflate_0.2.7_1740309989547_0.22238555265897175"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-23T11:26:29.707Z","publish_time":1740309989707,"_source_registry_name":"default","_cnpm_publish_time":1740309989707},"0.2.6":{"name":"@tokenizer/inflate","version":"0.2.6","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","eslint":"eslint lib test","lint-md":"remark -u preset-lint-recommended .","lint-ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test"},"engines":{"node":">=16"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.3.1","devDependencies":{"@aws-sdk/client-s3":"^3.705.0","@biomejs/biome":"=1.9.4","@tokenizer/s3":"^0.5.1","@types/chai":"^5.0.1","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^22.9.3","chai":"^5.1.2","del-cli":"^6.0.0","file-type":"^19.6.0","mocha":"^10.8.2","strtok3":"^10.0.1","ts-node":"^10.9.2","typescript":"^5.7.2"},"dependencies":{"debug":"^4.3.7","fflate":"^0.8.2","token-types":"^6.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok3","tokenizer","stream","S3"],"_id":"@tokenizer/inflate@0.2.6","gitHead":"ab2e5846bf6593a45b8824108e4bd741d3fbf714","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"259a8c46648a0ff245f7a52a7c4c6cb569b75701","size":7198,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.2.6.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inflate_0.2.6_1733575948428_0.7739236118525681"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-07T12:52:28.621Z","publish_time":1733575948621,"_source_registry_name":"default","_cnpm_publish_time":1733575948621},"0.2.5":{"name":"@tokenizer/inflate","version":"0.2.5","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","eslint":"eslint lib test","lint-md":"remark -u preset-lint-recommended .","lint-ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test"},"engines":{"node":">=16"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.3.1","devDependencies":{"@aws-sdk/client-s3":"^3.705.0","@biomejs/biome":"=1.9.4","@tokenizer/s3":"^0.5.1","@types/chai":"^5.0.1","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^22.9.3","chai":"^5.1.2","del-cli":"^6.0.0","file-type":"^19.6.0","mocha":"^10.8.2","strtok3":"^10.0.1","ts-node":"^10.9.2","typescript":"^5.7.2"},"dependencies":{"debug":"^4.3.7","fflate":"^0.8.2","link":"^2.1.1","token-types":"^6.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok","tokenizer"],"_id":"@tokenizer/inflate@0.2.5","gitHead":"7bb665e051b34b7a8d76ac0a95d44b7b8081f97a","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"b82d9ca82affd322536434227d4f53c9048991df","size":7020,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.2.5.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inflate_0.2.5_1733504159629_0.9126222018234775"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-06T16:55:59.785Z","publish_time":1733504159785,"_source_registry_name":"default","_cnpm_publish_time":1733504159785},"0.2.4":{"name":"@tokenizer/inflate","version":"0.2.4","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","eslint":"eslint lib test","lint-md":"remark -u preset-lint-recommended .","lint-ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test"},"engines":{"node":">=16"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.3.1","devDependencies":{"@biomejs/biome":"=1.9.4","@types/chai":"^5.0.1","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^22.9.3","chai":"^5.1.2","del-cli":"^6.0.0","file-type":"^19.6.0","mocha":"^10.8.2","strtok3":"^10.0.1","ts-node":"^10.9.2","typescript":"^5.7.2"},"dependencies":{"debug":"^4.3.7","fflate":"^0.8.2","link":"^2.1.1","token-types":"^6.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok","tokenizer"],"_id":"@tokenizer/inflate@0.2.4","gitHead":"9b8673eea3b3c780e524dc1dcee0e63d7b53cae6","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"e8136aa4722f50b63723d31e46c5de8fed4dd226","size":6914,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.2.4.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inflate_0.2.4_1733163996333_0.1497013334625148"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-02T18:26:36.564Z","publish_time":1733163996564,"_source_registry_name":"default","_cnpm_publish_time":1733163996564},"0.2.3":{"name":"@tokenizer/inflate","version":"0.2.3","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","eslint":"eslint lib test","lint-md":"remark -u preset-lint-recommended .","lint-ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test"},"engines":{"node":">=16"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.3.1","devDependencies":{"@biomejs/biome":"=1.9.4","@types/chai":"^5.0.1","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^22.9.3","chai":"^5.1.2","del-cli":"^6.0.0","file-type":"^19.6.0","mocha":"^10.8.2","strtok3":"^10.0.1","ts-node":"^10.9.2","typescript":"^5.7.2"},"dependencies":{"debug":"^4.3.7","fflate":"^0.8.2","link":"^2.1.1","token-types":"^6.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok","tokenizer"],"_id":"@tokenizer/inflate@0.2.3","gitHead":"9235254880972fb90a49e61ab4c4546134323bff","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"d733c83a0b2dc46077414dbdc4b032af346d95d7","size":6860,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.2.3.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inflate_0.2.3_1733082747067_0.5750084737216128"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-01T19:52:27.255Z","publish_time":1733082747255,"_source_registry_name":"default","_cnpm_publish_time":1733082747255},"0.2.1":{"name":"@tokenizer/inflate","version":"0.2.1","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","eslint":"eslint lib test","lint-md":"remark -u preset-lint-recommended .","lint-ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test"},"engines":{"node":">=16"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.3.1","devDependencies":{"@biomejs/biome":"=1.9.4","@types/chai":"^5.0.1","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^22.9.3","chai":"^5.1.2","del-cli":"^6.0.0","file-type":"^19.6.0","mocha":"^10.8.2","strtok3":"^10.0.0","ts-node":"^10.9.2","typescript":"^5.7.2"},"dependencies":{"debug":"^4.3.7","fflate":"^0.8.2","link":"^2.1.1","token-types":"^6.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok","tokenizer"],"_id":"@tokenizer/inflate@0.2.1","gitHead":"cc02467c489ab2f5c1e54ce9e653f169025e571a","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"2117a1b57691ec9a2f218998e3dadb55169907eb","size":6415,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.2.1.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inflate_0.2.1_1733066105020_0.05504238110382009"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-01T15:15:05.197Z","publish_time":1733066105197,"_source_registry_name":"default","_cnpm_publish_time":1733066105197},"0.2.2":{"name":"@tokenizer/inflate","version":"0.2.2","description":"Tokenized zip support","type":"module","exports":"./lib/index.js","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'","compile-src":"tsc -p lib","compile-test":"tsc -p test","compile":"yarn run compile-src && yarn run compile-test","build":"yarn run clean && yarn run compile","eslint":"eslint lib test","lint-md":"remark -u preset-lint-recommended .","lint-ts":"biome check","fix":"yarn run biome lint --write","test":"mocha","start":"yarn run compile && yarn run lint && yarn run cover-test"},"engines":{"node":">=16"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.3.1","devDependencies":{"@biomejs/biome":"=1.9.4","@types/chai":"^5.0.1","@types/debug":"^4","@types/mocha":"^10.0.10","@types/node":"^22.9.3","chai":"^5.1.2","del-cli":"^6.0.0","file-type":"^19.6.0","mocha":"^10.8.2","strtok3":"^10.0.0","ts-node":"^10.9.2","typescript":"^5.7.2"},"dependencies":{"debug":"^4.3.7","fflate":"^0.8.2","link":"^2.1.1","token-types":"^6.0.0"},"repository":{"type":"git","url":"git+https://github.com/Borewit/tokenizer-inflate.git"},"bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/Borewit"},"keywords":["zip","unzip","decompress","inflate","strtok","tokenizer"],"_id":"@tokenizer/inflate@0.2.2","gitHead":"baa985196959d7471a175c913da2a51ff4106add","homepage":"https://github.com/Borewit/tokenizer-inflate#readme","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"shasum":"31176f718d6f309ae3149032acb639ac3da906cd","size":6429,"noattachment":false,"key":"/@tokenizer/inflate/-/@tokenizer/inflate-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tokenizer/inflate/download/@tokenizer/inflate-0.2.2.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inflate_0.2.2_1733067847573_0.5734220452177996"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-01T15:44:07.786Z","publish_time":1733067847786,"_source_registry_name":"default","_cnpm_publish_time":1733067847786}},"readme":"[![Node.js CI](https://github.com/Borewit/tokenizer-inflate/actions/workflows/nodejs-ci.yml/badge.svg)](https://github.com/Borewit/tokenizer-inflate/actions/workflows/nodejs-ci.yml)\n[![NPM version](https://badge.fury.io/js/%40tokenizer%2Finflate.svg)](https://npmjs.org/package/@tokenizer/inflate)\n[![npm downloads](https://img.shields.io/npm/dm/@tokenizer%2Finflate.svg)](https://npmcharts.com/compare/%40tokenizer%2Finflate?start=1200&interval=30)\n\n# @tokenizer/inflate\n\n`@tokenizer/inflate` is a package designed for handling and extracting data from ZIP files efficiently using a tokenizer-based approach.\nThe library provides a customizable way to parse ZIP archives and extract compressed data while minimizing memory usage.\n\n## Features\n- Efficient Decompression: Handles streams compressed with DEFLATE and related formats (e.g., gzip).\n- Tokenizer Compatibility: Seamlessly integrates with [strtok3](https://github.com/Borewit/strtok3). For example, use  [@tokenizer/s3](https://github.com/Borewit/tokenizer-s3) for efficient partial extraction of a Zip stored on AWS S3 cloud file storage.\n- Streamlined Interface: Provides an intuitive API for working with compressed data in streaming and random-access scenarios.\n- Chunked Data Access: Leverages the underlying media's capabilities to offer chunked or random access to data, unlike traditional streams.\n- Plug-and-Play: Easily integrate with existing tokenizer-based workflows for parsing file metadata or binary structures.\n- Interrupt the extraction process conditionally.\n\n## Installation\n```bash\nnpm install @tokenizer/inflate\n```\n\n## Usage\n\n### Example: Extracting Specific Files\n\nThe following example demonstrates how to use the library to extract .txt files and stop processing when encountering a .stop file.\n\n```js\nimport { ZipHandler } from '@tokenizer/inflate';\nimport { fromFile } from 'strtok3';\n\nconst fileFilter = (file) => {\n  console.log(`Processing file: ${file.filename}`);\n\n  if (file.filename?.endsWith(\".stop\")) {\n    console.log(`Stopping processing due to file: ${file.filename}`);\n    return { handler: false, stop: true }; // Stop the unzip process\n  }\n\n  if (file.filename?.endsWith(\".txt\")) {\n    return {\n      handler: async (data) => {\n        console.log(`Extracted text file: ${file.filename}`);\n        console.log(new TextDecoder().decode(data));\n      },\n    };\n  }\n\n  return { handler: false }; // Ignore other files\n};\n\nasync function extractFiles(zipFilePath) {\n  const tokenizer = await fromFile(zipFilePath);\n  const zipHandler = new ZipHandler(tokenizer);\n  await zipHandler.unzip(fileFilter);\n}\n\nextractFiles('example.zip').catch(console.error);\n```\n\n## API\n\n### `ZipHandler`\nA class for handling ZIP file parsing and extraction.\n#### Constructor\n```ts\nnew ZipHandler(tokenizer: ITokenizer)\n```\n- **tokenizer**: An instance of ITokenizer to read the ZIP archive.\n#### Methods\n \n- `isZip(): Promise<boolean>`\n\n   Determines whether the input file is a ZIP archive.\n\n- `unzip(fileCb: InflateFileFilter): Promise<void>`\n\n  Extracts files from the ZIP archive, applying the provided `InflateFileFilter` callback to each file.\n\n```InflatedDataHandler``` \n\n## Types\n\n### `InflateFileFilter`\n```ts\ntype InflateFileFilter = (file: IFullZipHeader) => InflateFileFilterResult;\n```\nCallback function to determine whether a file should be handled or ignored.\n\n### `InflateFileFilterResult`\n```ts\ntype InflateFileFilterResult = {\n  handler: InflatedDataHandler | false; // Handle file data or ignore\n  stop?: boolean; // Stop processing further files\n};\n\n```\nReturned from `InflateFileFilter` to control file handling and extraction flow.\n\n### `InflatedDataHandler`\n```ts\ntype InflatedDataHandler = (fileData: Uint8Array) => Promise<void>;\n```\nHandler for processing uncompressed file data.\n\n## Compatibility\n\nThis module is a [pure ECMAScript Module (ESM)](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).\nThe distributed JavaScript codebase is compliant with the [ECMAScript 2020 (11th Edition)](https://en.wikipedia.org/wiki/ECMAScript_version_history#11th_Edition_%E2%80%93_ECMAScript_2020) standard.\nIf used with Node.js, it requires version ≥ 18.\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","_attachments":{},"homepage":"https://github.com/Borewit/tokenizer-inflate#readme","bugs":{"url":"hhttps://github.com/Borewit/tokenizer-inflate/issues"},"license":"MIT"}