{"ava":{"failFast":false,"files":["dist/tests/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils":"^5.0.0","image-size":"^0.7.4"},"description":"hint for best practices related to the apple-touch-icons","devDependencies":{"@hint/utils-tests-helpers":"^5.0.8","@types/image-size":"^0.7.0","@types/node":"^12.7.4","@typescript-eslint/eslint-plugin":"^1.13.0","@typescript-eslint/parser":"^1.12.0","ava":"^1.4.1","cpx":"^1.5.0","eslint":"^5.15.1","eslint-plugin-import":"^2.18.2","eslint-plugin-markdown":"^1.0.0","hint":"^5.2.4","npm-run-all":"^4.1.5","nyc":"^14.1.0","rimraf":"^3.0.0","typescript":"^3.6.3"},"engines":{"node":">=8.0.0"},"homepage":"https://webhint.io/","keywords":["apple-touch-icons","apple-touch-icons-hint","webhint","webhint-hint","webhint-recommended"],"license":"Apache-2.0","main":"dist/src/hint.js","name":"@hint/hint-apple-touch-icons","nyc":{"extends":"../../.nycrc"},"peerDependencies":{"hint":"^5.2.4"},"repository":{"directory":"packages/hint-apple-touch-icons","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":"3.1.7","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-apple-touch-icons@3.1.7","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-VwbzDP49POFeEg0azLkTDHF/WYuGciUReKKuqyEQjVKg71UpXB0UNR4/vAaVWErm6/zK0ip59QlRXFXm9Qh+gw==","shasum":"18739f154d8c849b07189a9ea31cf830a7d97a37","tarball":"http://registry-npm.ywwl.com/@hint/hint-apple-touch-icons/download/@hint/hint-apple-touch-icons-3.1.7.tgz","fileCount":14,"unpackedSize":48480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg8llCRA9TVsSAnZWagAAaJwP/AvpX9DvXRRX2BX+bTIE\nH4aFnhGQm+m+GRQMyuYcq8bZq2gOCHgWgRAgBRgKn1ixNOhSTvAwz7ZuIg1m\nXACsw/2AA5zg1u/808qfax05UHHsYgQa1l9cx271zIFc67bDjk8KE9vEFpwL\nQ3o2bhaZ+e5HqXkArWkVu3ijH/uaFKDyc3MGP62VQacEJmXXyd902coUxJM2\nvrQAXCU/C9WiCZLWBaDbhSvsA/PLeUIYsx07p1UDyJ+5VEm1VgkDvHiwOJxZ\nVTkaszXVKeRreFKBg+xtOMj+W6pQjMb5yJS+Rqbi5IPdvzsVe0SrnLwktDyz\nsGoJ4LesKtQvjPLLw3Crf4wVbyiL1yyuHPrdJNu3M6rqVL6+4oi34ktGXf5C\nleSWtWkWmVfM8CzJosR7iNB/covLTKRssCtXr82CmW7cXsFirEmy0GZMN2st\nAiASjIK3gTA5rGPGCxXu/gqVQhMOucSibGL4LjxGoXjY3KflwI97I2xLmZr6\nL45CK0Qz4Y1HILNh5auWYt/vYYD7H9mSollxJNDH6lVrXGkDgfWzWxD/UFKn\nyBaKWzPibO5psAmVasO0CRmEUcC5haHgWfStjwYOG2PrapT8ULxf7sq6E8mZ\nDh7COeSp8QkDd42gTJ/REr5XZHhIUEY0NulJD1JjIVU9Wjap1jT2Rk3RHqxW\nsrhM\r\n=Jfzz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH6j1xs0VzvLPgbIPTNp2uhEwvyRq3yuBart8mCmLSC9AiAhJ3vxLDj+vvmPKCj10LW7n4jlDfvV086KwUL4Vbzw+A=="}],"size":14333,"noattachment":false,"key":"/@hint/hint-apple-touch-icons/-/@hint/hint-apple-touch-icons-3.1.7.tgz"},"maintainers":[{"email":"antross@gmail.com","name":"antross"},{"email":"amolleda@gmail.com","name":"molant"}],"_npmUser":{"name":"molant","email":"amolleda@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hint-apple-touch-icons_3.1.7_1568917861081_0.22182025333287858"},"_hasShrinkwrap":false,"readme":"# Use Apple touch icon (`apple-touch-icons`)\n\n`apple-touch-icons` requires that at least one Apple touch icon is present and\nof a standard size.\n\n## Why is this important?\n\nSince `iOS 1.1.3`, Safari for iOS has supported a way for developers\nto specify an image that will be used to represent the web site or app\non the home screen. The image is known as the [touch icon][touch icons].\n\n```html\n<link rel=\"apple-touch-icon\" href=\"apple-touch-icon.png\">\n```\n\nPer Apple's [current guidance][apple icon sizes], default touch icon sizes\nare as follows:\n\nDevice or context | Icon size\n-- | --\niPhone | 180px × 180px (60pt × 60pt @3x)\niPhone (X/Plus) | 120px × 120px (60pt × 60pt @2x)\niPad Pro | 167px × 167px (83.5pt × 83.5pt @2x)\niPad, iPad mini | 152px × 152px (76pt × 76pt @2x)\n\nOther notes:\n\n* Not declaring the touch icon in the page and having it in the\n  root of the site is not recommended, as [Apple may change what is\n  requested by default][h5bp issue 1622].\n\n* In older versions of Safari for iOS, the [`precomposed` keyword][icon\n  effects] could be used to prevent iOS from adding different visual\n  effects to the touch icon (*i.e.,* rounded corners, drop shadow,\n  reflective shine). Starting with iOS 7, no special effects are applied\n  to touch icons, so there is no need to use the `precomposed`\n  keyword anymore.\n\n* When using one image, there is no need to use the `sizes` attribute.\n\n* As of `iOS 11.1.0`, Safari for iOS\n  [supports the web app manifest file][safari 11.1] which provides a standard,\n  cross-browser way of defining, among other, the icons browsers can use in\n  various contexts (home screen, application menu, *etc.*). However, Safari\n  ignores the icons defined in the web app manifest and still uses the\n  non-standard `apple-touch-icon`.\n\n## What does the hint check?\n\nThe hint checks if one or more `apple-touch-icon` declarations exist in\nthe `<head>`, and:\n\n* each has `rel=\"apple-touch-icon\"`\n* each declared image is accessible (*e.g.,* doesn’t result in a `404`),\n* each declared image is a `PNG` of one of the resolutions specified above\n\n### Examples that **trigger** the hint\n\nNo `apple-touch-icon` was specified:\n\n```html\n<!doctype html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>example</title>\n        ...\n\n    </head>\n    <body>...</body>\n</html>\n```\n\nThe `apple-touch-icon` is not specified in `<head>`:\n\n```html\n<!doctype html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>example</title>\n        ...\n\n    </head>\n    <body>\n        <link rel=\"apple-touch-icon\" href=\"apple-touch-icon.png\">\n        ...\n    </body>\n</html>\n```\n\nThe `apple-touch-icon` has a `rel` attribute different than\n`apple-touch-icon`:\n\n```html\n<link rel=\"apple-touch-icon-precomposed\" sizes=\"180x180\" href=\"apple-touch-icon-precomposed.png\">\n```\n\nThe `apple-touch-icon` is not accessible:\n\n```html\n<link rel=\"apple-touch-icon\" href=\"apple-touch-icon.png\">\n```\n\nResponse for `apple-touch-icon.png`:\n\n```text\n\nHTTP/... 404 Not Found\n...\n```\n\n```text\n\nHTTP/... 500 Internal Server Error\n...\n```\n\nThe `apple-touch-icon` is not a `PNG` file:\n\n```html\n<link rel=\"apple-touch-icon\" href=\"apple-touch-icon.png\">\n```\n\n```bash\n$ file apple-touch-icon.png\n\napple-touch-icon.png: JPEG image data, ...\n```\n\nOne or more `apple-touch-icon` files is not a recommended size:\n\n```html\n<link rel=\"apple-touch-icon\" href=\"apple-touch-icon.png\">\n```\n\n```bash\n$ file apple-touch-icon.png\n\napple-touch-icon.png: PNG image data, 16 x 16, ...\n```\n\n### Examples that **pass** the hint\n\n```html\n<!doctype html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>example</title>\n        ...\n        <link rel=\"apple-touch-icon\" href=\"/apple-touch-icon.png\">\n        ...\n\n    </head>\n    <body>...</body>\n</html>\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        \"apple-touch-icons\": \"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* [Everything you always wanted to know about touch\n  icons][touch icons]\n* [Is there a need for multiple touch icons when one will work?][h5bp\n  issue 1367]\n\n<!-- Link labels: -->\n[apple icon sizes]: https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/app-icon/\n[h5bp issue 1367]: https://github.com/h5bp/html5-boilerplate/issues/1367\n[h5bp issue 1622]: https://github.com/h5bp/html5-boilerplate/pull/1622\n[icon effects]: https://mathiasbynens.be/notes/touch-icons#effects\n[icon scaling]: https://realfavicongenerator.net/blog/how-ios-scales-the-apple-touch-icon/\n[safari 11.1]: https://developer.apple.com/library/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_11_1.html#//apple_ref/doc/uid/TP40014305-CH14-SW6\n[hintrc]: https://webhint.io/docs/user-guide/configuring-webhint/summary/\n[touch icons]: https://mathiasbynens.be/notes/touch-icons\n[web app manifest spec]: https://w3c.github.io/manifest/\n","publish_time":1568917861273,"_cnpm_publish_time":1568917861273,"dist-tags":{"latest":"4.0.23"}}