Remove a BOM at the start of the stream.
var fs = require("fs");
var removeBOM = require("remove-bom-stream");
fs.createReadStream("utf8-file-with-bom.txt")
.pipe(removeBOM("utf-8"))
.pipe(fs.createWriteStream("utf8-file-without-bom.txt"));Returns a Duplex stream that will remove a BOM if the argument encoding is 'utf-8'/'utf-16le'/'utf-16be' and the given data contains a corresponding BOM at the beginning.
No LLMs for issues.
No LLMs for patches / pull requests.
No LLMs for comments on the bug tracker, including translation.
English is encouraged, but not required. You are welcome to post in your native language and rely on others to have their own translation tools of choice to interpret your words.
MIT