node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »


Icons - Find the URLs of a web app's icons


npm install icons

Simple to use

Icons is designed to find the URLs of a web app's icons.

Current version is able to discover following icons:

It supports redirection by the Refresh HTTP Header or its markup equivalent, the latter being used at the time of writing by Twitter. It also supports redirection to the URL provided by the HTML link element with @rel="alternate" and @media="handheld", being used at the time of writing by NYTimes.

var icons = require('icons');"", function(err, icons) {
    console.log(err ? ("ERROR " + err) : icons);


    name: ['iPhone', 'iPod Touch', 'Android', 'BlackBerry'],
    pixels: [0, 57],
    urls: [''],
    location: ['link']
}, {
    name: 'iPad',
    pixels: [72],
    urls: [''],
    location: ['link']
}, {
    name: 'iPhone Retina',
    pixels: [114],
    urls: [''],
    location: ['link']
}, {
    name: 'iPad Retina',
    pixels: [144],
    urls: [''],
    location: ['link']


In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.


Copyright (c) 2012 Pedro Faustino
Licensed under the MIT license.