# Remove UTF-8 BOM
> Remove a UTF-8 [byte order mark][bom] (BOM) from the beginning of a string.
## Usage
```javascript
var removeUTF8BOM = require( '@stdlib/string/remove-utf8-bom' );
```
#### removeUTF8BOM( str )
Removes a UTF-8 [byte order mark][bom] (BOM) from the beginning of a `string`.
```javascript
var str = removeUTF8BOM( '\ufeffbeep' );
// returns 'beep'
```
## Examples
```javascript
var removeUTF8BOM = require( '@stdlib/string/remove-utf8-bom' );
var str = removeUTF8BOM( '\ufeffbeep' );
// returns 'beep'
str = removeUTF8BOM( 'boop\ufeff' );
// returns 'boop\ufeff'
str = removeUTF8BOM( 'be\ufeffbop' );
// returns 'be\ufeffbop'
str = removeUTF8BOM( 'foobar' );
// returns 'foobar'
```
* * *
## CLI
### Usage
```text
Usage: remove-utf8-bom [options] []
Options:
-h, --help Print this message.
-V, --version Print the package version.
```
### Examples
Assuming a shell which understands escape sequences,
```bash
$ remove-utf8-bom "\xEF\xBB\xBFbeep boop"
beep boop
```
To use as a [standard stream][standard-streams],
```bash
$ echo -n '\ufeffbeep' | remove-utf8-bom
beep
```
[bom]: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
[standard-streams]: https://en.wikipedia.org/wiki/Standard_streams