{"_id":"buffer-shim","_rev":"2-34d0e40446c5f5422f08a32ad815b81a","name":"buffer-shim","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"buffer-shim","version":"1.0.0","keywords":["buffer","shim","polyfill","global","globalThis","browser","node","compat","runtime"],"author":{"name":"Mariusz","email":"mariusz@mariusz.io"},"license":"ISC","_id":"buffer-shim@1.0.0","maintainers":[{"name":"mariusz_io","email":"mariusz@mariusz.io"}],"dist":{"shasum":"72c11eb399076eeb68bfa8ba139808b4131d234b","tarball":"https://registry.npmjs.org/buffer-shim/-/buffer-shim-1.0.0.tgz","fileCount":5,"integrity":"sha512-N0EkPK/V/6HIMxXis33ybAnAx51VjPAaej4IimeWWReEn/D4nVm6E8aOt6RTOdAfbgRaXNEZ5aC9Mn62R/kagQ==","signatures":[{"sig":"MEUCIQCfMd/9q4oNZOen/emmUbdAIOZvPSebxGxgFJKrKQCmBQIgOogwj670anOLEqnZm1O9UZLJsKsXgO3HIcOYGERrkdA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1443},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"8af887b4c5bb4bc39d8f67f72720c2bf488ab822","_npmUser":{"name":"mariusz_io","email":"mariusz@mariusz.io"},"_npmVersion":"10.8.2","description":"A tiny shim that exposes the `buffer` module as globalThis.Buffer.","directories":{},"_nodeVersion":"20.19.2","_hasShrinkwrap":false,"peerDependencies":{"buffer":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/buffer-shim_1.0.0_1765316803443_0.2247029489903818","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"buffer-shim","version":"1.0.1","repository":{"type":"git","url":"git+https://github.com/mondoreale/buffer-shim.git"},"homepage":"https://github.com/mondoreale/buffer-shim#readme","bugs":{"url":"https://github.com/mondoreale/buffer-shim/issues"},"type":"module","exports":{".":{"import":"./index.js","require":"./index.cjs","types":"./index.d.ts"}},"keywords":["buffer","shim","polyfill","global","globalThis","browser","node","compat","runtime"],"author":{"name":"Mariusz","email":"mariusz@mariusz.io"},"license":"ISC","description":"A tiny shim that exposes the `buffer` module as globalThis.Buffer.","peerDependencies":{"buffer":"^6.0.3"},"_id":"buffer-shim@1.0.1","gitHead":"a856a5f041dc523f2629732dc0270f550f5b9d08","types":"./index.d.ts","_nodeVersion":"20.19.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-VG1oTE6Ecr9h/Gx3XOXue0F1vQaQlkBd3tGAzpL7Fsu+8f1Jbtk5ORPkrVLA/ADBTQ08bcPt3HanaZ7tUfJqMg==","shasum":"2ab55bc8fbc5919e50a6083f97492f818608dbbc","tarball":"https://registry.npmjs.org/buffer-shim/-/buffer-shim-1.0.1.tgz","fileCount":5,"unpackedSize":1689,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDihUQFJQ+QVTzxWsh8aW7YnezDnJkysS9NAU60V2QBAgIgWjzakckrYymlZkc77wbV+Y1VVxE8+JLOG++TgBpePOA="}]},"_npmUser":{"name":"mariusz_io","email":"mariusz@mariusz.io"},"directories":{},"maintainers":[{"name":"mariusz_io","email":"mariusz@mariusz.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/buffer-shim_1.0.1_1765317058203_0.21279343368643056"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-09T21:46:43.443Z","modified":"2025-12-09T21:50:58.522Z","1.0.0":"2025-12-09T21:46:43.589Z","1.0.1":"2025-12-09T21:50:58.362Z"},"author":{"name":"Mariusz","email":"mariusz@mariusz.io"},"license":"ISC","keywords":["buffer","shim","polyfill","global","globalThis","browser","node","compat","runtime"],"description":"A tiny shim that exposes the `buffer` module as globalThis.Buffer.","maintainers":[{"name":"mariusz_io","email":"mariusz@mariusz.io"}],"readme":"# buffer-shim 🧱\n\nA tiny shim that installs the [`buffer`](https://www.npmjs.com/package/buffer) module onto `globalThis.Buffer`.\nUseful in runtimes or bundlers where `Buffer` is not provided by default.\n\n## How it works\n\n`buffer-shim` takes the `buffer` npm module (declared as a peer dependency) and exposes it globally so your code — or third-party libraries — can rely on `Buffer` without additional setup.\n\n## Install\n\n```bash\nnpm i buffer buffer-shim\n```\n\n## Usage\n\n```ts\nimport 'buffer-shim';\n\n// Now globalThis.Buffer is available\nconst b = Buffer.from('hello');\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","homepage":"https://github.com/mondoreale/buffer-shim#readme","repository":{"type":"git","url":"git+https://github.com/mondoreale/buffer-shim.git"},"bugs":{"url":"https://github.com/mondoreale/buffer-shim/issues"}}