{"_id":"remove-bom-stream","_rev":"9-7e14c808a325b4890a041c0b2750b827","name":"remove-bom-stream","description":"Remove a UTF8 BOM at the start of the stream.","dist-tags":{"latest":"2.0.0"},"versions":{"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","tarball":"https://registry.npmjs.org/remove-bom-stream/-/remove-bom-stream-1.0.0.tgz","integrity":"sha512-UxITfqSPah/f62wy89NkRVGTJO6OPtgx2EIAlC98t95a5e8C1umOHxavfWpAhAlygxvqVaM5wvY+FbRXD5QAaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRoT+HFdTqyfCfUblzcrgq+JQpRGzsXphf7DcBfXuAzQIhANcY2q7o9Bbk1n3wman8co5AXWKPLEDG72PVxV21WgjO"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-bom-stream-1.0.0.tgz_1497655460747_0.4367877673357725"},"directories":{}},"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","tarball":"https://registry.npmjs.org/remove-bom-stream/-/remove-bom-stream-1.1.0.tgz","integrity":"sha512-n0H251Eq4/Fm1KmT7P00pW60DHIHIs+eLO9mggDS3h+DjDvK/kT6vBLBcqJlRfam0uUjR/fcYoNBrof3Fw3D7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEz+y+/4XT5+IKyMTQ2UM1e9N0jsCTLf8Quy1k+GeoNsAiEAhlEQeOXfbStoBvg7Q48WpX1BDx2066pNpT/OZJMJq6Y="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-bom-stream-1.1.0.tgz_1497658809139_0.817578639369458"},"directories":{}},"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","tarball":"https://registry.npmjs.org/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz","npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh25q2CRA9TVsSAnZWagAA/l4P/R++EnA1lApugif2DXiO\nA3D8l6m5rYP4VVxH4TMDsHme70HBEABAkbqrgUIGKShZvv27Xs6E5ZCb80MM\njTjTkrzuA4Pv5KqwRj/UUW7czCIiHuyhoEp9gbcaw4nlPsLUdHrPDdqYkF3x\nmPDU4gOFOoV1rHGlc/VrQ92PWpDNOS2R5vB0EZlUPGnIEQ7CKKboy0qp/Ldp\nQfpegNhiBqxVJmi81FvHeFHcZzztyew6fCFuP+7kMwsa8iUWlAzxLgXNuwUW\nEkFZcXO96RElLCgfbuvXBJnQv8E1OSlrley9Bi0rb0PMD3s3PggG7E4aoLxD\nDPxrfHIajsayptjSztcSZxqU8VG9arF7EKlJx93xn9RYOp5rz0HOjZPoUV++\n8XCXpqCtRY8lLzZgAoQkc17UBHvKERt30czLAmPyfpJv28W8XXAPonH0p+Bt\nYgkx71hrwf47dxeeuMJPvaxT0PzSXcAqifqg9xU9JJkoxHHhpQP/T34DGS5S\no0u/H8BYdlfZLAJ6fBFpN4eJZt4NPgnHrz0oLDureqYsVYmtFPwIJkMjJxFv\nD2G8Su+Onh2AJFFAA6C9zQEchT1EzQziwkgHgSjFK7/LgBA19i9MxDcLuVME\n/M9Fc+rgnrT3s9VsLsBh4FBUFxFa7OO9c6FbuhhFleh5Ynj5uOUwXVMLc0K6\nVba9\r\n=64e9\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-wigO8/O08XHb8YPzpDDT+QmRANfW6vLqxfaXm1YXhnFf3AkSLyjfG3GEFg4McZkmgL7KvCj5u2KczkvSP6NfHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTYJayHTA0fAGX/gQJZ07xailT3FSz3oHNQ6LSZsZ0yAIgEsTuR7h3WVI9yVDwD1XMGlobr1DJdsie54nK7JSCvjs="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-bom-stream-1.2.0.tgz_1499292409682_0.28480064193718135"},"directories":{}},"2.0.0":{"name":"remove-bom-stream","version":"2.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":">= 10.13.0"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"nyc mocha --async-only"},"dependencies":{"streamx":"^2.12.4"},"devDependencies":{"concat-stream":"^2.0.0","eslint":"^7.32.0","eslint-config-gulp":"^5.0.1","eslint-plugin-node":"^11.1.0","expect":"^27.4.2","mocha":"^8.4.0","nyc":"^15.1.0","stream-chunker":"^1.2.8"},"nyc":{"reporter":["lcov","text-summary"]},"prettier":{"singleQuote":true},"keywords":["bom","remove","utf8","streaming","stream"],"gitHead":"06af8b230cddc68c1e3a5a161936dfba1877f064","bugs":{"url":"https://github.com/gulpjs/remove-bom-stream/issues"},"homepage":"https://github.com/gulpjs/remove-bom-stream#readme","_id":"remove-bom-stream@2.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.7.0","dist":{"integrity":"sha512-tHlDYOrUkBNUjxad4TW/S+w/AmSqt5dqX3mBVwTJgE+tX/9dja/k2CQszem1rmCOxOB6IMc0FhYh/5q/ivm4wA==","shasum":"f0330b3d53afca3f5acfa05a80cf625b560bbeaf","tarball":"https://registry.npmjs.org/remove-bom-stream/-/remove-bom-stream-2.0.0.tgz","fileCount":4,"unpackedSize":5303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1JFbowFyT3mCJIizEfuqAr7QNDLs5FfSgsIat+H+niwIhANJIbbJSMsM58QS8m/Xg2bvMuqXwi4AXN50a4PvpXnI0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXwcTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOARAAmnsSAeJBJ20V5qEGfNOxZmOM5+QYsHzT0hOhXK1ooKqdcvBl\r\nQmnRlM0f6QAVF5a82tRgC7gFvKtyJw91AbuiFJgVIwTobDhjKETRnCpFP3vp\r\nT1IFRYte/sJBgksyxaaYKoprdT3vNWq5jLtXdQ4xbDvh5FmErUA3LluHSD8o\r\nkHi46kM+caIwsCZit40HMmP1kCLxQwA7r8wlr2C8AZH1fvIN/AUQyPQvCLBK\r\nmXz8CxtsYgmd0KecC58t7kOBzZEnnjIZgnV34mrr51DbMkI8JUp+yl/OR0Cr\r\npfQxerlY4A7wiminylRx1obyrKuSk1B4CEakYtCZCvxHC35mu6pkNs+S/XD/\r\nHbK0QN2zKWjzCoa2YtiruPAXsUQxUHb3vtVMkNUY4wnljhp3NKzJYjYeRLlD\r\nbRsAM6gIpw6X8qTUC2xsPwKWjYHToSaAP1R+qlDoic/SMGrpGaxYCNUZxVTC\r\nm6C84tqisPrbcU7huEYqOlJWzYpxCmthoR8v1KLKQD1cbOWJMtLYQ8S9maiS\r\nPXLDH5dqX2+p4iJRAvQwbjfYJEp/YAswfHxSyqcWtziHiOwJpWzWuhs2E46q\r\n4mfUTSlj48wLt6WpQAZ14tnlbBH1ZtgTJ1vSnjpSIkjZj7f/Gzg+GmTVcf8O\r\nQLbcyWLzD4NgPzwtTTXSAuIp1RsVvEBQr1Y=\r\n=eoC6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"yocontra","email":"yo@contra.io"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remove-bom-stream_2.0.0_1650394898912_0.17455655309441243"},"_hasShrinkwrap":false}},"readme":"<p align=\"center\">\n  <a href=\"https://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][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-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('utf-8'))\n  .pipe(\n    concat(function (result) {\n      // result won't have a BOM\n    })\n  );\n```\n\n## API\n\n### `removeBOM(encoding)`\n\nReturns a `Transform` stream that will remove a BOM, if the argument `encoding` is `'utf-8'` and the given data is a UTF8 Buffer with a BOM at the beginning. If the `encoding` is not `'utf-8'` or does not have a BOM, the data is not changed and this becomes a no-op `Transform` stream.\n\n## License\n\nMIT\n\n<!-- prettier-ignore-start -->\n[downloads-image]: https://img.shields.io/npm/dm/remove-bom-stream.svg?style=flat-square\n[npm-url]: https://npmjs.com/package/remove-bom-stream\n[npm-image]: https://img.shields.io/npm/v/remove-bom-stream.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/remove-bom-stream/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/remove-bom-stream/dev?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/remove-bom-stream\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/remove-bom-stream/master.svg?style=flat-square\n<!-- prettier-ignore-end -->\n","maintainers":[{"name":"yocontra","email":"yo@contra.io"},{"name":"phated","email":"blaine.bublitz@gmail.com"}],"time":{"modified":"2022-06-26T11:09:49.914Z","created":"2017-06-16T23:24:20.821Z","1.0.0":"2017-06-16T23:24:20.821Z","1.1.0":"2017-06-17T00:20:10.563Z","1.2.0":"2017-07-05T22:06:49.852Z","2.0.0":"2022-04-19T19:01:39.094Z"},"homepage":"https://github.com/gulpjs/remove-bom-stream#readme","keywords":["bom","remove","utf8","streaming","stream"],"repository":{"type":"git","url":"git+https://github.com/gulpjs/remove-bom-stream.git"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"bugs":{"url":"https://github.com/gulpjs/remove-bom-stream/issues"},"license":"MIT","readmeFilename":"README.md"}