Create touch icon data for multiple icon sizes
$ npm install --save touch-icons
var touchIcons = require('touch-icons')
touchIcons([76], function createHref (size) {
return size + '.jpg'
})
//=> [{rel: 'icon', sizes: '76x76', href: 76.jpg}, {rel: 'apple-touch-icon', sizes: '76x76', href: '76.jpg'}]
Required
Type: array[number]
An array of pixel sizes for the icons.
Required
Type: function
Arguments: size
A function that will be called for each size to generate the image URL.
MIT © Ben Drucker