Strip a byte order mark (BOM) from a buffer.

This package was renamed to remove-bom-buffer, please use that module instead
Last updated 4 years ago by phated .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install strip-bom-buffer 
SYNC missed versions from official npm registry.

strip-bom-buffer NPM version NPM monthly downloads NPM total downloads Linux Build Status

Strip a byte order mark (BOM) from a buffer.


Install with npm:

$ npm install --save strip-bom-buffer


var strip = require('strip-bom-buffer');
strip(new Buffer('\ufefffoo'));


Related projects

  • cr: Strip windows carriage returns, or convert carriage returns to newlines. | homepage
  • has-bom: Returns true if a buffer or string has a byte order mark (BOM) | homepage
  • read-file: Thin wrapper around fs.readFile and fs.readFileSync that also strips byte order marks when utf8 encoding… more | homepage
  • strip-bom-string: Strip a byte order mark (BOM) from a string. | homepage


Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(This project's is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test


Jon Schlinkert


Copyright © 2017, Jon Schlinkert. Released under the MIT License.

This file was generated by verb-generate-readme, v0.4.3, on March 29, 2017.

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

4 Versions

  • 1.0.1 [deprecated]           ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Today 110
This Week 644
This Month 1,340
Last Day 147
Last Week 601
Last Month 2,990
Dependencies (2)
Dev Dependencies (2)

Copyright 2014 - 2017 © |