{"ava":{"failFast":false,"files":["dist/tests/**/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils":"^3.0.0"},"description":"hint that that warns against using the BOM character at the beginning of a text file.","devDependencies":{"@hint/utils-tests-helpers":"^5.0.1","@types/mock-require":"^2.0.0","@types/node":"^12.6.2","@typescript-eslint/eslint-plugin":"^1.12.0","@typescript-eslint/parser":"^1.12.0","ava":"^1.4.1","cpx":"^1.5.0","eslint":"^5.15.1","eslint-plugin-markdown":"^1.0.0","hint":"^5.1.0","mock-require":"^3.0.3","npm-link-check":"^3.0.0","npm-run-all":"^4.1.5","nyc":"^14.1.0","rimraf":"^2.6.3","typescript":"^3.5.1"},"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":"^5.1.0"},"repository":{"type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"npm run i18n && npm-run-all build:*","build-release":"npm run clean && npm run i18n && npm run build:assets && tsc --inlineSourceMap false --removeComments true","build:assets":"cpx \"./{src,tests}/**/{!(*.ts),.!(ts)}\" dist","build:ts":"tsc -b","clean":"rimraf dist","i18n":"node ../../scripts/create-i18n.js","lint":"npm-run-all lint:*","lint:js":"eslint . --cache --ext js --ext md --ext ts --ignore-path ../../.eslintignore --report-unused-disable-directives","lint:dependencies":"node ../../scripts/lint-dependencies.js","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 build-release && ava","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":"4.1.0","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-no-bom@4.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"antross","email":"antross@gmail.com"},"dist":{"integrity":"sha512-8noOt6wSkv0L3T66Q1k4R63iYqeZktYZqpQojuh1+3I1/yZG5N1hZfjZ90GXrbxZrrrCUUrYI8RkleWa3TfZoQ==","shasum":"ebd0eb60691874c0dac8118546978a6faca3eca1","tarball":"http://registry-npm.ywwl.com/@hint/hint-no-bom/download/@hint/hint-no-bom-4.1.0.tgz","fileCount":14,"unpackedSize":32579,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNzaUCRA9TVsSAnZWagAACDYP/A894BlxN8cX4PqM0ERt\n9bX0vy+qoS6UT/jLbhYKRrR1baPMDW65rvK0H/cdzzDMczUBWFdqOMglM2Rh\nIxhGW95L7POxRvbCfZ0CohTXx+ryubA1LyODdbSHsX41cmBne6jOJf9o29Mz\nirK1G+MztYOogjFanUW34kB8SZcl52cZH9oBjTN/9lY/UgJ/EjT2C/e3vhjC\ntUHnv3Aw1udsvfKe8VhiMSj2IKw1Ni0tiVuoNCo8J4OIZggiQHd80btRRT7E\nLG5GOHh3nunp7YtRtYon5sxmNKXvJ5UrGBYqkQIb8Km5TVwuqOVVP6O8hZMr\nV/7QZ2jOtIwVBsti1XNU/Ix/kgCJxUQZFcOVCYH4e1QQNnuetc40LJp7+EgK\n/aCad1kcqUT2pvY7IPlvuRgSLtNHceiKbEG1pSkkiKByzUzDQzKPnA4rwpG2\naboOg9yDWBZN1yGkL6uVggqem5Yi6NlTeg7wJBsSpwwrBzsWwC1TYlWOX0Dv\nAxbhgXdivXzj9s5wNLpUYc8hB/BzA0GUButCoXmc4rlBny2kpwy1432fR+NL\nvln+3cxwquJaUP32yNem6LifDvBUDrsg8YWZ+dSTqHqrSsgOtlNauoQP4Wcl\n1talHVMUMxxGo4zL+dMJ289HCrKyCycUZ/OQEdAZJQC0NyU3ySsK6S5INpdX\nxCyP\r\n=Ia+d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7ODf5NIxOfMzH4HQUBQc8KizXxFUrR4llZ/sR9491RgIgUMrK7a+A/q8rEsH46RtIe3cQzTCfgaE4DgNCIabfGrk="}],"size":10842,"noattachment":false,"key":"/@hint/hint-no-bom/-/@hint/hint-no-bom-4.1.0.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_4.1.0_1563899539220_0.8095161425634321"},"_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":1563899539442,"_cnpm_publish_time":1563899539442,"dist-tags":{"latest":"4.2.27"}}