Socket
Socket
Sign inDemoInstall

strip-bom

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strip-bom - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

index.js

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

if (typeof arg === 'string') {
return arg.replace(/\uFEFF/g, '');
return arg.replace(/^\uFEFF/g, '');
}

@@ -9,0 +9,0 @@

{
"name": "strip-bom",
"version": "0.2.0",
"version": "0.2.1",
"description": "Strip UTF-8 byte order mark (BOM) from a string/buffer",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc