Returns true if a buffer or string has a byte order mark (BOM)
npm install has-bom> Returns true if a buffer or string has a byte order mark (BOM)
Install with npm
``sh`
$ npm i has-bom --save
`js
var hasBom = require('has-bom');
hasBom('\ufefffoo');
//=> true
hasBom(new Buffer('\ufefffoo'));
//=> true
hasBom('foo');
//=> false
hasBom(new Buffer('foo'));
//=> false
`
* cr: Strip windows carriage returns, or convert carriage returns to newlines. | homepage
* strip-bom-buffer: Strip a byte order mark (BOM) from a buffer. | homepage
* strip-bom-string: Strip a byte order mark (BOM) from a string. | homepage
Install dev dependencies:
`sh``
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert
Copyright © 2015 Jon Schlinkert
Released under the MIT license.
*
_This file was generated by verb-cli on October 10, 2015._