{"_id":"favicon-fetch","_rev":"3-f8cfc3bf439c837a438ce6e83d5452df","name":"favicon-fetch","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"favicon-fetch","version":"0.0.1","description":"Get any website's favicon","main":"lib/index.js","browser":"dist/favicon-fetch.min.js","unpkg":"dist/favicon-fetch.min.js","scripts":{"build":"rollup -c","test":"node test/index.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/iconhorse/favicon-fetch.git"},"keywords":["favicon","icon","website"],"author":{"name":"mtimofiiv","email":"git@fiiv.io"},"license":"MIT","bugs":{"url":"https://github.com/iconhorse/favicon-fetch/issues"},"homepage":"https://favicon-fetch.icon.horse","devDependencies":{"rollup":"^2.59.0","rollup-plugin-jspacker":"^1.0.3","terser":"^5.9.0"},"gitHead":"bae4ac080d0744393e4b7297ffe39972783d4b41","_id":"favicon-fetch@0.0.1","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-QG/OVbw9ZwGpbjnQ5DTPaO3Ouex1h5pzeAItYqNtEJ7TqxL2iEl1j3+s0ztP8XsMnJYQRuTCZM5SUoDdJJo0ZA==","shasum":"293c16333738342b6356845f3f7e43b790635bf4","tarball":"https://registry.npmjs.org/favicon-fetch/-/favicon-fetch-0.0.1.tgz","fileCount":4,"unpackedSize":3082,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUetLLTXzCD4uwkOtKF8HUIX+9ZOEnzJv1fmdLhTmgOQIgBdL4+2YH01xXQInAv+c8BfRtgnD7ecNGZDcIcHjZnjY="}]},"_npmUser":{"name":"mtimofiiv","email":"npm@fiiv.io"},"directories":{},"maintainers":[{"name":"mtimofiiv","email":"npm@fiiv.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/favicon-fetch_0.0.1_1635972440243_0.1212405720900609"},"_hasShrinkwrap":false},"1.0.0":{"name":"favicon-fetch","version":"1.0.0","description":"Get any website's favicon","main":"lib/index.js","browser":"dist/favicon-fetch.min.js","unpkg":"dist/favicon-fetch.min.js","scripts":{"build":"rollup -c","test":"node test/index.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/iconhorse/favicon-fetch.git"},"keywords":["favicon","icon","website"],"author":{"name":"mtimofiiv","email":"git@fiiv.io"},"license":"MIT","bugs":{"url":"https://github.com/iconhorse/favicon-fetch/issues"},"homepage":"https://favicon-fetch.icon.horse","devDependencies":{"rollup":"^2.59.0","rollup-plugin-jspacker":"^1.0.3","terser":"^5.9.0"},"gitHead":"0de141bbd80ce31b08a2e216f97b4ecfe563f083","_id":"favicon-fetch@1.0.0","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-qEbMwsKBebUGo/JpTyeE5aBus5nTsIcYV7qRd5hxGWA3wOrp67aKXBrH3O23tYkNjnOThTyw9TaUrtWwOe3Y1w==","shasum":"127e810d43605fed904b94ee3fba554684378ccf","tarball":"https://registry.npmjs.org/favicon-fetch/-/favicon-fetch-1.0.0.tgz","fileCount":4,"unpackedSize":3591,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2q0SCRA9TVsSAnZWagAAzGYP/REZUKian/J2oqZOSz3N\nuDM1U8jqmnwF/kDVZc1B7Lj1rE7pK6A6GggWRi3w0/qNswryKV6w975jyxfw\nCO81Fn9QWt7SJaCpsX2NtvjEGUeKLOiT2iZx0uvKInmP/GAzjxXtN2BpZ6Mx\ncnan/jXRm6MQSSZJB2vz9LT/EZO9vRIwDCnk7UC9n+fHPX7mCMdtFcosL1f8\nX9iUGCkDEFUNRhfaDv+8ukdhPiOsrCoMfL3S+oJ65cxlQiRk0+VG36fh6WYg\nrGE4eNSqag6cKyaYmWZ9MLlNO8+P6UmoDyaWb0a+xonBBZL2HIkjYrFvLlDK\nj01jgzTzYtacBj2jx9LVQYmqkfLYjJQjrLXIEAKA6dcVOEiCfc+egL9DLwcG\nZ0U3EJBJcGplW6IJ/vkd733aVwBlsLJgFh5dj7WF2vnvSPFL6fZaEUlfwepr\ntNa4SRw6cqzom6sIg8dXIq/Sl/yFAyN6LrnPr4TnfhVritIjw6igk6ep8V1W\nsb12gPCz20rAFL0Mljn3dkkF73/TzLBIy94XG+8/iITicUs+FLbrZlhCFIt6\nqPneeTkw9VcGRGFLdQ8ro1/vlhVHq/tipQ99Can/VFISx7R+2eRi6pLOXX1h\nKO0RnRHJuX1tC0nxR8uUqceGRfCEs6EOEgT9sx9/AYyj6EgC3woN2KIVD7+H\nJELe\r\n=Zj0x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXYDfzqVxe028WiF7Mij5FG30fqTj4Uvnju5UJJuvIbwIhAI+xrG76urhZIFI83eD9F5wEW76TBRuXIj1zHqT3EP2t"}]},"_npmUser":{"name":"mtimofiiv","email":"npm@fiiv.io"},"directories":{},"maintainers":[{"name":"mtimofiiv","email":"npm@fiiv.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/favicon-fetch_1.0.0_1635972976339_0.03474218750045166"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-03T20:47:20.243Z","0.0.1":"2021-11-03T20:47:20.409Z","modified":"2022-05-02T05:22:24.790Z","1.0.0":"2021-11-03T20:56:16.483Z"},"maintainers":[{"name":"mtimofiiv","email":"npm@fiiv.io"}],"description":"Get any website's favicon","homepage":"https://favicon-fetch.icon.horse","keywords":["favicon","icon","website"],"repository":{"type":"git","url":"git+ssh://git@github.com/iconhorse/favicon-fetch.git"},"author":{"name":"mtimofiiv","email":"git@fiiv.io"},"bugs":{"url":"https://github.com/iconhorse/favicon-fetch/issues"},"license":"MIT","readme":"# favicon-fetch\n\nThis package quickly gives you a URL for any website's favicon.\n\nUses the [Icon Horse](https://icon.horse) service to fetch the icon.\n\n## Installing\n\n```\nnpm install favicon-fetch\n```\n\nor:\n\n\n```\nyarn add favicon-fetch\n```\n\n## Basic usage\n\n```js\n// First, import the package:\nconst faviconFetch = require('favicon-fetch')\n// or:\nimport faviconFetch from 'favicon-fetch'\n\nfaviconFetch({ hostname: 'wikipedia.org' })\n//-> The URI for an icon: https://icon.horse/icon/wikipedia.org\n\n// Alternatively, use any URI:\nfaviconFetch({ uri: 'https://en.wikipedia.org/wiki/1986' })\n//-> The URI for an icon: https://icon.horse/icon/wikipedia.org\n```\n\nThe icon returned looks like this:\n\n![Wikipedia icon](https://icon.horse/icon/wikipedia.org)\n\n## Additional options\n\nCurrently, both the fallback functionality and the `size` param require an `apikey` (read about getting one [here](https://icon.horse/pro)).\n\n```js\nfaviconFetch({\n  // hostname or uri\n\n  // This will return a different sized icon if available\n  size: 'small|medium|big',\n\n  // If no icon is reachable, a fallback image is shown. These two options control the colour\n  fallbackText: 'FFFFFF',\n  fallbackBg: '000000',\n\n  // If you have an Icon Horse API key\n  apikey: ''\n})\n```\n","readmeFilename":"README.md"}