{"ava":{"failFast":false,"files":["dist/tests/*.js"],"timeout":"1m"},"dependencies":{"@hint/utils-debug":"^1.0.1","@hint/utils-i18n":"^1.0.1","@hint/utils-network":"^1.0.2","@hint/utils-string":"^1.0.1","@hint/utils-types":"^1.0.1","image-size":"^0.8.3"},"description":"hint for best practices related to the apple-touch-icons","devDependencies":{"@hint/utils-create-server":"^3.4.2","@hint/utils-tests-helpers":"^6.1.0","@hint/utils-dom":"^2.0.0","@types/image-size":"^0.8.0","@types/node":"^12.12.14","@typescript-eslint/eslint-plugin":"^1.13.0","@typescript-eslint/parser":"^1.12.0","ava":"^3.4.0","cpx":"^1.5.0","eslint":"^6.8.0","eslint-plugin-import":"^2.18.2","eslint-plugin-markdown":"^1.0.2","npm-run-all":"^4.1.5","nyc":"^15.0.0","rimraf":"^3.0.2","typescript":"^3.8.3"},"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,.md,.ts --ignore-path ../../.eslintignore","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.2","bugs":{"url":"https://github.com/webhintio/hint/issues"},"_id":"@hint/hint-apple-touch-icons@3.2.2","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-fQzgn/4ecK9zncBkBG96lj55+BkHmlxkwOv8z5qAyrQ83Y2aLxWFWl/eSKLPpWffeViz7YG5ZwkQtD9ii07oJA==","shasum":"08e7e47f647dc192b42eebb697f109fbb1f5c85f","tarball":"http://registry-npm.ywwl.com/@hint/hint-apple-touch-icons/download/@hint/hint-apple-touch-icons-3.2.2.tgz","fileCount":14,"unpackedSize":56680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecph+CRA9TVsSAnZWagAA4pwP/034gmv+5SbkrGoSc7Vu\nmVY0iZiVfMlrPropc+AHzrI/yp5dKoNOW1TFHZ5Eo9KVfLwDnaM0ho6lSYwG\n5Xf9ridXqsJ8B4jgwz+od/trS6uM7VZnUurPM2HoSVb4//jcO6it5wKPbp7x\nVB6X9rVIF6Wz0tWGgNeiGrD2Pot26fFzEv4gCxmHTtt5hddT2nYoTSD/FHx0\nzUYWANLyxPu4Fz6RZgT1hvxiiITlvapG5fhejxLe2f4hhUYAfU/5Tn36C6Ha\nFMP3phw/M07qT5OuzOm7aqTVm1dL08cuNuTbU553RemAiidpmejGVxBKnUHw\n/hPaiN6iKBI8I5DAvnGFq+GhGa0pVRQUtyNkVGFBdnuqDsnh1JpkS743SdOW\nFDBh72x82ayZt/FGLXh1BrMevGFwkRpcEMYuGLEYdgfeNapyryOwaTRICiF6\nvW7QsaYqKj10+eaPj89bRRZtRD77v5FJTYTcPIXvF+1K3lW2vvJNIR/IAvqa\npU7WZDOlHXbClKusZhtMvi5aoxnolPHOVsXhKFiTUQy9NHITZZbp3AC42O/X\n5y/8h0raghVh206WmtnKcVaQ+vYSrhP5nvmjE0XYdFIQ5iR0c6PUO/FrrbS6\nfUCz/s1IpVA1xrEQdqqRWeEuRGwBI9uiDL+Nji+2U3ACtJuTVMMPQTsE0YOg\n3YjV\r\n=YlU/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDF0SLxRk1ElaYvxObm5GJujkUQYRNMi1tqw+m8I1x4BQIhAMb+ilH6CN5gyYkYrL3VxFXHZKB1yk1IODUh88CHHYEC"}],"size":16270,"noattachment":false,"key":"/@hint/hint-apple-touch-icons/-/@hint/hint-apple-touch-icons-3.2.2.tgz"},"maintainers":[{"email":"antross@gmail.com","name":"antross"},{"email":"amolleda@gmail.com","name":"molant"}],"_npmUser":{"name":"antross","email":"antross@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hint-apple-touch-icons_3.2.2_1584568445542_0.9889327129034731"},"_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":1584568445694,"_cnpm_publish_time":1584568445694,"dist-tags":{"latest":"4.0.23"}}