This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.

15 lines
283 B
TypeScript
Raw Permalink Normal View History

2021-04-02 02:24:13 +03:00
/**
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;