{"id":20731665,"url":"https://github.com/tapjs/buffer-to-string","last_synced_at":"2025-04-23T22:06:05.816Z","repository":{"id":57191009,"uuid":"49764150","full_name":"tapjs/buffer-to-string","owner":"tapjs","description":"A better Buffer.toString()","archived":false,"fork":false,"pushed_at":"2022-02-26T19:00:35.000Z","size":6,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-23T22:05:58.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/buffer-to-string","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tapjs.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-16T07:32:59.000Z","updated_at":"2022-02-26T19:00:37.000Z","dependencies_parsed_at":"2022-09-15T22:21:38.900Z","dependency_job_id":null,"html_url":"https://github.com/tapjs/buffer-to-string","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapjs%2Fbuffer-to-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapjs%2Fbuffer-to-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapjs%2Fbuffer-to-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapjs%2Fbuffer-to-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tapjs","download_url":"https://codeload.github.com/tapjs/buffer-to-string/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250522298,"owners_count":21444511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T05:16:20.277Z","updated_at":"2025-04-23T22:06:05.159Z","avatar_url":"https://github.com/tapjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buffer-to-string [![Build Status](https://travis-ci.org/tapjs/buffer-to-string.svg?branch=master)](https://travis-ci.org/tapjs/buffer-to-string)\n\n\u003e A better Buffer.toString() \n\nDisplays buffer content in hex. Characters are grouped into two-character bytes, with a customizable line wrap width.\n\n## Install\n\n```\n$ npm install --save buffer-to-string\n```\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\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 bytes displayed. The maximum character width can be determined by computing `(3 * width) - 1`.\n\n## License\n\nMIT © [Isaac Z. Schlueter](http://github.com/isaacs), [James Talmage](http://github.com/jamestalmage)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftapjs%2Fbuffer-to-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftapjs%2Fbuffer-to-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftapjs%2Fbuffer-to-string/lists"}