@sap/generator-cap-project
Version:
Creates a new SAP Cloud Application Programming Model project.
19 lines (14 loc) • 466 B
TypeScript
import FirstChunkStream from 'first-chunk-stream';
export type StripBomStream = FirstChunkStream;
/**
Strip UTF-8 [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a stream.
```
import fs from 'node:fs';
import stripBomStream from 'strip-bom-stream';
fs.createReadStream('unicorn.txt')
.pipe(stripBomStream())
.pipe(fs.createWriteStream('unicorn.txt'));
```
*/
export default function stripBomStream(): StripBomStream;