{"_id":"page-icon","_rev":"3211503","name":"page-icon","description":"Find the best icon for a web page","dist-tags":{"latest":"0.4.0"},"maintainers":[{"name":"jiahaog","email":""}],"time":{"modified":"2024-02-22T02:17:00.000Z","created":"2016-03-03T17:04:54.422Z","0.4.0":"2021-02-27T05:59:51.699Z","0.3.4":"2021-01-30T04:01:10.214Z","0.3.3":"2021-01-16T08:30:29.794Z","0.3.2":"2021-01-08T10:41:23.295Z","0.3.1":"2021-01-07T13:03:10.736Z","0.3.0":"2016-03-14T04:25:48.890Z","0.2.0":"2016-03-11T17:17:49.794Z","0.1.0":"2016-03-08T11:56:40.066Z","0.0.1":"2016-03-03T17:04:54.422Z"},"users":{},"author":{"name":"Goh Jia Hao"},"repository":{"type":"git","url":"git+https://github.com/nativefier/page-icon.git"},"versions":{"0.4.0":{"name":"page-icon","version":"0.4.0","engines":{"node":">= 10.0.0","npm":">= 6.0.0"},"description":"Find the best icon for a web page","main":"src/index.js","scripts":{"test":"mocha"},"author":{"name":"Goh Jia Hao"},"license":"MIT","dependencies":{"axios":"^0.21.1","cheerio":"^1.0.0-rc.5","file-type":"^16.2.0"},"devDependencies":{"chai":"^4.3.0","mocha":"^8.3.0"},"repository":{"type":"git","url":"git+https://github.com/nativefier/page-icon.git"},"bugs":{"url":"https://github.com/nativefier/page-icon/issues"},"homepage":"https://github.com/nativefier/page-icon#readme","gitHead":"4719a7e211060afe6ef9f474c5eb0a3352e5ff42","_id":"page-icon@0.4.0","_nodeVersion":"15.10.0","_npmVersion":"7.5.6","dist":{"shasum":"8f306e2efd183c20a2e79f617982752c1dd52a38","size":3137,"noattachment":false,"key":"/page-icon/-/page-icon-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/page-icon/download/page-icon-0.4.0.tgz"},"_npmUser":{"name":"ronjouch","email":"ronan@jouchet.fr"},"directories":{},"maintainers":[{"name":"jiahaog","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/page-icon_0.4.0_1614405591506_0.8720526723755702"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:27:17.932Z","publish_time":1614405591699,"_cnpm_publish_time":1614405591699},"0.3.4":{"name":"page-icon","version":"0.3.4","description":"Find the best icon for a web page","main":"lib/index.js","scripts":{"build":"babel src -d lib --source-maps","watch":"babel src -d lib --source-maps --watch","test":"npm run build && mkdir -p out && mocha --compilers js:babel-register","coverage":"istanbul cover _mocha -- --compilers js:babel-register","clean":"rm -rf out"},"author":{"name":"Goh Jia Hao"},"license":"MIT","dependencies":{"axios":"^0.21.0","cheerio":"^0.20.0","file-type":"^3.8.0","source-map-support":"^0.4.0"},"devDependencies":{"babel-cli":"^6.6.4","babel-preset-es2015":"^6.6.0","babel-register":"^6.6.0","chai":"^3.5.0","istanbul":"^0.4.2","mocha":"^2.4.5"},"repository":{"type":"git","url":"git+https://github.com/nativefier/page-icon.git"},"bugs":{"url":"https://github.com/nativefier/page-icon/issues"},"homepage":"https://github.com/nativefier/page-icon#readme","babel":{"presets":["es2015"]},"gitHead":"c607017649bcc2320f6c8fc9707df1fb0e71ba8d","_id":"page-icon@0.3.4","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"e6b532605ceaf3f517a9c6febc9f5aa1d7cf42b8","size":7001,"noattachment":false,"key":"/page-icon/-/page-icon-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/page-icon/download/page-icon-0.3.4.tgz"},"_npmUser":{"name":"jiahaog","email":"jiahaog@gmail.com"},"directories":{},"maintainers":[{"name":"jiahaog","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/page-icon_0.3.4_1611979270090_0.35956345522031574"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:27:17.836Z","publish_time":1611979270214,"_cnpm_publish_time":1611979270214},"0.3.3":{"name":"page-icon","version":"0.3.3","description":"Find the best icon for a web page","main":"lib/index.js","scripts":{"build":"babel src -d lib --source-maps","watch":"babel src -d lib --source-maps --watch","test":"npm run build && mkdir -p out && mocha --compilers js:babel-register","coverage":"istanbul cover _mocha -- --compilers js:babel-register","clean":"rm -rf out"},"author":{"name":"Goh Jia Hao"},"license":"MIT","dependencies":{"axios":"^0.21.0","cheerio":"^0.20.0","file-type":"^3.8.0","source-map-support":"^0.4.0"},"devDependencies":{"babel-cli":"^6.6.4","babel-preset-es2015":"^6.6.0","babel-register":"^6.6.0","chai":"^3.5.0","istanbul":"^0.4.2","mocha":"^2.4.5"},"repository":{"type":"git","url":"git+https://github.com/jiahaog/page-icon.git"},"bugs":{"url":"https://github.com/jiahaog/page-icon/issues"},"homepage":"https://github.com/jiahaog/page-icon#readme","babel":{"presets":["es2015"]},"gitHead":"932a0a0e9af3e37671a285997bac22c527e4b377","_id":"page-icon@0.3.3","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"a01e04bc19ae1169b69181159ef666c9093f896f","size":7000,"noattachment":false,"key":"/page-icon/-/page-icon-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/page-icon/download/page-icon-0.3.3.tgz"},"_npmUser":{"name":"jiahaog","email":"jiahaog@gmail.com"},"directories":{},"maintainers":[{"name":"jiahaog","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/page-icon_0.3.3_1610785829668_0.17171704867496707"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:27:16.953Z","publish_time":1610785829794,"_cnpm_publish_time":1610785829794},"0.3.2":{"name":"page-icon","version":"0.3.2","description":"Find the best icon for a web page","main":"lib/index.js","scripts":{"build":"babel src -d lib --source-maps","watch":"babel src -d lib --source-maps --watch","test":"npm run build && mkdir -p out && mocha --compilers js:babel-register","coverage":"istanbul cover _mocha -- --compilers js:babel-register","clean":"rm -rf out"},"author":{"name":"Goh Jia Hao"},"license":"MIT","dependencies":{"axios":"^0.21.0","cheerio":"^0.20.0","file-type":"^3.8.0","source-map-support":"^0.4.0"},"devDependencies":{"babel-cli":"^6.6.4","babel-preset-es2015":"^6.6.0","babel-register":"^6.6.0","chai":"^3.5.0","istanbul":"^0.4.2","mocha":"^2.4.5"},"repository":{"type":"git","url":"git+https://github.com/jiahaog/page-icon.git"},"bugs":{"url":"https://github.com/jiahaog/page-icon/issues"},"homepage":"https://github.com/jiahaog/page-icon#readme","babel":{"presets":["es2015"]},"gitHead":"e46e4e6ebb88991504a36c42fb52e447b0177a68","_id":"page-icon@0.3.2","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"d05eab7ef00329899b863c1e93b7c219573003a8","size":6959,"noattachment":false,"key":"/page-icon/-/page-icon-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/page-icon/download/page-icon-0.3.2.tgz"},"_npmUser":{"name":"jiahaog","email":"jiahaog@gmail.com"},"directories":{},"maintainers":[{"name":"jiahaog","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/page-icon_0.3.2_1610102483204_0.3701670453449786"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:27:16.065Z","publish_time":1610102483295,"_cnpm_publish_time":1610102483295},"0.3.1":{"name":"page-icon","version":"0.3.1","description":"Find the best icon for a web page","main":"lib/index.js","scripts":{"build":"babel src -d lib --source-maps","watch":"babel src -d lib --source-maps --watch","test":"npm run build && mkdir -p out && mocha --compilers js:babel-register","coverage":"istanbul cover _mocha -- --compilers js:babel-register","clean":"rm -rf out"},"author":{"name":"Goh Jia Hao"},"license":"MIT","dependencies":{"axios":"^0.21.0","cheerio":"^0.20.0","file-type":"^3.8.0","source-map-support":"^0.4.0"},"devDependencies":{"babel-cli":"^6.6.4","babel-preset-es2015":"^6.6.0","babel-register":"^6.6.0","chai":"^3.5.0","istanbul":"^0.4.2","mocha":"^2.4.5"},"repository":{"type":"git","url":"git+https://github.com/jiahaog/page-icon.git"},"bugs":{"url":"https://github.com/jiahaog/page-icon/issues"},"homepage":"https://github.com/jiahaog/page-icon#readme","babel":{"presets":["es2015"]},"gitHead":"0ab50dd1ab3e72c70373f73f40a747e6772123b7","_id":"page-icon@0.3.1","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"eedcb271a16398d2a8a50b72d92eaaddafc29a14","size":6959,"noattachment":false,"key":"/page-icon/-/page-icon-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/page-icon/download/page-icon-0.3.1.tgz"},"_npmUser":{"name":"jiahaog","email":"jiahaog@gmail.com"},"directories":{},"maintainers":[{"name":"jiahaog","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/page-icon_0.3.1_1610024590547_0.5854399416110241"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:27:15.175Z","publish_time":1610024590736,"_cnpm_publish_time":1610024590736},"0.3.0":{"name":"page-icon","version":"0.3.0","description":"Find the best icon for a web page","main":"lib/index.js","scripts":{"build":"babel src -d lib --source-maps","watch":"babel src -d lib --source-maps --watch","test":"npm run build && mkdir -p out && mocha --compilers js:babel-register","coverage":"istanbul cover _mocha -- --compilers js:babel-register","clean":"rm -rf out"},"author":{"name":"Goh Jia Hao"},"license":"MIT","dependencies":{"axios":"^0.9.1","cheerio":"^0.20.0","file-type":"^3.8.0","source-map-support":"^0.4.0"},"devDependencies":{"babel-cli":"^6.6.4","babel-preset-es2015":"^6.6.0","babel-register":"^6.6.0","chai":"^3.5.0","istanbul":"^0.4.2","mocha":"^2.4.5"},"repository":{"type":"git","url":"git+https://github.com/jiahaog/page-icon.git"},"bugs":{"url":"https://github.com/jiahaog/page-icon/issues"},"homepage":"https://github.com/jiahaog/page-icon#readme","babel":{"presets":["es2015"]},"gitHead":"f57ec74a17442f1cd3fc5700c275a508349abe36","_id":"page-icon@0.3.0","_shasum":"1ce792c67c461256a35fc042275b3d483726b2e2","_from":".","_npmVersion":"3.8.1","_nodeVersion":"4.2.4","_npmUser":{"name":"jiahaog","email":"jiahaog@gmail.com"},"dist":{"shasum":"1ce792c67c461256a35fc042275b3d483726b2e2","size":6839,"noattachment":false,"key":"/page-icon/-/page-icon-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/page-icon/download/page-icon-0.3.0.tgz"},"maintainers":[{"name":"jiahaog","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/page-icon-0.3.0.tgz_1457929548437_0.5974105829373002"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T07:27:14.293Z","publish_time":1457929548890,"_cnpm_publish_time":1457929548890},"0.2.0":{"name":"page-icon","version":"0.2.0","description":"Find the best icon for a web page","main":"lib/index.js","scripts":{"build":"babel src -d lib --source-maps","watch":"babel src -d lib --source-maps --watch","test":"npm run build && mkdir -p out && mocha --compilers js:babel-register","coverage":"istanbul cover _mocha -- --compilers js:babel-register","clean":"rm -rf out"},"author":{"name":"Goh Jia Hao"},"license":"MIT","dependencies":{"axios":"^0.9.1","cheerio":"^0.20.0","file-type":"^3.8.0","source-map-support":"^0.4.0"},"devDependencies":{"babel-cli":"^6.6.4","babel-preset-es2015":"^6.6.0","babel-register":"^6.6.0","chai":"^3.5.0","istanbul":"^0.4.2","mocha":"^2.4.5"},"repository":{"type":"git","url":"git+https://github.com/jiahaog/page-icon.git"},"bugs":{"url":"https://github.com/jiahaog/page-icon/issues"},"homepage":"https://github.com/jiahaog/page-icon#readme","babel":{"presets":["es2015"]},"gitHead":"316c14696ae57780aa9b3c8fd73c87ab82f4e5b5","_id":"page-icon@0.2.0","_shasum":"4093813a77b8b9f0385e08a012b67755245aca0e","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.4","_npmUser":{"name":"jiahaog","email":"jiahaog@gmail.com"},"dist":{"shasum":"4093813a77b8b9f0385e08a012b67755245aca0e","size":6755,"noattachment":false,"key":"/page-icon/-/page-icon-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/page-icon/download/page-icon-0.2.0.tgz"},"maintainers":[{"name":"jiahaog","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/page-icon-0.2.0.tgz_1457716669353_0.31112996861338615"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T07:27:13.434Z","publish_time":1457716669794,"_cnpm_publish_time":1457716669794},"0.1.0":{"name":"page-icon","version":"0.1.0","description":"Find the best icon for a web page","main":"lib/index.js","scripts":{"build":"babel src -d lib --source-maps","watch":"babel src -d lib --source-maps --watch","test":"npm run build && mkdir -p out && mocha --compilers js:babel-register","coverage":"istanbul cover _mocha -- --compilers js:babel-register","clean":"rm -rf out"},"author":{"name":"Goh Jia Hao"},"license":"MIT","dependencies":{"axios":"^0.9.1","cheerio":"^0.20.0","file-type":"^3.8.0","source-map-support":"^0.4.0","babel-polyfill":"^6.6.1"},"devDependencies":{"babel-cli":"^6.6.4","babel-preset-es2015":"^6.6.0","babel-register":"^6.6.0","chai":"^3.5.0","istanbul":"^0.4.2","mocha":"^2.4.5"},"repository":{"type":"git","url":"git+https://github.com/jiahaog/page-icon.git"},"bugs":{"url":"https://github.com/jiahaog/page-icon/issues"},"homepage":"https://github.com/jiahaog/page-icon#readme","babel":{"presets":["es2015"]},"gitHead":"6c0049470aa89b511718ceacededbefd72e54f1e","_id":"page-icon@0.1.0","_shasum":"cbb733be193ed727cb05fbbd6d9f739ee03fb6e2","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.4","_npmUser":{"name":"jiahaog","email":"jiahaog@gmail.com"},"dist":{"shasum":"cbb733be193ed727cb05fbbd6d9f739ee03fb6e2","size":6733,"noattachment":false,"key":"/page-icon/-/page-icon-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/page-icon/download/page-icon-0.1.0.tgz"},"maintainers":[{"name":"jiahaog","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/page-icon-0.1.0.tgz_1457438198019_0.027253001229837537"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T07:27:12.573Z","publish_time":1457438200066,"_cnpm_publish_time":1457438200066},"0.0.1":{"name":"page-icon","version":"0.0.1","description":"Find the best icon for a web page","main":"lib/index.js","scripts":{"build":"babel src -d lib --source-maps","watch":"babel src -d lib --source-maps --watch","test":"npm run build && mkdir -p out && mocha --compilers js:babel-register","coverage":"istanbul cover _mocha -- --compilers js:babel-register","clean":"rm -rf out"},"author":{"name":"Goh Jia Hao"},"license":"MIT","dependencies":{"axios":"^0.9.1","cheerio":"^0.20.0","source-map-support":"^0.4.0"},"devDependencies":{"babel-cli":"^6.6.4","babel-preset-es2015":"^6.6.0","babel-register":"^6.6.0","chai":"^3.5.0","istanbul":"^0.4.2","mocha":"^2.4.5"},"repository":{"type":"git","url":"git+https://github.com/jiahaog/page-icon.git"},"bugs":{"url":"https://github.com/jiahaog/page-icon/issues"},"homepage":"https://github.com/jiahaog/page-icon#readme","babel":{"presets":["es2015"]},"gitHead":"74aa5c697cd405e4d1576994bf48967eaecca3d1","_id":"page-icon@0.0.1","_shasum":"2ce6f0d4101c13fbd575044f697975fb377560b1","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.4","_npmUser":{"name":"jiahaog","email":"jiahaog@gmail.com"},"dist":{"shasum":"2ce6f0d4101c13fbd575044f697975fb377560b1","size":5065,"noattachment":false,"key":"/page-icon/-/page-icon-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/page-icon/download/page-icon-0.0.1.tgz"},"maintainers":[{"name":"jiahaog","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/page-icon-0.0.1.tgz_1457024693226_0.10815430781804025"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T07:27:12.260Z","publish_time":1457024694422,"_cnpm_publish_time":1457024694422}},"readme":"# Page Icon\n\n[![Build Status](https://github.com/nativefier/page-icon/workflows/ci/badge.svg)](https://github.com/nativefier/page-icon/actions?query=workflow%3Aci)\n\nA library to find the highest resolution website logo for a given url.\n\nThis a Javascript implementation of http://stackoverflow.com/a/22007642/5076225.\n\n## Installation\n\nRequires Node.js >= 10.\n\n```bash\n$ npm install --save page-icon\n```\n\n## Usage\n\n```javascript\nconst pageIcon = require('page-icon');\n\nconst URL = 'https://www.facebook.com/';\npageIcon(siteUrl)\n    .then(function(icon) {\n        // do things with icon object\n        console.log(icon);\n    })\n    .catch(error => {\n        console.error(error);\n    });\n});\n```\n\n#### Example Icon Object\n\n```javascript\n{ \n    source: 'https://www.facebook.com/apple-touch-icon.png',\n    name: 'www.facebook.com',\n    data: <Buffer 89 50 4e ... >,\n    size: 1779,\n    ext: '.png',\n    mime: 'image/png' \n}\n```\n\n## Tests\n\n```bash\n$ npm test\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/nativefier/page-icon#readme","bugs":{"url":"https://github.com/nativefier/page-icon/issues"},"license":"MIT"}