{"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":"http://registry-npm.ywwl.com/@isaacs/buffer-to-string/download/@isaacs/buffer-to-string-1.0.1.tgz","fileCount":13,"unpackedSize":8128,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGsaOjpTXbiPwIabRDYiiXsDENZE+FIeUhNOF+7rDx67AiEA2PUmz8jZw8DI9B312ZWO/1HaSmApxVkXMwZhivJprIQ="}],"size":2732,"noattachment":false,"key":"/@isaacs/buffer-to-string/-/@isaacs/buffer-to-string-1.0.1.tgz"},"_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,"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","publish_time":1762045477582,"_cnpm_publish_time":1762045477582,"dist-tags":{"latest":"1.0.1"}}