Skip to content
Pon task to generate icon
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci
doc
example
lib
test
.LICENSE.bud
.README.md.bud
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json

README.md

pon-task-icon

Build Status npm Version JS Standard

Pon task to generate icon

Installation

$ npm install pon-task-icon --save

Usage

'use strict'

const pon = require('pon')
const ponTaskIcon = require('pon-task-icon')

async function tryExample () {
  let run = pon({
    'icon:generate': ponTaskIcon('assets/icons/favicon.png', {
      text: 'THE',
      color: '#381',
      shape: 'a',
      font: 'j'
    })
  })

  run('icon:generate')
}

tryExample()

Signatures

define(filename, options) -> function

Define task to generate icon

Param type Description
filename string File name to generate
options Object Optional settings
options.size number Size of favicon
options.shape string Theme of shape
options.color string Favicon color
options.font string Theme of font
options.text string Text of favicon
options.fontSize string Size of font

License

This software is released under the Apache-2.0 License.

Links

You can’t perform that action at this time.