aboutsummaryrefslogtreecommitdiff
path: root/node_modules/strip-bom/index.d.ts
blob: 8f2a52480b770585f22d54dfa0f4e915a6408d06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
Strip UTF-8 [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a string.

@example
```
import stripBom = require('strip-bom');

stripBom('\uFEFFunicorn');
//=> 'unicorn'
```
*/
declare function stripBom(string: string): string;

export = stripBom;