strip-bom-buf

WebJar for strip-bom-buf

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

strip-bom-buf
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

strip-bom-buf
WebJar for strip-bom-buf
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/sindresorhus/strip-bom-buf

Скачать strip-bom-buf

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/strip-bom-buf/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>strip-bom-buf</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/strip-bom-buf/
implementation 'org.webjars.npm:strip-bom-buf:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/strip-bom-buf/
implementation ("org.webjars.npm:strip-bom-buf:1.0.0")
'org.webjars.npm:strip-bom-buf:jar:1.0.0'
<dependency org="org.webjars.npm" name="strip-bom-buf" rev="1.0.0">
  <artifact name="strip-bom-buf" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='strip-bom-buf', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "strip-bom-buf" % "1.0.0"
[org.webjars.npm/strip-bom-buf "1.0.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : is-utf8 jar [0.2.1,0.3)

Модули Проекта

Данный проект не имеет модулей.

strip-bom-buf

Strip UTF-8 byte order mark (BOM) from a buffer

From Wikipedia:

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.

Install

$ npm install strip-bom-buf

Usage

const fs = require('fs');
const stripBomBuffer = require('strip-bom-buf');

stripBomBuffer(fs.readFileSync('unicorn.txt'));
//=> 'unicorn'

Related

License

MIT © Sindre Sorhus

Версии библиотеки

Версия
1.0.0