{"name":"unslab","version":"0.0.0","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"unslab@0.0.0","homepage":"https://github.com/holepunchto/unslab","bugs":{"url":"https://github.com/holepunchto/unslab/issues"},"dist":{"shasum":"6a003cb1a0c697510a837ba722f90a22f12171b1","tarball":"http://registry-npm.ywwl.com/unslab/download/unslab-0.0.0.tgz","fileCount":7,"integrity":"sha512-f5aWx+5sudpCKTsl8aora5DGlV/3VLr/EwKEcQ81F6j/SuzlKExWXY83+CPg4TKgfkTD6lPD7VJgL8IWy8OP8Q==","signatures":[{"sig":"MEUCIQDe/gnXP7b9yT0eUb2IfUfL9pXp4i5ysFKgxOryJSIJhgIgQ93hRkKRhoCxywmdpeFk9lM37mpYOLQkXqFuX2juqxw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14029,"size":5129,"noattachment":false,"key":"/unslab/-/unslab-0.0.0.tgz"},"main":"index.js","gitHead":"4fb247e3c1a5a0b24b9c7fe305ac601935a21e23","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"},"_npmOperationalInternal":{"tmp":"tmp/unslab_0.0.0_1716809199540_0.6845416403249545","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":1716809199701,"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_cnpm_publish_time":1716809199701,"dist-tags":{"latest":"1.3.1"}}