{"name":"unslab","version":"1.1.0","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"unslab@1.1.0","homepage":"https://github.com/holepunchto/unslab","bugs":{"url":"https://github.com/holepunchto/unslab/issues"},"dist":{"shasum":"769ef3ef7e9da347d428d0879a23583f16052096","tarball":"http://registry-npm.ywwl.com/unslab/download/unslab-1.1.0.tgz","fileCount":4,"integrity":"sha512-zzywHfRtqOmiCm7F2JlOiIZxcdrp9nr/zl3eSVOoGEL3suhP7Ennp/frU5KJC+QQFcITpn932TJkcwfz14qagw==","signatures":[{"sig":"MEUCIQD6PeYDfon/3v1r6R1YtgJICTzIX+X/IPfMybwaWPAKpQIgStz2qHMznm0YFALyGzWadUo+zIsH6z7GskRG8S+gYic=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13264,"size":4867,"noattachment":false,"key":"/unslab/-/unslab-1.1.0.tgz"},"main":"index.js","gitHead":"dc21b82a1064ce1e223bb2856a0fa208f0713ca8","scripts":{"test":"standard && brittle test.js"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/holepunchto/unslab.git","type":"git"},"_npmVersion":"10.7.0","description":"Unslab some slab'ed buffers","directories":{},"_nodeVersion":"20.11.1","dependencies":{"b4a":"^1.6.6"},"_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.5.2","standard":"^17.1.0"},"_npmOperationalInternal":{"tmp":"tmp/unslab_1.1.0_1716811890012_0.1145396808924466","host":"s3://npm-registry-packages"},"readme":"# unslab\n\nUnslab some slab'ed buffers\n\n```\nnpm install unslab\n```\n\n## Usage\n\n``` js\nconst unslab = require('unslab')\n\n// the buf returned unpools the buffer passed from the memory slab\nconst buf = unslab(Buffer.from('hello world'))\n\n// can do multiple at the same time if you use them together. only does a single alloc in this case\nconst [a, b] = unslab([Buffer.from('hello'), Buffer.from('world')])\n```\n\n## License\n\nApache-2.0\n","publish_time":1716811890154,"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_cnpm_publish_time":1716811890154,"dist-tags":{"latest":"1.3.1"}}