{"ava":{"failFast":false,"files":["dist/tests/*.js"],"timeout":"1m"},"dependencies":{"image-size":"^0.6.3"},"description":"hint for best practices related to the apple-touch-icons","devDependencies":{"@hint/utils-tests-helpers":"^2.0.0","@types/image-size":"^0.0.29","ava":"^0.25.0","cpx":"^1.5.0","eslint":"^5.8.0","eslint-plugin-import":"^2.14.0","eslint-plugin-markdown":"^1.0.0-rc.0","eslint-plugin-typescript":"0.12.0","hint":"^4.0.0","markdownlint-cli":"^0.13.0","npm-link-check":"^2.0.0","npm-run-all":"^4.1.2","nyc":"^13.1.0","rimraf":"^2.6.2","typescript":"^3.1.5","typescript-eslint-parser":"20.1.1"},"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":"^4.0.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 -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: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":"2.0.0","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-apple-touch-icons@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"alrra","email":"alrraa@gmail.com"},"dist":{"integrity":"sha512-bzmhD3K0dVvuhXXUquOur6NnhkiPUl1yB/45jUqJUJShK5hJWE2HZmATwOf1ZsNda172Z9fMw2edcsPHoDmdMA==","shasum":"930330e2b219ecdde8f554dc8fd4a4ade3190724","tarball":"http://registry-npm.ywwl.com/@hint/hint-apple-touch-icons/download/@hint/hint-apple-touch-icons-2.0.0.tgz","fileCount":6,"unpackedSize":29992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4NQiCRA9TVsSAnZWagAA4D4P/iJfrPbtsqjpClldEuSC\nNpcCyeyHqv16+lcAdrRn+cVuSFC2g0rbrLX+/1/ArkJkb5Hhjud4NdQ42+3R\nxLzXpBaBTXq6Zv7Xp35zWQUP8lKl070Gp2KLEQC2fSFTehE5bZGydmlwM88T\nhBXavNYJ4fUeyqHpWB5fAEv30XqKfhFahVfJNY+7acdIpXleZFxPFF3ft8sv\nL50NFrD4yJ+98CAvEbKzTdryC1dAklaQ2f3Q8TNG04mwDTUt5qKBaFQFmD0g\ndpbnByQf3x0ovlLzRV/mDUQP/+NnAORU1CK1dtr7FJo0TCAmVaC4aBdDsyst\nQiTUJVL1tqXHH3ASHRYVuAmZjI0JuujzaCjUNjNZl4+U/AnIt+JVC3IUjD2s\neZwPlJn0P6uSvZZhNoV7uuhF3biEQFCxZukkUZwjJnAwmb5IjWfgDwRbxVos\nJ+o9GxbTc8fyeoJ0Id5fCenuPpXR0gM4h3sE2GBenBnXL3zu3cjD3YE7rP9A\nFSF5UUY48DUSPvUF9qLRaXPhfYQ1V87H//45T6jrBTgOtDGJDhyHgrXqNaac\nEZK+BD929NSSBzKZOJoaymgIGvJBpeSRnbDYLpgaPGZieOvnp243rpy4M6xj\n2tBZqTvMZ5Zroutcaeu1GPiS/7J98kicm5s1HZJRb40LCG1CuHYwUyeegX9b\n+MOd\r\n=Rpsg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhBJuju6zWYGV8CmLOSXrUXByW/ktN4dC+OXq1B1oh9AiEAlUuouWhunb/xP05G/IA1iI0q1XUEl3wJdCbZJ/iJe54="}],"size":9768,"noattachment":false,"key":"/@hint/hint-apple-touch-icons/-/@hint/hint-apple-touch-icons-2.0.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-apple-touch-icons_2.0.0_1541461024604_0.753409414932434"},"_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":1541461024834,"_cnpm_publish_time":1541461024834,"dist-tags":{"latest":"4.0.23"}}