strip-bom-stream

WebJar for strip-bom-stream

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

strip-bom-stream
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

strip-bom-stream
WebJar for strip-bom-stream
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download strip-bom-stream

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : first-chunk-stream jar [2.0.0,3)
org.webjars.npm : strip-bom-buf jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

strip-bom-stream

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

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-stream

Usage

const fs = require('fs');
const stripBomStream = require('strip-bom-stream');

fs.createReadStream('unicorn.txt')
	.pipe(stripBomStream())
	.pipe(fs.createWriteStream('unicorn.txt'));

It's a Transform stream.

Related

Versions

Version
3.0.0
2.0.0