{"name":"to-buffer","version":"1.2.2","description":"Pass in a string, array, Buffer, Data View, or Uint8Array, and get a Buffer back.","main":"index.js","sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","lint":"eslint --ext=js,mjs .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*'","test":"npm run tests-only","posttest":"npx npm@\">= 10.2\" audit --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/browserify/to-buffer.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/browserify/to-buffer/issues"},"homepage":"https://github.com/browserify/to-buffer","dependencies":{"isarray":"^2.0.5","safe-buffer":"^5.2.1","typed-array-buffer":"^1.0.3"},"devDependencies":{"@ljharb/eslint-config":"^21.2.0","auto-changelog":"^2.5.0","available-typed-arrays":"^1.0.7","encoding":"^0.1.13","eslint":"=8.8.0","for-each":"^0.3.5","npmignore":"^0.3.1","nyc":"^10.3.2","tape":"^5.9.0"},"engines":{"node":">= 0.4"},"publishConfig":{"ignore":[".github/workflows",".eslintrc",".nycrc","test"]},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"_id":"to-buffer@1.2.2","gitHead":"47c574df5d2f45acbc762ce2eaa760b1263a3ae9","_nodeVersion":"24.8.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==","shasum":"ffe59ef7522ada0a2d1cb5dfe03bb8abc3cdc133","tarball":"http://registry-npm.ywwl.com/to-buffer/download/to-buffer-1.2.2.tgz","fileCount":6,"unpackedSize":14005,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGLqv3h8qf8FrOl6cEoq/e1JQGC/C6IpIWLOTkYhdigIAiEAn9SjMi6+tKS5s97+d25a2TyLaOd4aBLhbvdmH3/KXGk="}],"size":5694,"noattachment":false,"key":"/to-buffer/-/to-buffer-1.2.2.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/to-buffer_1.2.2_1758755621747_0.47814871053285546"},"_hasShrinkwrap":false,"readme":"# to-buffer <sup>[![Version Badge][2]][1]</sup>\n\nPass in a string, array, Buffer, Data View, or Uint8Array, and get a Buffer back.\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\n\n```\nnpm install to-buffer\n```\n\n## Usage\n\n``` js\nvar toBuffer = require('to-buffer');\n\nconsole.log(toBuffer('hi')); // <Buffer 68 69>\nconsole.log(toBuffer(Buffer('hi'))); // <Buffer 68 69>\nconsole.log(toBuffer('6869', 'hex')); // <Buffer 68 69>\nconsole.log(toBuffer(43)); // throws\n```\n\n[1]: https://npmjs.org/package/to-buffer\n[2]: https://versionbadg.es/browserify/to-buffer.svg\n[5]: https://david-dm.org/browserify/to-buffer.svg\n[6]: https://david-dm.org/browserify/to-buffer\n[7]: https://david-dm.org/browserify/to-buffer/dev-status.svg\n[8]: https://david-dm.org/browserify/to-buffer#info=devDependencies\n[11]: https://nodei.co/npm/to-buffer.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/to-buffer.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/to-buffer.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=to-buffer\n[codecov-image]: https://codecov.io/gh/browserify/to-buffer/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/browserify/to-buffer/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/browserify/to-buffer\n[actions-url]: https://github.com/browserify/to-buffer/actions\n","publish_time":1758755621914,"_cnpm_publish_time":1758755621914,"dist-tags":{"latest":"1.2.2"}}