{"name":"unslab","version":"1.0.0","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"unslab@1.0.0","homepage":"https://github.com/holepunchto/unslab","bugs":{"url":"https://github.com/holepunchto/unslab/issues"},"dist":{"shasum":"5c6a7aa4ebcd6fb16b97500ec0c6f8d93ee82da2","tarball":"http://registry-npm.ywwl.com/unslab/download/unslab-1.0.0.tgz","fileCount":4,"integrity":"sha512-2VeDd9wkYtOtFZ085tLGHl+SvzQ3TSiUNBHWMw1gCi9J/nbMoiXKUOjdk48Ac+SbXI4ao8YsUfxzvOAyl3RrPw==","signatures":[{"sig":"MEUCIHEjK+nsBJKSHJG/lulaOsJoYr2g84V950a6gkFh0/WWAiEA3nv4ikQ3U6Oysun1PUSTFvdYPQTCCl7r2R0n608dolo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12960,"size":4796,"noattachment":false,"key":"/unslab/-/unslab-1.0.0.tgz"},"main":"index.js","gitHead":"20116ba19dd408f505ce1ad842562bc708df8dd8","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.0.0_1716809606669_0.35589924721519806","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":1716809606807,"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_cnpm_publish_time":1716809606807,"dist-tags":{"latest":"1.3.1"}}