{"_id":"@isaacs/buffer-to-string","_rev":"2-44568ba235e0de9d14b2f1ca6369dfb4","name":"@isaacs/buffer-to-string","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@isaacs/buffer-to-string","version":"1.0.0","license":"MIT","_id":"@isaacs/buffer-to-string@1.0.0","maintainers":[{"name":"isaacs","email":"i@izs.me"}],"homepage":"https://github.com/tapjs/buffer-to-string#readme","bugs":{"url":"https://github.com/tapjs/buffer-to-string/issues"},"dist":{"shasum":"60d2de257f4fe124c2bfec19a145ccc29bfd7c0d","tarball":"https://registry.npmjs.org/@isaacs/buffer-to-string/-/buffer-to-string-1.0.0.tgz","fileCount":13,"integrity":"sha512-iYYDYenpEG6q4ewupSQ1wIAH5Edn+7lD2XxMEa6/kH0Uh8ySkyaXxS0+bdlbTEirY7SC9U1infvTEpNxHFJQrA==","signatures":[{"sig":"MEUCIEzl+YnMkErXeL4BsFW6nKXmwpgLpp5HkwG5K7JNQ9LvAiEAwXEd565GZfTGrdG2NK3aEbqbJH4PDH/andE+1J4Gkp4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8110},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"gitHead":"439576dc07de1873d6aeb28800e721df002b0164","scripts":{"snap":"tap","test":"tap","format":"prettier --write . --log-level warn","prepare":"tshy","presnap":"npm run prepare","pretest":"npm run prepare","typedoc":"typedoc --tsconfig .tshy/esm.json","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"repository":{"url":"git+ssh://git@github.com/tapjs/buffer-to-string.git","type":"git"},"_npmVersion":"11.4.2","description":"A better Buffer.toString()","directories":{},"_nodeVersion":"24.4.1","_hasShrinkwrap":false,"devDependencies":{"tap":"^21.1.3","tshy":"^3.0.3","typedoc":"^0.28.14","prettier":"^3.6.2"},"_npmOperationalInternal":{"tmp":"tmp/buffer-to-string_1.0.0_1762045163063_0.4277017586308436","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@isaacs/buffer-to-string","version":"1.0.1","description":"A better Buffer.toString()","license":"BlueOak-1.0.0","repository":{"type":"git","url":"git+ssh://git@github.com/tapjs/buffer-to-string.git"},"engines":{"node":">=18"},"scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --log-level warn","typedoc":"typedoc --tsconfig .tshy/esm.json"},"devDependencies":{"prettier":"^3.6.2","tap":"^21.1.3","tshy":"^3.0.3","typedoc":"^0.28.14"},"type":"module","tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","_id":"@isaacs/buffer-to-string@1.0.1","gitHead":"485d5ded6c22ace47529418a5923c59f18062765","bugs":{"url":"https://github.com/tapjs/buffer-to-string/issues"},"homepage":"https://github.com/tapjs/buffer-to-string#readme","_nodeVersion":"24.4.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-DbweFS1ILepumNwVzCE53Kaw5Mjh6mwe39Dl4Z3DVTMtu7TGnAM3kwnXidZRSCqznA3reRJ3zLWUksJwmSjlVQ==","shasum":"a14d3717174f67cb83b6c94e2ccade7d0373861d","tarball":"https://registry.npmjs.org/@isaacs/buffer-to-string/-/buffer-to-string-1.0.1.tgz","fileCount":13,"unpackedSize":8128,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGsaOjpTXbiPwIabRDYiiXsDENZE+FIeUhNOF+7rDx67AiEA2PUmz8jZw8DI9B312ZWO/1HaSmApxVkXMwZhivJprIQ="}]},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/buffer-to-string_1.0.1_1762045477406_0.0027808826469533088"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-02T00:59:22.961Z","modified":"2025-11-02T01:04:37.764Z","1.0.0":"2025-11-02T00:59:23.267Z","1.0.1":"2025-11-02T01:04:37.582Z"},"bugs":{"url":"https://github.com/tapjs/buffer-to-string/issues"},"license":"BlueOak-1.0.0","homepage":"https://github.com/tapjs/buffer-to-string#readme","repository":{"type":"git","url":"git+ssh://git@github.com/tapjs/buffer-to-string.git"},"description":"A better Buffer.toString()","maintainers":[{"name":"isaacs","email":"i@izs.me"}],"readme":"# buffer-to-string\n\n> A better Buffer.toString()\n\nDisplays buffer content in hex. Characters are grouped into\ntwo-character bytes, with a customizable line wrap width.\n\n## Install\n\n```\n$ npm install --save @isaacs/buffer-to-string\n```\n\n## Usage\n\n```js\nconst bufferToString = require('buffer-to-string')\n\nbufferToString(new Buffer([0, 1, 2, 3, 4, 5, 6]), 3)\n/*\n00 01 02\n03 04 05\n06\n */\n```\n\n## API\n\n### bufferToString(buffer, [width])\n\n#### input\n\nType: `Buffer`\n\nThe Buffer to stringify.\n\n#### width\n\nType: `number`  \nDefault: `20`\n\nThe maximum width before wrapping a newline. It is measured in\nbytes displayed. The maximum character width can be determined by\ncomputing `(3 * width) - 1`.\n","readmeFilename":"readme.md"}