remove-bom-stream

WebJar for remove-bom-stream

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

remove-bom-stream
Last Version

Last Version

1.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

remove-bom-stream
WebJar for remove-bom-stream
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download remove-bom-stream

How to add to project

<!-- 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"]

Dependencies

compile (3)

Group / Artifact Type Version
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)

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.2.0