{"ava":{"failFast":false,"files":["dist/tests/**/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils":"^2.1.0","bcp47":"^1.1.2","color-string":"^1.5.3"},"description":"hint that that checks if the web app manifest file is valid","devDependencies":{"@hint/parser-manifest":"^2.2.0","@hint/utils-tests-helpers":"^5.0.0","@types/color-string":"^1.5.0","@types/node":"^12.0.2","@typescript-eslint/eslint-plugin":"^1.9.0","@typescript-eslint/parser":"^1.7.0","ava":"^1.4.1","cpx":"^1.5.0","eslint":"^5.15.1","eslint-plugin-import":"^2.17.2","eslint-plugin-markdown":"^1.0.0","hint":"^5.0.2","npm-link-check":"^3.0.0","npm-run-all":"^4.1.5","nyc":"^14.1.0","rimraf":"^2.6.3","typescript":"^3.4.5"},"engines":{"node":">=8.0.0"},"homepage":"https://webhint.io/","keywords":["manifest-is-valid","manifest-is-valid-hint","webhint","webhint-hint","webhint-recommended"],"license":"Apache-2.0","main":"dist/src/hint.js","name":"@hint/hint-manifest-is-valid","nyc":{"extends":"../../.nycrc"},"peerDependencies":{"@hint/parser-manifest":"^2.2.0","hint":"^5.0.2"},"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: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":"3.1.2","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-manifest-is-valid@3.1.2","_npmVersion":"6.4.1","_nodeVersion":"8.15.1","_npmUser":{"name":"antross","email":"antross@gmail.com"},"dist":{"integrity":"sha512-SQNqaqN+JfAbD0VioHMIjIERxHwZfEeHvZWDqM8K8hWngIJFN/wtBOefRZT4BoGqMHKhJfAqXEhTeiYMAPmNlw==","shasum":"3d66fd7c8fc0c27e0666a60455a1bb339f45f31e","tarball":"http://registry-npm.ywwl.com/@hint/hint-manifest-is-valid/download/@hint/hint-manifest-is-valid-3.1.2.tgz","fileCount":10,"unpackedSize":33184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5sENCRA9TVsSAnZWagAAaxcP/jDhXXgxfTzZFK60qn4p\n+59jjCD41/TmkYZbG45rBoqR12dq5i59zxxAQS5PuWZyovKn6pS/PYG9ogGx\nupQd5vuGgtQFE/0j+5RwmV+fIv7jyVYtpczG0AnfZ9viSR1NdqWbUZUZB0bv\nRg4hENehqB7Xu1GmAuY8mD32bKLUkYoHoUYqr0E9JdUR3DdV5I9i/ChneFBg\nxc56ilipzhXMa/FUDIMhhmdjrRfZFucYc4SFlM6u+prbUeHqJp5A3U199+z3\n8cSDs0a5z63eFownDe8NBu2ahjbpFDLZom6VgKm1+f0Hf5IJ3ZsQlJg21JxZ\nf7AWoMHsgQ1ruHFdO68QmNPxxv+P0sqlyzHC2ABu+fF02xXT+EE8R5z/nEoJ\npz+7l8DTtCREQUD47k2vMJUZBKUjLwU8vtG9QXEEHiqgmqJfOveI1VAsU6f/\nyemfo1Rhiae+IHpeET9yISGJEKM4D42yAV4JGuZjdFmWyUYRf/umGJU2HUhW\nmcSV7MUwmH6RYNvDQy12Tl4Kw59IqH1XzfE3bGxascKYevNm/IIf1xRS6mQr\nF06ktqvs5MoPUTvYRnGXJJeEKGHx2Hr8rsL5fZlTNmxYfepAgnKIAI7idr9J\n9gpH5F5lvMKI9IFD04uPDaiL1UrYcDpAq9a3L602pgCTohuvQrqFy+Uw5QXL\nfqMz\r\n=ovLa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHRzjcol0WPeN5jhfv/rzHgt/1RJfNDn/QrEqo30i9WzAiEAkpG6fp9GZRR6PGvqvnS/ULRMmoAW9ggFfK1uD5uLBIo="}],"size":10732,"noattachment":false,"key":"/@hint/hint-manifest-is-valid/-/@hint/hint-manifest-is-valid-3.1.2.tgz"},"maintainers":[{"email":"antross@gmail.com","name":"antross"},{"email":"amolleda@gmail.com","name":"molant"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hint-manifest-is-valid_3.1.2_1558626572810_0.5326728742816429"},"_hasShrinkwrap":false,"readme":"# Valid manifest (`manifest-is-valid`)\n\n`manifest-is-valid` checks if the content of the web app manifest\nfile is valid JSON, valid according to the specification, and the\nproperty values work in all [targeted browsers][targeted browsers].\n\n## Why is this important?\n\nWeb app manifest files that don't contain valid JSON are ignored by\nuser agents. The same goes for invalid property values or non-standard\nproperties.\n\nAlso, providing property values that are only supported by certain\nuser agents for which the [specification][manifest spec] does not\ndefine a fallback, can lead to compatibility issues.\n\n## What does the hint check?\n\n`manifest-is-valid` checks if:\n\n* The content of the web app manifest file is valid JSON, and valid\n  according to the specification, namely:\n\n  * No additional properties are specified.\n  * All property values are of the type specified by the specification.\n\n* The property values work in all [targeted browsers][targeted browsers].\n\n### Examples that **trigger** the hint\n\nThe web app manifest file contains invalid JSON:\n\n```json\n{\n    \"name\": \"invalid\n}\n```\n\nThe web app manifest file contains additional non-standard properties\n\n```json\n{\n    \"additional_non-standard_property\": \"invalid\",\n    \"name\": \"example name\",\n    ...\n}\n```\n\nor [deprecated properties][density issue]:\n\n```json\n{\n    \"icons\": [{\n        \"density: 2\",\n        ...\n    }],\n    ...\n}\n```\n\nWeb app manifest file contains property values of a type different\nthen what is specified by the specification, e.g. `name` is a `number`\ninstead of a `string`:\n\n```json\n{\n    \"name\": 5,\n    ...\n}\n```\n\nThe web app manifest file contains properties with invalid values:\n\n```json\n{\n    \"lang\": \"en-x\",\n    ...\n}\n```\n\n```json\n{\n    \"theme_color\": \"invalid\",\n    ...\n}\n```\n\nThe web app manifest file contains properties with values not\nsupported by all the [targeted browsers][targeted browsers].\n\n```json\n{\n    \"theme_color\": \"#ff0000aa\",\n    ...\n}\n```\n\n### Examples that **pass** the hint\n\nThe content of the web app manifest file is valid JSON, valid\naccording to the specification, and the property values work in\n[targeted browsers][targeted browsers]:\n\n```json\n{\n  \"background_color\": \"red\",\n  \"description\": \"Example of a progressive web app\",\n  \"icons\": [{\n      \"src\": \"icon.png\",\n      \"sizes\": \"512x512\",\n      \"type\": \"image/png\"\n  }],\n  \"name\": \"Example progressive web app\",\n  \"short_name\": \"Example\",\n  \"start_url\": \"index.html\",\n  \"theme_color\": \"red\"\n}\n```\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        \"manifest-is-valid\": \"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* [Web App Manifest specification][manifest spec]\n\n<!-- Link labels: -->\n\n[density issue]: https://github.com/w3c/manifest/issues/450\n[manifest spec]: https://w3c.github.io/manifest/\n[hintrc]: https://webhint.io/docs/user-guide/configuring-webhint/summary/\n[targeted browsers]: https://webhint.io/docs/user-guide/configuring-webhint/browser-context/\n","publish_time":1558626572947,"_cnpm_publish_time":1558626572947,"dist-tags":{"latest":"3.4.20"}}