{"ava":{"failFast":false,"files":["dist/tests/**/*.js"],"timeout":"1m"},"description":"hint that that warns against using the BOM character at the beginning of a text file.","devDependencies":{"@hint/utils-tests-helpers":"^3.0.0","@types/mock-require":"^2.0.0","ava":"^1.2.1","cpx":"^1.5.0","eslint":"^5.14.1","eslint-plugin-markdown":"^1.0.0","@typescript-eslint/eslint-plugin":"^1.4.0","hint":"^4.4.1","mock-require":"^3.0.3","npm-link-check":"^3.0.0","npm-run-all":"^4.1.5","nyc":"^13.3.0","rimraf":"^2.6.3","typescript":"^3.3.3333","@typescript-eslint/parser":"1.4.0"},"engines":{"node":">=8.0.0"},"homepage":"https://webhint.io/","keywords":["hint","no-bom","no-bom-hint","webhint","webhint-hint"],"license":"Apache-2.0","main":"dist/src/hint.js","name":"@hint/hint-no-bom","nyc":{"extends":"../../.nycrc"},"peerDependencies":{"hint":"^4.4.1"},"repository":{"type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"npm-run-all build:*","build-release":"npm run clean && npm run build:assets && tsc --inlineSourceMap false --removeComments true","build:assets":"cpx \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","clean":"rimraf dist","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives","lint:md":"node ../../scripts/lint-markdown.js","test":"npm run lint && npm run build && npm run test-only","test-only":"nyc ava","test-release":"npm run lint && npm run clean && npm run build:assets && tsc && npm run test-only","watch":"npm run build && npm-run-all --parallel -c watch:*","watch:assets":"npm run build:assets -- -w --no-initial","watch:test":"ava --watch","watch:ts":"npm run build:ts -- --watch"},"version":"3.0.1","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-no-bom@3.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"molant","email":"amolleda@gmail.com"},"dist":{"integrity":"sha512-NaU7G7VFAgTXLQ2+szSz+e3VG6CekYTpVU6CR7vgc4Q6PhjWWy8a4ONEx6FwzvPX/PIxC8MvQ3tKQMvxCPt+Yw==","shasum":"d698247fe4106c5a0589bbdae1af6a173b77158f","tarball":"http://registry-npm.ywwl.com/@hint/hint-no-bom/download/@hint/hint-no-bom-3.0.1.tgz","fileCount":10,"unpackedSize":22177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccDO7CRA9TVsSAnZWagAAwOoP/2IezB6y455bEh6Vm1W+\nt0EX8W+xHTpXHr0/d8vvq/BZbkrHDWKmbRcAVAViIVOPvtCGjSANVEcAO3lI\nly2/2F5P/gDWcQK7R5ngiyn4oYlhjnfi8YS1RwvqSt6zEuwnPJWjy1bG8IMW\nQ+tO9xL/LRxEweZQQKEKihQIwowi4jqHOwALxPeM9L71EFW8wR+awl1g06mv\nEmGNSwO3jrWYFXIg6QS6NeWJO1rCGGE2ZqasuE8Fw7wLqet7v900j7373gAK\nmOkWaZmU4cdeIbR2xZ+/2X0sMDdF69Zd1ad6eiqiJtblPxD/vgWsT5Ex8Hlz\nAppDXvGLb94JZouKe3MwZc92lhG88VU3OBlpvLUg3qqrPg3KQZefxRNQOR3F\n4KBH07lSnDda70sUMW6jtdprRkGoRwBCajnFKg6LZl5wkRgMtSkc6D5bu2Ub\nVKkUwxqbKroxPCaFVhT0VZMRjUyZ5SCWAxTUyAlSMyzp8dWNapAGZs2lunLk\nTgJPTiWGou8rUxrJyuVKHreb6By1DkBw8YFsuJ2CMtnbrv2NfI/JozxO9kZ8\nUUclVyqJj7Llw1nxYfjdLG95xAsbKnuqCDgp5KciArgE6XtLf/xYKl99kewi\noUQKNViffuZwYwWh8mVI8hxevhL+G8MC123slwy7DbTHBXu3Td/XzaS5Z6SI\nw110\r\n=nup5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGGTfDG5BPsClTqOuCPkexHdMMllzJcphDZ/8pGv3GGgAiEAiyEq2abAYdZE2KtUi7WJIEr16Ch0aLzLwnMUfzYFoic="}],"size":8301,"noattachment":false,"key":"/@hint/hint-no-bom/-/@hint/hint-no-bom-3.0.1.tgz"},"maintainers":[{"email":"antross@gmail.com","name":"antross"},{"email":"amolleda@gmail.com","name":"molant"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hint-no-bom_3.0.1_1550857146304_0.1296203915778371"},"_hasShrinkwrap":false,"readme":"# No byte-order mark (`no-bom`)\n\n`no-bom` warns against having the byte-order mark (BOM) character\nat the beginning of a text file.\n\n## Why is this important?\n\nHaving the BOM character at the beginning of a file over the internet\n(especially HTML) can have some bad side effects on some browsers.\nThe BOM character can be used to indicate the charset of the content\nis `UTF-8` but this doesn't mean it will be considered. For example,\nInternet Explorer 10 and 11 give a higher precedence to the HTTP header\nwhile previous versions gave the precedence to BOM for the encoding.\n\nYou can learn about other problems in [this section][bom problems].\n\n## What does the hint check?\n\nThis hint checks that all text-based media type files are served\nwithout the BOM character at the beginning.\n\n### Examples that **trigger** the hint\n\nA text file (such as HTML) that starts with the BOM character `U+FEFF`\nwill fail.\n\n### Examples that **pass** the hint\n\nA text file (such as HTML) that doesn't start with the BOM character\n`U+FEFF` will pass.\n\n## How to use this hint?\n\nThis package is installed automatically by webhint:\n\n```bash\nnpm install hint --save-dev\n```\n\nTo use it, activate it via the [`.hintrc`][hintrc] configuration file:\n\n```json\n{\n    \"connector\": {...},\n    \"formatters\": [...],\n    \"hints\": {\n        \"no-bom\": \"error\",\n        ...\n    },\n    \"parsers\": [...],\n    ...\n}\n```\n\n**Note**: The recommended way of running webhint is as a `devDependency` of\nyour project.\n\n## Further Reading\n\n* [Byte order mark (Wikipedia)][bom]\n* [The byte-order mark (BOM) in HTML][bom in html]\n\n<!-- Link labels: -->\n\n[bom]: https://en.wikipedia.org/wiki/Byte_order_mark\n[bom in html]: https://www.w3.org/International/questions/qa-byte-order-mark.en\n[bom problems]: https://www.w3.org/International/questions/qa-byte-order-mark.en#problems\n[hintrc]: https://webhint.io/docs/user-guide/configuring-webhint/summary/\n","publish_time":1550857146489,"_cnpm_publish_time":1550857146489,"dist-tags":{"latest":"4.2.27"}}