Debian Codegraph @

index.d.ts

raw
1 import FirstChunkStream = require('first-chunk-stream');
2
3 declare namespace stripBomStream {
4 type StripBomStream = FirstChunkStream;
5 }
6
7 /**
8 Strip UTF-8 [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a stream.
9
10 @example
11 ```
12 import * as fs from 'fs';
13 import stripBomStream = require('strip-bom-stream');
14
15 fs.createReadStream('unicorn.txt')
16 .pipe(stripBomStream())
17 .pipe(fs.createWriteStream('unicorn.txt'));
18 ```
19 */
20 declare function stripBomStream(): stripBomStream.StripBomStream;
21
22 export = stripBomStream;