{"_id":"@boywithkeyboard/brotli","_rev":"2-1f81d589197b496518219e0a1ea6cf91","name":"@boywithkeyboard/brotli","description":"A pure JavaScript implementation of Brotli.","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@boywithkeyboard/brotli","version":"1.0.0","author":{"url":"https://samuelkopp.de","name":"Samuel Kopp"},"license":"MIT","_id":"@boywithkeyboard/brotli@1.0.0","maintainers":[{"name":"boywithkeyboard","email":"azury.wtf@gmail.com"}],"dist":{"shasum":"ec499e98f16631136b531ee65c93927aa4a73385","tarball":"https://registry.npmjs.org/@boywithkeyboard/brotli/-/brotli-1.0.0.tgz","fileCount":6,"integrity":"sha512-cytOePqj4NBhJLyyjHiFOoId0YyWOFVDoxEiDdbNg9SQi3xmSigJZA6Yv+BtA0SzY/jSW652vGlwYvaRtleyWg==","signatures":[{"sig":"MEQCICJGANZFX2IqDeYV6r2MXkCq3dqrL/FqQsX8yFp1ir8JAiBXGI6jLeQwJOysfLIMnJh3IeJzwTA4LNtFb8icRacIvw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":313115},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}}},"funding":"https://github.com/sponsors/boywithkeyboard","gitHead":"c94015be01aa28a3f5ff5cdce4a23ca7dbb7b7de","scripts":{"build":"curl https://raw.githubusercontent.com/google/brotli/master/js/decode.ts -o ./third_party/decode.ts && esbuild ./third_party/decode.ts --bundle --minify --format=esm --outfile=./third_party/decode.js && rimraf third_party/decode.ts && builder --esm --cjs && tsc"},"_npmUser":{"name":"boywithkeyboard","email":"azury.wtf@gmail.com"},"_npmVersion":"9.8.1","description":"A pure JavaScript implementation of Brotli.","directories":{},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","esbuild":"^0.19.5","typescript":"^5.2.2","@types/node":"^20.8.10","@boywithkeyboard/builder":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/brotli_1.0.0_1699100671800_0.09022100072585904","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@boywithkeyboard/brotli","version":"1.0.1","author":{"url":"https://samuelkopp.de","name":"Samuel Kopp"},"license":"MIT","_id":"@boywithkeyboard/brotli@1.0.1","maintainers":[{"name":"boywithkeyboard","email":"azury.wtf@gmail.com"}],"homepage":"https://github.com/boywithkeyboard/brotli#readme","bugs":{"url":"https://github.com/boywithkeyboard/brotli/issues"},"dist":{"shasum":"43579977a68ab9ac9364a63a7d9b76293a677d55","tarball":"https://registry.npmjs.org/@boywithkeyboard/brotli/-/brotli-1.0.1.tgz","fileCount":6,"integrity":"sha512-x8m1SOzVfwIuWg9rzUQV+GwTdlFriJufeyuxkOHGlGsKq6T6aThBhGAB07b2R4Iyr8QgtChlFqEKKot9I//5kw==","signatures":[{"sig":"MEYCIQDsIOGVyjzlqlaGzhvxnP4Kuh7sdQMy8AdgNSH4wrnfxAIhAPnrifqgQakrJAlc/edCUaKamdrgqtF5kbFDMmfUOggl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":313184},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.cjs"}}},"funding":"https://github.com/sponsors/boywithkeyboard","gitHead":"ce1b2fd59eebd12acef1b024abcdbd9299df00c9","scripts":{"build":"curl https://raw.githubusercontent.com/google/brotli/master/js/decode.ts -o ./third_party/decode.ts && esbuild ./third_party/decode.ts --bundle --minify --format=esm --outfile=./third_party/decode.js && rimraf third_party/decode.ts && builder --esm --cjs && tsc","check":"tsc"},"_npmUser":{"name":"boywithkeyboard","email":"azury.wtf@gmail.com"},"repository":{"url":"git+https://github.com/boywithkeyboard/brotli.git","type":"git"},"_npmVersion":"9.8.1","description":"A pure JavaScript implementation of Brotli.","directories":{},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","esbuild":"^0.19.5","typescript":"^5.2.2","@types/node":"^20.8.10","@boywithkeyboard/builder":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/brotli_1.0.1_1699228623731_0.2067454283212733","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-11-04T12:24:31.674Z","modified":"2024-06-27T00:19:44.820Z","1.0.0":"2023-11-04T12:24:32.093Z","1.0.1":"2023-11-05T23:57:04.040Z"},"maintainers":[{"email":"azury.wtf@gmail.com","name":"sakuta96"}],"author":{"url":"https://samuelkopp.de","name":"Samuel Kopp"},"repository":{"url":"git+https://github.com/boywithkeyboard/brotli.git","type":"git"},"license":"MIT","homepage":"https://github.com/boywithkeyboard/brotli#readme","bugs":{"url":"https://github.com/boywithkeyboard/brotli/issues"},"readme":"## brotli\n\n> [!NOTE]  \n> This library uses [google/brotli's](https://github.com/google/brotli) JavaScript implementation under the hood.\n\n### Setup\n\n#### Deno\n\n```ts\nimport { decode } from 'https://den.ooo/brotli'\n```\n\n#### Node.js\n\n```bash\nnpm i @boywithkeyboard/brotli\n```\n\n```ts\nimport { decode } from '@boywithkeyboard/brotli'\n```\n\n### Usage\n\n```ts\nconst decodedBuffer = decode(encodedBuffer)\nconst decodedText = new TextDecoder().decode(buffer)\n```\n","readmeFilename":"readme.md"}