remove-bom-stream

WebJar for remove-bom-stream

Лицензия

Лицензия

MIT
Группа

Группа

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

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

remove-bom-stream
Последняя версия

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

1.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

remove-bom-stream
WebJar for remove-bom-stream
Ссылка на сайт

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

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

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

https://github.com/gulpjs/remove-bom-stream

Скачать remove-bom-stream

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

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

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.webjars.npm : safe-buffer jar [5.1.0,6)
org.webjars.npm : remove-bom-buffer jar [3.0.0,4)
org.webjars.npm : through2 jar [2.0.3,3)

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

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

remove-bom-stream

NPM version Downloads Build Status AppVeyor Build Status Coveralls Status Gitter chat

Remove a UTF8 BOM at the start of the stream.

Usage

var fs = require('fs');
var concat = require('concat-stream');
var removeBOM = require('remove-bom-stream');

fs.createReadStream('utf8-file-with-bom.txt')
  .pipe(removeBOM())
  .pipe(concat(function(result) {
    // result won't have a BOM
  }));

API

removeBOM()

Returns a through2 stream that will remove a BOM, given the data is a UTF8 Buffer with a BOM at the beginning. If the data is not UTF8 or does not have a BOM, the data is not changed and this becomes a normal passthrough stream.

License

MIT

org.webjars.npm

gulp

A toolkit to automate & enhance your workflow

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

Версия
1.2.0