{"_id":"@cjser/strip-bom-stream","name":"@cjser/strip-bom-stream","dist-tags":{"latest":"5.0.0-cjser.2"},"versions":{"5.0.0-cjser.2":{"name":"@cjser/strip-bom-stream","version":"5.0.0-cjser.2","description":"Strip UTF-8 byte order mark (BOM) from a stream","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./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":{"@cjser/first-chunk-stream__v5_0_0":"5.0.0-cjser.2","@cjser/strip-bom-buf__v3_0_1":"3.0.1-cjser.2"},"devDependencies":{"@types/node":"^16.6.1","ava":"^3.15.0","get-stream":"^6.0.1","tsd":"^0.17.0","xo":"^0.44.0"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"5.0.0","cjserVersion":2,"original":{"name":"strip-bom-stream","version":"5.0.0","exports":"./index.js","repository":"sindresorhus/strip-bom-stream","dependencies":{"first-chunk-stream":"^5.0.0","strip-bom-buf":"^3.0.0"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/strip-bom-stream@5.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-q7gVqaQynSi0Y/IrOlXAn1onf/mBwkN3lwCZ95Umv4shUuFiuyfHJ4VnSpz/Pk0MV/38VKjaODTm6WgjY3/Vxg==","shasum":"4fc7dcfc4fba5c972c9edf66bf6c9e586fa7a7f3","tarball":"https://registry.npmjs.org/@cjser/strip-bom-stream/-/strip-bom-stream-5.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":6655,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDFIPUyuh0mIiXu9Au9d+mdo+iOt9hNBCvwzXzDY1qgKgIgOpRPnxcvTOS6zmxdSoXrzc4iqmY3k26T8Zup//2KQkM="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strip-bom-stream_5.0.0-cjser.2_1778160165024_0.8992831217750057"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:22:44.949Z","5.0.0-cjser.2":"2026-05-07T13:22:45.144Z","modified":"2026-05-07T13:22:45.368Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Strip UTF-8 byte order mark (BOM) from a stream","keywords":["bom","strip","byte","mark","unicode","utf8","utf-8","remove","delete","trim","text","stream","streams"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/strip-bom-stream\n","readmeFilename":"readme.md","_rev":"1-c3a640fa380b23f7608d6ffed35cca70"}