Find the URLs of a web app's icons
npm install icons
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
@media="handheld", being used at the time of writing by NYTimes.
var icons = require'icons';iconsdiscover""console.logerr ? "ERROR " + err : icons;;
name: 'iPhone' 'iPod Touch' 'Android' 'BlackBerry'pixels: 0 57urls: ''location: 'link'name: 'iPad'pixels: 72urls: ''location: 'link'name: 'iPhone Retina'pixels: 114urls: ''location: 'link'name: 'iPad Retina'pixels: 144urls: ''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.