Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bomstrip

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bomstrip

Node transformation stream that will strip a UTF-8 Byte Order Mark from the beginning.

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
decreased by-43.49%
Maintainers
1
Weekly downloads
 
Created
Source

node-bomstrip-stream

Node.js transformation stream that will strip a UTF-8 Byte Order Mark from the beginning.

If you are dealing with text files that are edited and may include a Byte Order Mark (BOM) from the editor, this transform will easily remove those for use by the rest of your utility. This is especially useful when accessing files created with editors in Windows, which will often be saved as UTF-8 with BOM.

Usage

var fs = require('fs');
var bomstrip = require('bomstrip');
var stripped_stream = fs.createReadStream("path/to/file").pipe(bomstrip);

Install

npm install --save bomstrip

Testing

TODO: Need to add unit tests, this is a very simple Transform stream that will simply strip the UTF-8 BOM bytes from the first portion of the stream. Pull request(s) welcome.

Keywords

FAQs

Package last updated on 24 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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