index.d.ts 283 Bytes
Newer Older
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;