Socket
Socket
Sign inDemoInstall

strip-bom-stream

Package Overview
Dependencies
11
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

10

index.js

@@ -6,6 +6,10 @@ 'use strict';

module.exports = function () {
return firstChunk({minSize: 3}, function (chunk, enc, cb) {
this.push(stripBom(chunk));
cb();
return firstChunk({chunkLength: 3}, function (err, chunk, enc, cb) {
if (err) {
cb(err);
return;
}
cb(null, stripBom(chunk));
});
};
{
"name": "strip-bom-stream",
"version": "1.0.0",
"version": "2.0.0",
"description": "Strip UTF-8 byte order mark (BOM) from a stream",

@@ -37,3 +37,3 @@ "license": "MIT",

"dependencies": {
"first-chunk-stream": "^1.0.0",
"first-chunk-stream": "^2.0.0",
"strip-bom": "^2.0.0"

@@ -40,0 +40,0 @@ },

@@ -33,3 +33,3 @@ # strip-bom-stream [![Build Status](https://travis-ci.org/sindresorhus/strip-bom-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-bom-stream)

- [strip-bom](https://github.com/sindresorhus/strip-bom-stream) - Strip UTF-8 byte order mark (BOM) from a string/buffer
- [strip-bom](https://github.com/sindresorhus/strip-bom) - Strip UTF-8 byte order mark (BOM) from a string/buffer
- [strip-bom-cli](https://github.com/sindresorhus/strip-bom-cli) - CLI for this module

@@ -36,0 +36,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc