UNPKG

264 BTypeScriptView Raw
1/**
2Strip UTF-8 [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a string.
3
4@example
5```
6import stripBom from 'strip-bom';
7
8stripBom('\uFEFFunicorn');
9//=> 'unicorn'
10```
11*/
12export default function stripBom(string: string): string;