{"ava":{"failFast":false,"files":["dist/tests/**/*.js","!dist/tests/**/fixtures/**/*.js"],"timeout":"1m","workerThreads":false},"dependencies":{"@hint/utils-compat-data":"^1.1.11","@hint/utils-i18n":"^1.0.14","@hint/utils-string":"^1.0.13","@hint/utils-types":"^1.2.0","bcp47":"^1.1.2","color-string":"^1.9.0"},"description":"hint that that checks if the web app manifest file is valid","devDependencies":{"@hint/parser-manifest":"^2.3.17","@hint/utils-create-server":"^3.4.24","@hint/utils-json":"^1.0.25","@hint/utils-tests-helpers":"^6.5.4","@types/color-string":"^1.5.2","@types/node":"^18.13.0","@typescript-eslint/eslint-plugin":"^4.33.0","@typescript-eslint/parser":"^4.33.0","ava":"^4.3.3","copyfiles":"^2.4.1","eslint":"^7.32.0","eslint-plugin-import":"^2.26.0","eslint-plugin-markdown":"^2.2.1","npm-run-all":"^4.1.5","nyc":"^15.1.0","rimraf":"^3.0.2","typescript":"^4.5.5"},"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.0.0","hint":"^7.0.0"},"repository":{"directory":"packages/hint-manifest-is-valid","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":"copyfiles \"./{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,.md,.ts --ignore-path ../../.eslintignore","lint:dependencies":"node ../../scripts/lint-dependencies.js","lint:md":"node ../../scripts/lint-markdown.js","test":"npm run i18n && npm run lint && npm run build && npm run test-only","test-only":"nyc ava","test-release":"npm run i18n && 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.4.17","types":"./dist/src/hint.d.ts","gitHead":"722be1b4c0836d5c0adacfb00c8c4f6bc5d1e707","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-manifest-is-valid@3.4.17","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-EaA1Qfq9vOuJGNiMKuTXLFP+4sjUgTLUc53VQoKSUfrgRntmrzA4GeBb6z9vcDI8OCFNb50CqWiepdTgJTOrhQ==","shasum":"0c089358625b92e28e4d6515d8abce83608d2593","tarball":"http://registry-npm.ywwl.com/@hint/hint-manifest-is-valid/download/@hint/hint-manifest-is-valid-3.4.17.tgz","fileCount":13,"unpackedSize":25048,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGeu0q4pzkFIRyBREI0lkW0mRUfQWlr8nQHZV5cWHfYoAiBWzjqx+48ZeK2mC/Mb5wE72syy/vJLiUFHmyWyleagNQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkE50mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4aBAAoIEVqNmvW+sVOcCW37Q8fK24ehe5Oph2iVHCQK6ylYzTeaK6\r\n0Y+JGauCtF2QqzdJpvPTF9AuSCUnj5JXewqvjDcoT4unPxzWDseBxshK8Wqv\r\nColOtPnFM85L7DgVztN/L/zzGTzoJiWbox4MwyTXq2LC44q4d2FThpFC4+o5\r\niqJJTET1C39gjkbCXTE1kJNmQPIQbw4HZdX/qYSM7X2yZq3wgQWMAsPM/pmX\r\nk05rcd/evlh7TLbSt4GhDIhZ/NwKluqC5rQbrTNe13pnw7W/GULZrD58WEJf\r\n0mZbLh/mPxXdYFfAf1P7wP4inEfh2dsoWhwuoqbzrwqmLU9Xf2ps+UmrUedP\r\nJZhbZuoFPCHm66743Mdn61Y7d7qVaeaD9Z9bBGQnCqD3NoZ0AbOiYKIB6KE/\r\n2DRjjL+q2/TIL4j4TXRcke0FCiB610nUgqpkORJ0g0M2K4/PGpXbQooVMAyF\r\nzGGvMU2K0iqMUPyEF5Z+7LdN0dSSi9pKcUTIWrrYZAOiGT9lZrahN5AjRH1v\r\nur9Hugci6Oscia9dMPKkCiVe7M6fHYlUHpUPivK0zWGfaYzPO/c9RvUo1SRb\r\nMVwMHzH6EHx6u9UYF+whfieARpV6aPy6n5r6PPSRCIFjCMkdhBJf1fV5e/Fu\r\nZA0zqIfR8EdeccV2EbfYO8DoERS2nMn+8Lo=\r\n=+Yk+\r\n-----END PGP SIGNATURE-----\r\n","size":8304,"noattachment":false,"key":"/@hint/hint-manifest-is-valid/-/@hint/hint-manifest-is-valid-3.4.17.tgz"},"_npmUser":{"name":"vidorteg","email":"vidorteg@microsoft.com"},"directories":{},"maintainers":[{"name":"leotlee","email":"leolee@microsoft.com"},{"name":"vidorteg","email":"vidorteg@microsoft.com"},{"name":"oaflynn","email":"flynnolivia@microsoft.com"},{"name":"molant","email":"amolleda@gmail.com"},{"name":"antross","email":"antross@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hint-manifest-is-valid_3.4.17_1679007014704_0.5684213043983266"},"_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":1679007014894,"_cnpm_publish_time":1679007014894,"dist-tags":{"latest":"3.4.20"}}