GithubHelp home page GithubHelp logo

andreasgrip / node-bomstrip-stream Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tracker1/node-bomstrip-stream

0.0 0.0 0.0 4 KB

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

License: MIT License

JavaScript 100.00%

node-bomstrip-stream's Introduction

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(new 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.

node-bomstrip-stream's People

Contributors

tracker1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.