{"ava":{"failFast":false,"files":["dist/tests/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils-debug":"^1.0.0","@hint/utils-i18n":"^1.0.0","@hint/utils-network":"^1.0.1","@hint/utils-string":"^1.0.0","@hint/utils-types":"^1.0.0","image-size":"^0.8.3"},"description":"hint for best practices related to the apple-touch-icons","devDependencies":{"@hint/utils-create-server":"^3.4.1","@hint/utils-tests-helpers":"^6.0.1","@hint/utils-dom":"^1.0.0","@types/image-size":"^0.7.0","@types/node":"^12.12.12","@typescript-eslint/eslint-plugin":"^1.13.0","@typescript-eslint/parser":"^1.12.0","ava":"^2.4.0","cpx":"^1.5.0","eslint":"^6.6.0","eslint-plugin-import":"^2.18.2","eslint-plugin-markdown":"^1.0.1","npm-run-all":"^4.1.5","nyc":"^14.1.0","rimraf":"^3.0.0","typescript":"^3.6.4"},"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":"^6.0.0"},"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 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.2.1","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-apple-touch-icons@3.2.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-DR/X5ULjUtux3sDSwlJL6NH89s3dc+IFXKXqt9zekNkmfc9EMwMHs5fm5z+6pKUzjxL58Qh+GOQfryHxn7E1wA==","shasum":"ba96684641efbacfd3479dfd77953f467de29e95","tarball":"http://registry-npm.ywwl.com/@hint/hint-apple-touch-icons/download/@hint/hint-apple-touch-icons-3.2.1.tgz","fileCount":14,"unpackedSize":53856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6E1yCRA9TVsSAnZWagAAEZYP/315VuAMZnocVsmi2mVY\nZBLI2XboaooUY2CxpGvlsLaL3bx3vxTCFxXbm0CF93ITEdkkciCvbKCnWo1v\nSnhGmuKWJrraskaAzDKzUKzjUSLVGlueF5m4eJL7i7fl8ce4PvdRG/v9EGLG\nFhE9+jiiM9/q3JFyKtsk6iFH49H7TD4V4qjkSCfa8Ff5WjyBoWSvBWPCRPmX\ngKCLyxBe3YGw4jEVFNpiYWOYY8y193YxWPXDda1NOJy/Q708hboKXHiZZpIu\nP5EgjJ4vfHgzqB/+VAtvzh98j3lCdtLQvweiHJ2T3xSCxoZno1q0ZYxGCPlT\n7pwNT1yGkMUwXv6JGE2MOPkDGgvSghrYlwGqCCZPA5FZmeuZma6zZqMHTaVn\nPMuIe6HzJ6xolkRNaM0yfuCCy0NO/ecCrk2y/DRE/4UNO+iP78O/nDU8+ogc\nBx9OxiOn4hUFUwwByNj/mW34ctUm9nFI6aJ+y0VCCdMCuTvsjHCuE5jzZGai\nsRCoVPKnq836hsGsUNKXJJSavulU/H4OnGY7DxJah8c8/aM5fCz0gHSQmFCP\nPRtWzJFpa0drLmCHrx4/yGCFFLbmhVaL3ItUZGmy1WHBpMBEnPE8FxYpwW31\nY9AT0JvS2B+rLOcVXnQ0mYRwHid8kscSfyo98RaJuRx9q8IF7aQDr3qnchzP\nPSL3\r\n=XCyl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4ttd5AqWKZc4zfbQ2qgppwfbV5Ztd5gDDZO0YeHfnAAIgM6gdaaSTjzJFqSg30wyvhJiLUr+LB1d3TCmTK7x8cDc="}],"size":15581,"noattachment":false,"key":"/@hint/hint-apple-touch-icons/-/@hint/hint-apple-touch-icons-3.2.1.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.2.1_1575505266386_0.2867146653641566"},"_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":1575505266563,"_cnpm_publish_time":1575505266563,"dist-tags":{"latest":"4.0.23"}}