{"ava":{"failFast":false,"files":["dist/tests/**/*.js"],"timeout":"1m"},"dependencies":{"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":"^1.1.0","@hint/utils-tests-helpers":"^1.0.1","ava":"^0.25.0","cpx":"^1.5.0","eslint":"^5.5.0","eslint-plugin-import":"^2.14.0","eslint-plugin-markdown":"^1.0.0-beta.7","eslint-plugin-typescript":"^0.12.0","hint":"^3.4.0","markdownlint-cli":"^0.13.0","npm-link-check":"^2.0.0","npm-run-all":"^4.1.2","nyc":"^13.0.1","rimraf":"^2.6.2","typescript":"^3.0.3","typescript-eslint-parser":"^18.0.0"},"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":"^1.1.0","hint":"^3.4.0"},"repository":{"type":"git","url":"git+https://github.com/webhintio/hint.git"},"scripts":{"build":"npm run clean && 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","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":"markdownlint --ignore CHANGELOG.md *.md","test":"npm run lint && npm run build && npm run test-only","test-only":"nyc 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":"1.1.0","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-manifest-is-valid@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.4.0","_npmUser":{"name":"alrra","email":"alrraa@gmail.com"},"dist":{"integrity":"sha512-EW4+YGEMt+b6clZ47f1aRj8bWoJd6vi6T3F2BsoP0uUi1Rb98ZQoEUGQ4Z3Wk1pi3FuaqjxPwZoKBcKIWQiTbw==","shasum":"8bedb445bc7c69e85a3e46200fc066c3cf94bcf9","tarball":"http://registry-npm.ywwl.com/@hint/hint-manifest-is-valid/download/@hint/hint-manifest-is-valid-1.1.0.tgz","fileCount":6,"unpackedSize":22444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbmDtLCRA9TVsSAnZWagAAuCUP/R7FVKXI8ngNplo8qpl2\nDsU8FD+SbxSurrKpqrgme8FXhPX2+Ade8o4qx4SKCFgn+Zs0Ke87/0mO9flc\natxo1931jQffDAB8R/vMSLmCzsskVBHE7FvdyVBhw5Url9pb6K0KXOdqTbkU\nt2MBxa8qWJa4bkAdP9MVcFWqVuS/Y4L511DnW94Y9DkelUhSwOp7Zvg92QHK\nnAuCJWJK9ietyHyBwyo8xN1y8xlPYm1iLO8BSnXbLBrKONzfitoUJjt+/Tw0\nniJH7htN2v/7kKpWeqbJuHNeZk5Snx9ui7Ao9gehpjsBmYpUC7S3uMgCkkUI\nbGxgDILSWhkaNIlrCTGbB2qihrlNzYu37uCKRlX0X7E2gWeEuiisB1XVLhaw\n3Avihqodo/YRwM7vXj8dpoG2R+otW/+nl4dVvCoPQGVp/U9iDiDpZx5p6asP\nYj9Wq2nXNxIPrNUEFBbXVTD86MFG54JVR22+7030LlkfSFUnlvX76NNXBSOn\nFUpkRJplQl/mamlT92QvKUBRkiZZU4cYGov5nlWX69qANoZ76p7M1TmAxfK2\n00+urwu6Ab15V7CJ8F92KoYTLHq/sIWI9OzVlN1kpMcfubEMRQfukagqK0F4\nhOXZ0QOzMCaG7hmMxhUo/8GdMOFBRQCVB4v60JDiTWuh/+Gbtaez/+eFhMtq\npDXm\r\n=ZGTq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAVDXPjMlJ4awQvZZzlxQx9bGfS+FeQsaIJusAQAasdVAiAJt0JMSf3sggMIftd8F6OuRi4TrGRERJlR54GzyFJh+w=="}],"size":7716,"noattachment":false,"key":"/@hint/hint-manifest-is-valid/-/@hint/hint-manifest-is-valid-1.1.0.tgz"},"maintainers":[{"name":"alrra","email":"alrraa@gmail.com"},{"name":"molant","email":"amolleda@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hint-manifest-is-valid_1.1.0_1536703306488_0.31445512610997195"},"_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":1536703306661,"_cnpm_publish_time":1536703306661,"dist-tags":{"latest":"3.4.20"}}