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

remove-bom-stream

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remove-bom-stream

Remove a UTF8 BOM at the start of the stream.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4M
decreased by-4.83%
Maintainers
2
Weekly downloads
 
Created

What is remove-bom-stream?

The remove-bom-stream npm package is designed to remove Byte Order Marks (BOM) from streams. BOMs are special markers at the start of a text stream that indicate the encoding used. This package is particularly useful when dealing with text files that may have BOMs, which can cause issues in processing or parsing the text.

What are remove-bom-stream's main functionalities?

Remove BOM from a stream

This feature allows you to remove the BOM from a readable stream and pipe the cleaned data into a writable stream. In this example, the BOM is removed from 'input.txt' and the result is written to 'output.txt'.

const fs = require('fs');
const removeBomStream = require('remove-bom-stream');

fs.createReadStream('input.txt')
  .pipe(removeBomStream())
  .pipe(fs.createWriteStream('output.txt'));

Other packages similar to remove-bom-stream

Keywords

FAQs

Package last updated on 19 Apr 2022

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