{"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":"http://registry-npm.ywwl.com/@isaacs/buffer-to-string/download/@isaacs/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,"size":2727,"noattachment":false,"key":"/@isaacs/buffer-to-string/-/@isaacs/buffer-to-string-1.0.0.tgz"},"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"},"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":1762045163267,"_cnpm_publish_time":1762045163267,"dist-tags":{"latest":"1.0.1"}}