.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / node_modules / strip-bom / readme.md
1 # strip-bom [![Build Status](https://travis-ci.org/sindresorhus/strip-bom.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-bom)
2
3 > Strip UTF-8 [byte order mark](http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a string
4
5 From Wikipedia:
6
7 > The Unicode Standard permits the BOM in UTF-8, but does not require nor recommend its use. Byte order has no meaning in UTF-8.
8
9
10 ## Install
11
12 ```
13 $ npm install --save strip-bom
14 ```
15
16
17 ## Usage
18
19 ```js
20 const stripBom = require('strip-bom');
21
22 stripBom('\uFEFFunicorn');
23 //=> 'unicorn'
24 ```
25
26
27 ## Related
28
29 - [strip-bom-cli](https://github.com/sindresorhus/strip-bom-cli) - CLI for this module
30 - [strip-bom-buf](https://github.com/sindresorhus/strip-bom-buf) - Buffer version of this module
31 - [strip-bom-stream](https://github.com/sindresorhus/strip-bom-stream) - Stream version of this module
32
33
34 ## License
35
36 MIT © [Sindre Sorhus](https://sindresorhus.com)