{"_id":"strip-bom-stream","_rev":"538415","name":"strip-bom-stream","description":"Strip UTF-8 byte order mark (BOM) from a stream","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-08-15T21:50:46.000Z","created":"2015-06-29T13:19:39.275Z","5.0.0":"2021-08-15T21:48:18.543Z","4.0.0":"2019-05-12T15:21:40.939Z","3.0.0":"2017-01-25T16:54:54.463Z","2.0.0":"2015-11-23T08:04:41.125Z","1.0.0":"2015-06-29T13:19:39.275Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom-stream.git"},"versions":{"5.0.0":{"name":"strip-bom-stream","version":"5.0.0","description":"Strip UTF-8 byte order mark (BOM) from a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom-stream.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":["bom","strip","byte","mark","unicode","utf8","utf-8","remove","delete","trim","text","stream","streams"],"dependencies":{"first-chunk-stream":"^5.0.0","strip-bom-buf":"^3.0.0"},"devDependencies":{"@types/node":"^16.6.1","ava":"^3.15.0","get-stream":"^6.0.1","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"7f52e7f6b0662b12e1d633ad0a524a3cbf31f89a","bugs":{"url":"https://github.com/sindresorhus/strip-bom-stream/issues"},"homepage":"https://github.com/sindresorhus/strip-bom-stream#readme","_id":"strip-bom-stream@5.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"7287b857964c8884d01cee17cb9f86b53e4379a0","size":1776,"noattachment":false,"key":"/strip-bom-stream/-/strip-bom-stream-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom-stream/download/strip-bom-stream-5.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-stream_5.0.0_1629064098375_0.5584542755869093"},"_hasShrinkwrap":false,"publish_time":1629064098543,"_cnpm_publish_time":1629064098543},"4.0.0":{"name":"strip-bom-stream","version":"4.0.0","description":"Strip UTF-8 byte order mark (BOM) from a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["bom","strip","byte","mark","unicode","utf8","utf-8","remove","delete","trim","text","stream","streams"],"dependencies":{"first-chunk-stream":"^3.0.0","strip-bom-buf":"^2.0.0"},"devDependencies":{"@types/node":"^12.0.0","ava":"^1.4.1","get-stream":"^5.1.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"8bf097a24ff281e970181810c27be4493e7edaf8","bugs":{"url":"https://github.com/sindresorhus/strip-bom-stream/issues"},"homepage":"https://github.com/sindresorhus/strip-bom-stream#readme","_id":"strip-bom-stream@4.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4d21a651e723ef743a0a8b0d4534471805330cbb","size":1908,"noattachment":false,"key":"/strip-bom-stream/-/strip-bom-stream-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom-stream/download/strip-bom-stream-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-bom-stream_4.0.0_1557674500798_0.4092878543626719"},"_hasShrinkwrap":false,"publish_time":1557674500939,"_cnpm_publish_time":1557674500939},"3.0.0":{"name":"strip-bom-stream","version":"3.0.0","description":"Strip UTF-8 byte order mark (BOM) from a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["bom","strip","byte","mark","unicode","utf8","utf-8","remove","delete","trim","text","stream","streams"],"dependencies":{"first-chunk-stream":"^2.0.0","strip-bom-buf":"^1.0.0"},"devDependencies":{"ava":"*","get-stream":"^3.0.0","xo":"*"},"gitHead":"5e1fb745490d2068d5a2cfc33d19e3d7fbf54a1a","bugs":{"url":"https://github.com/sindresorhus/strip-bom-stream/issues"},"homepage":"https://github.com/sindresorhus/strip-bom-stream#readme","_id":"strip-bom-stream@3.0.0","_shasum":"956bcc5d84430f69256a90ed823765cd858e159c","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"956bcc5d84430f69256a90ed823765cd858e159c","size":1765,"noattachment":false,"key":"/strip-bom-stream/-/strip-bom-stream-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom-stream/download/strip-bom-stream-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/strip-bom-stream-3.0.0.tgz_1485363294203_0.1119746994227171"},"directories":{},"publish_time":1485363294463,"_cnpm_publish_time":1485363294463,"_hasShrinkwrap":false},"2.0.0":{"name":"strip-bom-stream","version":"2.0.0","description":"Strip UTF-8 byte order mark (BOM) from a stream","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/strip-bom-stream"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["bom","strip","byte","mark","unicode","utf8","utf-8","remove","delete","trim","text","stream","streams"],"dependencies":{"first-chunk-stream":"^2.0.0","strip-bom":"^2.0.0"},"devDependencies":{"ava":"0.0.4","concat-stream":"^1.4.5"},"gitHead":"af3e3b7093d302a7955cb23167caa60ca817333a","bugs":{"url":"https://github.com/sindresorhus/strip-bom-stream/issues"},"homepage":"https://github.com/sindresorhus/strip-bom-stream","_id":"strip-bom-stream@2.0.0","_shasum":"f87db5ef2613f6968aa545abfe1ec728b6a829ca","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f87db5ef2613f6968aa545abfe1ec728b6a829ca","size":1778,"noattachment":false,"key":"/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom-stream/download/strip-bom-stream-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1448265881125,"_cnpm_publish_time":1448265881125,"_hasShrinkwrap":false},"1.0.0":{"name":"strip-bom-stream","version":"1.0.0","description":"Strip UTF-8 byte order mark (BOM) from a stream","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/strip-bom-stream"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["bom","strip","byte","mark","unicode","utf8","utf-8","remove","delete","trim","text","stream","streams"],"dependencies":{"first-chunk-stream":"^1.0.0","strip-bom":"^2.0.0"},"devDependencies":{"ava":"0.0.4","concat-stream":"^1.4.5"},"gitHead":"bf94858c313e67de092d21230fcaa6b517a98137","bugs":{"url":"https://github.com/sindresorhus/strip-bom-stream/issues"},"homepage":"https://github.com/sindresorhus/strip-bom-stream","_id":"strip-bom-stream@1.0.0","_shasum":"e7144398577d51a6bed0fa1994fa05f43fd988ee","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e7144398577d51a6bed0fa1994fa05f43fd988ee","size":1766,"noattachment":false,"key":"/strip-bom-stream/-/strip-bom-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom-stream/download/strip-bom-stream-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1435583979275,"_cnpm_publish_time":1435583979275,"_hasShrinkwrap":false}},"readme":"# strip-bom-stream\n\n> Strip UTF-8 [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a stream\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```\n$ npm install strip-bom-stream\n```\n\n## Usage\n\n```js\nimport fs from 'node:fs';\nimport stripBomStream from 'strip-bom-stream';\n\nfs.createReadStream('unicorn.txt')\n\t.pipe(stripBomStream())\n\t.pipe(fs.createWriteStream('unicorn.txt'));\n```\n\nIt's a [`Transform` stream](https://nodejs.org/api/stream.html#stream_class_stream_transform).\n\n## Related\n\n- [strip-bom](https://github.com/sindresorhus/strip-bom) - String version of this module\n- [strip-bom-buf](https://github.com/sindresorhus/strip-bom-buf) - Buffer version of this module\n","_attachments":{},"homepage":"https://github.com/sindresorhus/strip-bom-stream#readme","bugs":{"url":"https://github.com/sindresorhus/strip-bom-stream/issues"},"license":"MIT"}