touch-icons

Create touch icon data for multiple icon sizes
touch icon mobile html


Summary

Project Name touch-icons Project Url https://github.com/bendrucker/touch-icons#readme
InceptionYear 2015-11-21 17:05:27 更新时间 2015-11-22 01:05:27
IssueManagement https://github.com/bendrucker/touch-icons/issues Licenses MIT
仓库地址 git+https://github.com/bendrucker/touch-icons.git 用户数 0
Node Engine 文件大小 1.6 KB
install test

项目介绍

# touch-icons [![Build Status](https://travis-ci.org/bendrucker/touch-icons.svg?branch=master)](https://travis-ci.org/bendrucker/touch-icons) > Create touch icon data for multiple icon sizes ## Install ``` $ npm install --save touch-icons ``` ## Usage ```js 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'}] ``` ## API #### `touchIcons(sizes, createHref)` -> `array[object]` ##### sizes *Required* Type: `array[number]` An array of pixel sizes for the icons. ##### createHref *Required* Type: `function` Arguments: `size` A function that will be called for each size to generate the image URL. ## License MIT © [Ben Drucker](http://bendrucker.me)

开发依赖

GroupId ArtifactID Version 引用量
Feross Aboukhadijeh standard 14.3.4 24914
James Halliday tape 5.0.1 29771