{"_id":"strip-bom-buf","_rev":"3626535","name":"strip-bom-buf","description":"Strip UTF-8 byte order mark (BOM) from a Uint8Array","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2024-10-21T03:50:15.000Z","created":"2016-04-30T16:09:11.243Z","4.0.0":"2023-10-24T20:32:47.384Z","3.0.1":"2021-09-02T14:43:41.170Z","3.0.0":"2021-08-15T17:49:40.417Z","2.0.0":"2019-04-28T06:54:54.752Z","1.0.0":"2016-04-30T16:09:11.243Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom-buf.git"},"versions":{"4.0.0":{"name":"strip-bom-buf","version":"4.0.0","description":"Strip UTF-8 byte order mark (BOM) from a Uint8Array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom-buf.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"engines":{"node":">=18"},"sideEffects":false,"scripts":{"test":"xo && ava && tsd"},"keywords":["strip","bom","byte","order","mark","unicode","utf8","utf-8","remove","delete","trim","text","buffer","uint8array"],"dependencies":{"is-utf8":"^0.2.1","uint8array-extras":"^0.3.0"},"devDependencies":{"@types/node":"^20.8.8","ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"51318f06370f62f995d216b9076cf51152ceba0c","bugs":{"url":"https://github.com/sindresorhus/strip-bom-buf/issues"},"homepage":"https://github.com/sindresorhus/strip-bom-buf#readme","_id":"strip-bom-buf@4.0.0","_nodeVersion":"20.5.0","_npmVersion":"9.2.0","dist":{"shasum":"2c09241e8b45df77b521c2a262c2643b21fffda4","size":1756,"noattachment":false,"key":"/strip-bom-buf/-/strip-bom-buf-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom-buf/download/strip-bom-buf-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-bom-buf_4.0.0_1698179567168_0.27589621681463106"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-24T20:32:47.384Z","publish_time":1698179567384,"_source_registry_name":"default","_cnpm_publish_time":1698179567384},"3.0.1":{"name":"strip-bom-buf","version":"3.0.1","description":"Strip UTF-8 byte order mark (BOM) from a buffer","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom-buf.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["strip","bom","byte","order","mark","unicode","utf8","utf-8","remove","delete","trim","text","buffer"],"dependencies":{"is-utf8":"^0.2.1"},"devDependencies":{"@types/node":"^16.6.1","ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"f359854248f198a5df83e74dc2945fc74ad0933f","bugs":{"url":"https://github.com/sindresorhus/strip-bom-buf/issues"},"homepage":"https://github.com/sindresorhus/strip-bom-buf#readme","_id":"strip-bom-buf@3.0.1","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"shasum":"3f50f447f4650eed6e3743664a3964d638bb716f","size":1775,"noattachment":false,"key":"/strip-bom-buf/-/strip-bom-buf-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom-buf/download/strip-bom-buf-3.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-bom-buf_3.0.1_1630593820807_0.44428951074863465"},"_hasShrinkwrap":false,"publish_time":1630593821170,"_cnpm_publish_time":1630593821170},"3.0.0":{"name":"strip-bom-buf","version":"3.0.0","description":"Strip UTF-8 byte order mark (BOM) from a buffer","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom-buf.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["strip","bom","byte","order","mark","unicode","utf8","utf-8","remove","delete","trim","text","buffer"],"dependencies":{"is-utf8":"^0.2.1"},"devDependencies":{"@types/node":"^16.6.1","ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"a768cc828a449eb574614eddd441c031eac047b7","bugs":{"url":"https://github.com/sindresorhus/strip-bom-buf/issues"},"homepage":"https://github.com/sindresorhus/strip-bom-buf#readme","_id":"strip-bom-buf@3.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"d360d7ced0e6c3fcecd92977009e17c9ce992733","size":1778,"noattachment":false,"key":"/strip-bom-buf/-/strip-bom-buf-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom-buf/download/strip-bom-buf-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-bom-buf_3.0.0_1629049780291_0.6386607446020927"},"_hasShrinkwrap":false,"publish_time":1629049780417,"_cnpm_publish_time":1629049780417},"2.0.0":{"name":"strip-bom-buf","version":"2.0.0","description":"Strip UTF-8 byte order mark (BOM) from a buffer","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom-buf.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["strip","bom","byte","order","mark","unicode","utf8","utf-8","remove","delete","trim","text","buffer"],"dependencies":{"is-utf8":"^0.2.1"},"devDependencies":{"@types/node":"^11.13.8","ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"15a9f8fe347a30a823acef84ad57945ba0b69826","bugs":{"url":"https://github.com/sindresorhus/strip-bom-buf/issues"},"homepage":"https://github.com/sindresorhus/strip-bom-buf#readme","_id":"strip-bom-buf@2.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ff9c223937f8e7154b77e9de9bde094186885c15","size":1830,"noattachment":false,"key":"/strip-bom-buf/-/strip-bom-buf-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom-buf/download/strip-bom-buf-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-bom-buf_2.0.0_1556434494671_0.013936486838434847"},"_hasShrinkwrap":false,"publish_time":1556434494752,"_cnpm_publish_time":1556434494752},"1.0.0":{"name":"strip-bom-buf","version":"1.0.0","description":"Strip UTF-8 byte order mark (BOM) from a buffer","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom-buf.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["strip","bom","byte","order","mark","unicode","utf8","utf-8","remove","delete","trim","text","buffer"],"dependencies":{"is-utf8":"^0.2.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"e70cefc6e9dfd65ee7defcda9e8d281ee7fe135b","bugs":{"url":"https://github.com/sindresorhus/strip-bom-buf/issues"},"homepage":"https://github.com/sindresorhus/strip-bom-buf#readme","_id":"strip-bom-buf@1.0.0","_shasum":"1cb45aaf57530f4caf86c7f75179d2c9a51dd572","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1cb45aaf57530f4caf86c7f75179d2c9a51dd572","size":1725,"noattachment":false,"key":"/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom-buf/download/strip-bom-buf-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/strip-bom-buf-1.0.0.tgz_1462032549097_0.18980261753313243"},"directories":{},"publish_time":1462032551243,"_cnpm_publish_time":1462032551243,"_hasShrinkwrap":false}},"readme":"# strip-bom-buf\n\n> Strip UTF-8 [byte order mark](http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a `Uint8Array`\n\nFrom Wikipedia:\n\n> The Unicode Standard permits the BOM in UTF-8, but does not require nor recommend its use. Byte order has no meaning in UTF-8.\n\n## Install\n\n```sh\nnpm install strip-bom-buf\n```\n\n## Usage\n\n```js\nimport fs from 'node:fs';\nimport stripBomBuffer from 'strip-bom-buf';\n\nstripBomBuffer(fs.readFileSync('unicorn.txt'));\n//=> 'unicorn'\n```\n\n## Related\n\n- [strip-bom](https://github.com/sindresorhus/strip-bom) - String version of this module\n- [strip-bom-stream](https://github.com/sindresorhus/strip-bom-stream) - Stream version of this module\n","_attachments":{},"homepage":"https://github.com/sindresorhus/strip-bom-buf#readme","bugs":{"url":"https://github.com/sindresorhus/strip-bom-buf/issues"},"license":"MIT"}