{ "_id": "strip-bom", "_rev": "19-4243130cd48947f0062e9e3cab27c6ee", "name": "strip-bom", "description": "Strip UTF-8 byte order mark (BOM) from a string", "dist-tags": { "latest": "4.0.0" }, "versions": { "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", "tarball": "https://registry.npmjs.org/strip-bom/-/strip-bom-0.1.0.tgz" }, "_from": ".", "_npmVersion": "1.4.6", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {} }, "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": "sindresorhus@gmail.com" } ], "dist": { "shasum": "8fea75e2715a8e7c9e0774c7d43c307e7e9eef33", "tarball": "https://registry.npmjs.org/strip-bom/-/strip-bom-0.2.0.tgz" }, "directories": {} }, "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": "sindresorhus@gmail.com" } ], "dist": { "shasum": "bfa91b4e4322c7ae23147cd8ab76b46c59273774", "tarball": "https://registry.npmjs.org/strip-bom/-/strip-bom-0.2.1.tgz" }, "directories": {} }, "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": "sindresorhus@gmail.com" } ], "dist": { "shasum": "4a6920a8848ccc50369c3a535d809fddab4291b8", "tarball": "https://registry.npmjs.org/strip-bom/-/strip-bom-0.3.0.tgz" }, "directories": {} }, "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": "sindresorhus@gmail.com" } ], "dist": { "shasum": "9e8a39eff456ff9abc2f059f5f2225bb0f3f7ca5", "tarball": "https://registry.npmjs.org/strip-bom/-/strip-bom-0.3.1.tgz" }, "directories": {} }, "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": "sindresorhus@gmail.com" } ], "dist": { "shasum": "85b8862f3844b5a6d5ec8467a93598173a36f794", "tarball": "https://registry.npmjs.org/strip-bom/-/strip-bom-1.0.0.tgz" }, "directories": {} }, "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", "tarball": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {} }, "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", "tarball": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/strip-bom-3.0.0.tgz_1462032162626_0.6434765527956188" }, "directories": {} }, "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": { "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "shasum": "9c3505c1db45bcedca3d9cf7a16f5c5aa3901878", "tarball": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "fileCount": 5, "unpackedSize": 3910, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcxS7QCRA9TVsSAnZWagAAltAP/0OSO7TakarHgVg+/3Vp\nSLbZjnE6pEPfkgOvjv3PjQa0WSYsPnGefSzhvzkprCXeXVHxdUhzLjn2JUMR\n+w939La+AH+Bqa6NQQlwaey8bFnn3oHjNsGoX/Y56yB+5a55pCyyu93PX/gn\nsoOxIiatgXBLcSBXR75bY3uY+tWQLm7WSGTkKMUi9CSFz2E6mkahZybKw7ra\nXzYOrIrTAdmF7BVpy3j9sZR8wbVg5BwyuJGU+C5o5MWqhhRED03kOhvEN3Y/\nF5N1CnU+XF9tDWLEAyL72MemMsRJucJg5uXGnPOfS0tR/EhiVg8QsiOzdith\ndgyPDrNvT5vidNOH1/dqGVl07AAoD64oYTHUOwY66GDFu42wmVBXntNmG6ap\n9AZz2ZdSMROj8xk0fJ7iQ6GzIDYK2L1VsGDwRSVAnYO+02ByeKwYSYoSBArH\ni71gXsaGlAwR/z4M96OdoXvLvHLWLzit+pzs4u0Npl8V75yu0x2Kn5oYEJs6\n2F8ioexslHnPuM+sxykcZlUF1bwDGO+CXOXUoKkA4Vo48yYYmM9LZv90c08v\nQ8fnyw3S5/db00wiK4KYhMZ6UJSGUYU53C1LvRxiUql+mi4Mj1iftUiTGU9E\ngmp9B4JVg0As3g9rm+qfZSd7ZhW/hpw+yJX3VvlUXfvD81ruq8Wo2d8jDmAd\nCkL4\r\n=w+v7\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/strip-bom_4.0.0_1556426447769_0.5103805168308455" }, "_hasShrinkwrap": false } }, "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](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---\n\n
\n\t\n\t\tGet professional support for 'strip-bom' with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n\n---\n\n## Install\n\n```\n$ npm install strip-bom\n```\n\n\n## Usage\n\n```js\nconst stripBom = require('strip-bom');\n\nstripBom('\\uFEFFunicorn');\n//=> 'unicorn'\n```\n\n\n## Security\n\nTo report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.\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## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "time": { "modified": "2019-04-28T04:40:51.127Z", "created": "2014-04-04T16:23:07.367Z", "0.1.0": "2014-04-04T16:23:07.367Z", "0.2.0": "2014-05-12T09:31:30.521Z", "0.2.1": "2014-05-14T17:40:36.329Z", "0.3.0": "2014-05-14T21:38:20.253Z", "0.3.1": "2014-05-25T16:07:52.046Z", "1.0.0": "2014-08-22T13:03:42.521Z", "2.0.0": "2015-06-29T13:13:31.964Z", "3.0.0": "2016-04-30T16:02:44.907Z", "4.0.0": "2019-04-28T04:40:47.887Z" }, "homepage": "https://github.com/sindresorhus/strip-bom#readme", "keywords": [ "strip", "bom", "byte", "order", "mark", "unicode", "utf8", "utf-8", "remove", "delete", "trim", "text", "string" ], "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/strip-bom.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/strip-bom/issues" }, "license": "MIT", "readmeFilename": "readme.md", "users": { "mattecapu": true, "andr": true, "terrychan": true, "sopepos": true } }