package
Fetch a websites icons, logos and theme color
npm install website-logoGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Fetch a websites icons, logos and theme color
$ npm install --save website-logovar websiteLogo = require( 'website-logo' )websiteLogo( uri, function( error, info ) {
console.log( error || info )
})// github.com
{
name: 'GitHub',
title: 'Build software better, together',
description: 'GitHub brings together the world’s largest community of developers to discover, share, and build better software. From open source projects to private team repositories, we’re your all-in-one platform for collaborative development.',
icon: {
href: 'https://github.githubassets.com/favicon.ico',
type: 'image/x-icon'
},
themeColor: '#1e2327',
touchIcons: [],
openGraph: [
{
href: 'https://github.githubassets.com/images/modules/open_graph/github-logo.png',
type: 'image/png',
width: 1200,
height: 1200
},
// npmjs.com
{
name: 'npm | build amazing things',
title: 'npm | build amazing things',
description: null,
icon: {
href: 'https://static.npmjs.com/b0f1a8318363185cc2ea6a40ac23eeb2.png',
type: 'image/png'
},
themeColor: '#cb3837',
touchIcons: [
{
href: 'https://static.npmjs.com/58a19602036db1daee0d7863c94673a4.png',
size: [ 120, 120 ],
type: null
},
{
href: 'https://static.npmjs.com/7a7ffabbd910fc60161bc04f2cee4160.png',
size: [ 144, 144 ],
There are none. Not any automated ones, at least.
If you want to eyeball the results for a site:
$ node test 'www.example.com'Estimated unpacked size across 13 packages.
790.3 kB
Includes dependencies.