{"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":"^1.0.0","ava":"^0.25.0","cpx":"^1.5.0","eslint":"^5.2.0","eslint-plugin-import":"^2.13.0","eslint-plugin-markdown":"^1.0.0-beta.7","eslint-plugin-typescript":"^0.12.0","markdownlint-cli":"^0.12.0","npm-link-check":"^2.0.0","npm-run-all":"^4.1.2","nyc":"^12.0.2","rimraf":"^2.6.2","hint":"^3.0.0","typescript":"^3.0.1","typescript-eslint-parser":"^17.0.1"},"engines":{"node":">=8.0.0"},"files":["dist/src","npm-shrinkwrap.json"],"homepage":"https://webhint.io/","keywords":["webhint","webhint-hint","apple-touch-icons","apple-touch-icons-hint","webhint-recommended"],"license":"Apache-2.0","main":"dist/src/hint.js","name":"@hint/hint-apple-touch-icons","nyc":{"extends":"../../.nycrc"},"peerDependencies":{"hint":"^3.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","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.0.0","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-apple-touch-icons@1.0.0","_npmVersion":"6.3.0","_nodeVersion":"10.4.0","_npmUser":{"name":"alrra","email":"alrraa@gmail.com"},"dist":{"integrity":"sha512-oL/IqBXMznJpkZcc6+ZTrq901i4yMRAcEpIFU7QdjRda4U5C3z42/QH9RsFJYZ0YF49KkynzxPXzfmfAI2Q8fg==","shasum":"3cc1421e81b2d1e76a68f962618c0528f78b7c85","tarball":"http://registry-npm.ywwl.com/@hint/hint-apple-touch-icons/download/@hint/hint-apple-touch-icons-1.0.0.tgz","fileCount":7,"unpackedSize":27734,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbaLjaCRA9TVsSAnZWagAAv+4P/1gz8bHGorJ6Wx8vd78F\ndu/nJ9+kaCIMYDPAYgq4GHY6J4Va3AI58uIbuDWO6ULIQie7SZg7T/jGSens\nj0JHItsREWPfL77tlJIL5XN9EU4U76KUfgNzHjlCzd6kXN09w1SNNXEF/1BX\nJUvuOPmaZN8LRLf2rul/vCgVWnIROgno0EZaD9/ZDQy9aYK1fnrOINIdSEiT\nEcdZ1lGpAleb+jkPZklniNmGgwag4xFttrJO4LhZdP2vxMykQY+dlsNC1TBA\nJPzvB4/NGqJgaZezk2B0VBJOGy69FldY61c1UU74CzsQsGZpM03/pK5GdGLr\neaBD0JwWap6LYQ6Ob0E62EUKZ5xFuzF4LjqvFKJuNAcopagjH/GkH6CWxahI\n8BNdikf6pd8pQp43PT5MrzKvYr739g2e4yJqPzetABPuqzq5wh2DO03PeRWA\ntQ1ItZ4xVm/mQbEbQrJUz7NhZcm6+Cpa4pY4eRtbk/kw03XibDGO/Mp13Z49\nNXutXTmcH3AMBFNQfL6grGeU73KejC7kEJ9mZZPLq3PfUfsJvTuSmu3VtlL9\nKhrbCJNTxJwObGW4Xy9WFd7jgIGxZnzxW16BiKN8wW+3tA/w8b7mDjlqX1VO\nHW3evEGu/wboaTumttL/aKhMfQtXXs1HH+hifN8yxw3F0ywru3GTABQIN0ab\nHxyH\r\n=luvr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0luwG3FeT02uqGjLzL4PpXzcGlsfuoxVuy+NTJDC8VAiAEZQsvGlxnyT4Nj3uYV7ghuiOecv5MoG4u4JdCLqrdfA=="}],"size":9187,"noattachment":false,"key":"/@hint/hint-apple-touch-icons/-/@hint/hint-apple-touch-icons-1.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_1.0.0_1533589722308_0.919298532583082"},"_hasShrinkwrap":true,"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":1533589722372,"_cnpm_publish_time":1533589722372,"dist-tags":{"latest":"4.0.23"}}