{"_id":"remove-bom-stream","_rev":"60857","name":"remove-bom-stream","description":"Remove a UTF8 BOM at the start of the stream.","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"time":{"modified":"2021-06-03T10:20:37.000Z","created":"2017-06-16T23:24:20.821Z","1.2.0":"2017-07-05T22:06:49.852Z","1.1.0":"2017-06-17T00:20:10.563Z","1.0.0":"2017-06-16T23:24:20.821Z"},"users":{},"author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"repository":{"type":"git","url":"git+https://github.com/gulpjs/remove-bom-stream.git"},"versions":{"1.2.0":{"name":"remove-bom-stream","version":"1.2.0","description":"Remove a UTF8 BOM at the start of the stream.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/remove-bom-stream.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"lint":"eslint index.js test/ && jscs index.js test/","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"safe-buffer":"^5.1.0","remove-bom-buffer":"^3.0.0","through2":"^2.0.3"},"devDependencies":{"buffer-equal":"^1.0.0","eslint":"^1.10.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","mississippi":"^1.3.0","mocha":"^3.2.0","stream-chunker":"^1.2.8"},"keywords":["bom","remove","utf8","streaming","stream"],"gitHead":"fb8c2e7aa8ce7935a147c08f8fbec66a70d65ef8","bugs":{"url":"https://github.com/gulpjs/remove-bom-stream/issues"},"homepage":"https://github.com/gulpjs/remove-bom-stream#readme","_id":"remove-bom-stream@1.2.0","_shasum":"05f1a593f16e42e1fb90ebf59de8e569525f9523","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"05f1a593f16e42e1fb90ebf59de8e569525f9523","size":2396,"noattachment":false,"key":"/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-bom-stream/download/remove-bom-stream-1.2.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-bom-stream-1.2.0.tgz_1499292409682_0.28480064193718135"},"directories":{},"publish_time":1499292409852,"_cnpm_publish_time":1499292409852,"_hasShrinkwrap":false},"1.1.0":{"name":"remove-bom-stream","version":"1.1.0","description":"Remove a UTF8 BOM at the start of the stream.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/remove-bom-stream.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"lint":"eslint index.js test/ && jscs index.js test/","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"safe-buffer":"^5.1.0","remove-bom-buffer":"^2.0.0","through2":"^2.0.3"},"devDependencies":{"buffer-equal":"^1.0.0","eslint":"^1.10.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","mississippi":"^1.3.0","mocha":"^3.2.0","stream-chunker":"^1.2.8"},"keywords":["bom","remove","utf8","streaming","stream"],"gitHead":"68e3a0ec0850b16a27894ace18284d515d141acc","bugs":{"url":"https://github.com/gulpjs/remove-bom-stream/issues"},"homepage":"https://github.com/gulpjs/remove-bom-stream#readme","_id":"remove-bom-stream@1.1.0","_shasum":"4657251b9e8651a22d872bdcef74e25af6c638e2","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"4657251b9e8651a22d872bdcef74e25af6c638e2","size":2387,"noattachment":false,"key":"/remove-bom-stream/-/remove-bom-stream-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-bom-stream/download/remove-bom-stream-1.1.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-bom-stream-1.1.0.tgz_1497658809139_0.817578639369458"},"directories":{},"publish_time":1497658810563,"_hasShrinkwrap":false,"_cnpm_publish_time":1497658810563},"1.0.0":{"name":"remove-bom-stream","version":"1.0.0","description":"Remove a UTF8 BOM at the start of the stream.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/remove-bom-stream.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"lint":"eslint index.js test/ && jscs index.js test/","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"safe-buffer":"^5.1.0","strip-bom-buffer":"^1.0.1","through2":"^2.0.3"},"devDependencies":{"buffer-equal":"^1.0.0","eslint":"^1.10.3","eslint-config-gulp":"^2.0.0","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","mississippi":"^1.3.0","mocha":"^3.2.0","stream-chunker":"^1.2.8"},"keywords":["bom","remove","utf8"],"gitHead":"c68951d883a68edf19e0e592e6c8d85eb212f6c2","bugs":{"url":"https://github.com/gulpjs/remove-bom-stream/issues"},"homepage":"https://github.com/gulpjs/remove-bom-stream#readme","_id":"remove-bom-stream@1.0.0","_shasum":"dda97901cb5e0ed1782b640ff1739dc025f5c157","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"dda97901cb5e0ed1782b640ff1739dc025f5c157","size":2381,"noattachment":false,"key":"/remove-bom-stream/-/remove-bom-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remove-bom-stream/download/remove-bom-stream-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-bom-stream-1.0.0.tgz_1497655460747_0.4367877673357725"},"directories":{},"publish_time":1497655460821,"_hasShrinkwrap":false,"_cnpm_publish_time":1497655460821}},"readme":"<p align=\"center\">\n  <a href=\"http://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# remove-bom-stream\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]\n\nRemove a UTF8 BOM at the start of the stream.\n\n## Usage\n\n```js\nvar fs = require('fs');\nvar concat = require('concat-stream');\nvar removeBOM = require('remove-bom-stream');\n\nfs.createReadStream('utf8-file-with-bom.txt')\n  .pipe(removeBOM())\n  .pipe(concat(function(result) {\n    // result won't have a BOM\n  }));\n```\n\n## API\n\n### `removeBOM()`\n\nReturns a `through2` stream that will remove a BOM, given the data is a UTF8 Buffer with a BOM at the beginning. If the data is not UTF8 or does not have a BOM, the data is not changed and this becomes a normal passthrough stream.\n\n## License\n\nMIT\n\n[downloads-image]: http://img.shields.io/npm/dm/remove-bom-stream.svg\n[npm-url]: https://npmjs.com/package/remove-bom-stream\n[npm-image]: http://img.shields.io/npm/v/remove-bom-stream.svg\n\n[travis-url]: https://travis-ci.org/gulpjs/remove-bom-stream\n[travis-image]: http://img.shields.io/travis/gulpjs/remove-bom-stream.svg?label=travis-ci\n\n[appveyor-url]: https://ci.appveyor.com/project/gulpjs/remove-bom-stream\n[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/remove-bom-stream.svg?label=appveyor\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/remove-bom-stream\n[coveralls-image]: http://img.shields.io/coveralls/gulpjs/remove-bom-stream/master.svg\n\n[gitter-url]: https://gitter.im/gulpjs/gulp\n[gitter-image]: https://badges.gitter.im/gulpjs/gulp.png\n","_attachments":{},"homepage":"https://github.com/gulpjs/remove-bom-stream#readme","bugs":{"url":"https://github.com/gulpjs/remove-bom-stream/issues"},"license":"MIT"}