{"name":"strip-bom","version":"2.0.0","description":"Strip UTF-8 byte order mark (BOM) from a string/buffer","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/strip-bom"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["bom","strip","byte","mark","unicode","utf8","utf-8","remove","delete","trim","text","buffer","string"],"dependencies":{"is-utf8":"^0.2.0"},"devDependencies":{"mocha":"*"},"readme":"# strip-bom [![Build Status](https://travis-ci.org/sindresorhus/strip-bom.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-bom)\n\n> Strip UTF-8 [byte order mark](http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a string/buffer\n\nFrom Wikipedia:\n\n> The Unicode Standard permits the BOM in UTF-8, but does not require nor recommend its use. Byte order has no meaning in UTF-8.\n\n\n## Install\n\n```\n$ npm install --save strip-bom\n```\n\n\n## Usage\n\n```js\nvar fs = require('fs');\nvar stripBom = require('strip-bom');\n\nstripBom('\\uFEFFunicorn');\n//=> 'unicorn'\n\nstripBom(fs.readFileSync('unicorn.txt'));\n//=> 'unicorn'\n```\n\n\n## Related\n\n- [strip-bom-cli](https://github.com/sindresorhus/strip-bom-cli) - CLI for this module\n- [strip-bom-stream](https://github.com/sindresorhus/strip-bom-stream) - Stream version of this module\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"homepage":"https://github.com/sindresorhus/strip-bom","_id":"strip-bom@2.0.0","_shasum":"6219a85616520491f35788bdbf1447a99c7e6b0e","_from":"https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz","_resolved":"https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz"}