{"_id":"strip-bom","_rev":"13379","name":"strip-bom","description":"Strip UTF-8 byte order mark (BOM) from a string","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T09:58:23.000Z","created":"2014-04-04T16:23:07.367Z","5.0.0":"2021-04-16T18:54:19.266Z","4.0.0":"2019-04-28T04:40:47.887Z","3.0.0":"2016-04-30T16:02:44.907Z","2.0.0":"2015-06-29T13:13:31.964Z","1.0.0":"2014-08-22T13:03:42.521Z","0.3.1":"2014-05-25T16:07:52.046Z","0.3.0":"2014-05-14T21:38:20.253Z","0.2.1":"2014-05-14T17:40:36.329Z","0.2.0":"2014-05-12T09:31:30.521Z","0.1.0":"2014-04-04T16:23:07.367Z"},"users":{"mattecapu":true,"andr":true,"terrychan":true,"sopepos":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom.git"},"versions":{"5.0.0":{"name":"strip-bom","version":"5.0.0","description":"Strip UTF-8 byte order mark (BOM) from a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["strip","bom","byte","order","mark","unicode","utf8","utf-8","remove","delete","trim","text","string"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"b80d7bc94e79b4744d92a2dc6328c91d9afe9775","bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"homepage":"https://github.com/sindresorhus/strip-bom#readme","_id":"strip-bom@5.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"88d2e135d154dca7a5e06b4a4ba9653b6bdc0dd2","size":1992,"noattachment":false,"key":"/strip-bom/-/strip-bom-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom/download/strip-bom-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-bom_5.0.0_1618599259095_0.9730470456443971"},"_hasShrinkwrap":false,"publish_time":1618599259266,"_cnpm_publish_time":1618599259266},"4.0.0":{"name":"strip-bom","version":"4.0.0","description":"Strip UTF-8 byte order mark (BOM) from a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["strip","bom","byte","order","mark","unicode","utf8","utf-8","remove","delete","trim","text","string"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"9aef0f38ffefca91d3852c82cd6366e5d36d6dd1","bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"homepage":"https://github.com/sindresorhus/strip-bom#readme","_id":"strip-bom@4.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9c3505c1db45bcedca3d9cf7a16f5c5aa3901878","size":2115,"noattachment":false,"key":"/strip-bom/-/strip-bom-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom/download/strip-bom-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-bom_4.0.0_1556426447769_0.5103805168308455"},"_hasShrinkwrap":false,"publish_time":1556426447887,"_cnpm_publish_time":1556426447887},"3.0.0":{"name":"strip-bom","version":"3.0.0","description":"Strip UTF-8 byte order mark (BOM) from a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/strip-bom.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["strip","bom","byte","order","mark","unicode","utf8","utf-8","remove","delete","trim","text","string"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"8258d09a069a5d5eb3d787c1d5d29737df1c8bba","bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"homepage":"https://github.com/sindresorhus/strip-bom#readme","_id":"strip-bom@3.0.0","_shasum":"2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3","size":1736,"noattachment":false,"key":"/strip-bom/-/strip-bom-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom/download/strip-bom-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/strip-bom-3.0.0.tgz_1462032162626_0.6434765527956188"},"directories":{},"publish_time":1462032164907,"_cnpm_publish_time":1462032164907,"_hasShrinkwrap":false},"2.0.0":{"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":"*"},"gitHead":"851b9c126dba9561cc14ef3dc2634dcc11df4d11","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":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6219a85616520491f35788bdbf1447a99c7e6b0e","size":1789,"noattachment":false,"key":"/strip-bom/-/strip-bom-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom/download/strip-bom-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1435583611964,"_cnpm_publish_time":1435583611964,"_hasShrinkwrap":false},"1.0.0":{"name":"strip-bom","version":"1.0.0","description":"Strip UTF-8 byte order mark (BOM) from a string/buffer/stream","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/strip-bom"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"bin":{"strip-bom":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["cli.js","index.js"],"keywords":["cli","bin","app","bom","strip","byte","mark","unicode","utf8","utf-8","remove","trim","text","buffer","string","stream","streams"],"dependencies":{"first-chunk-stream":"^1.0.0","is-utf8":"^0.2.0"},"devDependencies":{"concat-stream":"^1.4.5","mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"homepage":"https://github.com/sindresorhus/strip-bom","_id":"strip-bom@1.0.0","_shasum":"85b8862f3844b5a6d5ec8467a93598173a36f794","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"85b8862f3844b5a6d5ec8467a93598173a36f794","size":1557,"noattachment":false,"key":"/strip-bom/-/strip-bom-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom/download/strip-bom-1.0.0.tgz"},"directories":{},"publish_time":1408712622521,"_cnpm_publish_time":1408712622521,"_hasShrinkwrap":false},"0.3.1":{"name":"strip-bom","version":"0.3.1","description":"Strip UTF-8 byte order mark (BOM) from a string/buffer/stream","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/strip-bom"},"bin":{"strip-bom":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["cli.js","index.js"],"keywords":["cli","bin","app","bom","strip","byte","mark","unicode","utf8","utf-8","remove","trim","text","buffer","string","stream","streams"],"dependencies":{"first-chunk-stream":"^0.1.0","is-utf8":"^0.2.0"},"devDependencies":{"concat-stream":"^1.4.5","mocha":"*"},"gitHead":"bac8b80dceb94ce6d544dfc1234e755c779f9829","bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"homepage":"https://github.com/sindresorhus/strip-bom","_id":"strip-bom@0.3.1","_shasum":"9e8a39eff456ff9abc2f059f5f2225bb0f3f7ca5","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"9e8a39eff456ff9abc2f059f5f2225bb0f3f7ca5","size":1544,"noattachment":false,"key":"/strip-bom/-/strip-bom-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom/download/strip-bom-0.3.1.tgz"},"directories":{},"publish_time":1401034072046,"_cnpm_publish_time":1401034072046,"_hasShrinkwrap":false},"0.3.0":{"name":"strip-bom","version":"0.3.0","description":"Strip UTF-8 byte order mark (BOM) from a string/buffer/stream","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/strip-bom"},"bin":{"strip-bom":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["cli.js","index.js"],"keywords":["cli","bin","app","bom","strip","byte","mark","unicode","utf8","utf-8","remove","trim","text","buffer","string","stream","streams"],"dependencies":{"is-utf8":"^0.2.0","through2":"^0.4.1"},"devDependencies":{"concat-stream":"^1.4.5","mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"homepage":"https://github.com/sindresorhus/strip-bom","_id":"strip-bom@0.3.0","_shasum":"4a6920a8848ccc50369c3a535d809fddab4291b8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"4a6920a8848ccc50369c3a535d809fddab4291b8","size":1564,"noattachment":false,"key":"/strip-bom/-/strip-bom-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom/download/strip-bom-0.3.0.tgz"},"directories":{},"publish_time":1400103500253,"_cnpm_publish_time":1400103500253,"_hasShrinkwrap":false},"0.2.1":{"name":"strip-bom","version":"0.2.1","description":"Strip UTF-8 byte order mark (BOM) from a string/buffer","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/strip-bom"},"bin":{"strip-bom":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["cli.js","index.js"],"keywords":["cli","bin","app","bom","strip","byte","mark","unicode","utf8","utf-8","remove","trim","text","buffer","string"],"dependencies":{"is-utf8":"^0.2.0"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"homepage":"https://github.com/sindresorhus/strip-bom","_id":"strip-bom@0.2.1","_shasum":"bfa91b4e4322c7ae23147cd8ab76b46c59273774","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"bfa91b4e4322c7ae23147cd8ab76b46c59273774","size":1488,"noattachment":false,"key":"/strip-bom/-/strip-bom-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom/download/strip-bom-0.2.1.tgz"},"directories":{},"publish_time":1400089236329,"_cnpm_publish_time":1400089236329,"_hasShrinkwrap":false},"0.2.0":{"name":"strip-bom","version":"0.2.0","description":"Strip UTF-8 byte order mark (BOM) from a string/buffer","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/strip-bom"},"bin":{"strip-bom":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["cli.js","index.js"],"keywords":["cli","bin","app","bom","strip","byte","mark","unicode","utf8","utf-8","remove","trim","text","buffer","string"],"dependencies":{"is-utf8":"^0.2.0"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"homepage":"https://github.com/sindresorhus/strip-bom","_id":"strip-bom@0.2.0","_shasum":"8fea75e2715a8e7c9e0774c7d43c307e7e9eef33","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"8fea75e2715a8e7c9e0774c7d43c307e7e9eef33","size":1484,"noattachment":false,"key":"/strip-bom/-/strip-bom-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom/download/strip-bom-0.2.0.tgz"},"directories":{},"publish_time":1399887090521,"_cnpm_publish_time":1399887090521,"_hasShrinkwrap":false},"0.1.0":{"name":"strip-bom","version":"0.1.0","description":"Strip UTF-8 byte order mark (BOM) from a string/buffer","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/strip-bom"},"bin":{"strip-bom":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["cli.js","index.js"],"keywords":["cli","bin","app","bom","strip","byte","mark","unicode","utf8","utf-8","remove","trim","text","buffer","string"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"homepage":"https://github.com/sindresorhus/strip-bom","_id":"strip-bom@0.1.0","dist":{"shasum":"c2b6bd5a206ba5caa0ab2a8f5ac2f686264ab072","size":1477,"noattachment":false,"key":"/strip-bom/-/strip-bom-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-bom/download/strip-bom-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1396628587367,"_cnpm_publish_time":1396628587367,"_hasShrinkwrap":false}},"readme":"# strip-bom\n\n> Strip UTF-8 [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a string\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## Install\n\n```\n$ npm install strip-bom\n```\n\n## Usage\n\n```js\nimport stripBom from 'strip-bom';\n\nstripBom('\\uFEFFunicorn');\n//=> 'unicorn'\n```\n\n## Related\n\n- [strip-bom-cli](https://github.com/sindresorhus/strip-bom-cli) - CLI for this module\n- [strip-bom-buf](https://github.com/sindresorhus/strip-bom-buf) - Buffer version of this module\n- [strip-bom-stream](https://github.com/sindresorhus/strip-bom-stream) - Stream version of this module\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-strip-bom?utm_source=npm-strip-bom&utm_medium=referral&utm_campaign=readme\">Get professional support for 'strip-bom' with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","_attachments":{},"homepage":"https://github.com/sindresorhus/strip-bom#readme","bugs":{"url":"https://github.com/sindresorhus/strip-bom/issues"},"license":"MIT"}