{"_id":"@cjser/strip-bom-buf__v3_0_1","name":"@cjser/strip-bom-buf__v3_0_1","dist-tags":{"latest":"3.0.1-cjser.2"},"versions":{"3.0.1-cjser.2":{"name":"@cjser/strip-bom-buf__v3_0_1","version":"3.0.1-cjser.2","description":"Strip UTF-8 byte order mark (BOM) from a buffer","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":["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"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"3.0.1","cjserVersion":2,"original":{"name":"strip-bom-buf","version":"3.0.1","exports":"./index.js","repository":"sindresorhus/strip-bom-buf","dependencies":{"is-utf8":"^0.2.1"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/strip-bom-buf__v3_0_1@3.0.1-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-XD2zZ+WIvkh9kXoRBCMlAHXJu38hpe0Wd93ZX3AEhueMeC0M2QhIndoqU4CgCj4LOk6g4rmJHy1XSjdeSm+X9w==","shasum":"5980bccd6f3dda3491c0c65c3ffd7f878834f685","tarball":"https://registry.npmjs.org/@cjser/strip-bom-buf__v3_0_1/-/strip-bom-buf__v3_0_1-3.0.1-cjser.2.tgz","fileCount":6,"unpackedSize":6414,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD4Y5f4sxUe1qqESjUMy1kgiAdrIbvMlsUjbYiU0qJ+awIgMoJIhh1uCq8y3lZm9Dq1db4DeQIkdebe9XcKjxPxeHo="}]},"_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-buf__v3_0_1_3.0.1-cjser.2_1778160159927_0.09186419019888947"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:22:39.822Z","3.0.1-cjser.2":"2026-05-07T13:22:40.056Z","modified":"2026-05-07T13:22:40.322Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Strip UTF-8 byte order mark (BOM) from a buffer","keywords":["strip","bom","byte","order","mark","unicode","utf8","utf-8","remove","delete","trim","text","buffer"],"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-buf\n\n> Strip UTF-8 [byte order mark](http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a buffer\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-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\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-buf\n","readmeFilename":"readme.md","_rev":"1-bb958fe62247699ea14bb537b68b002f"}