1.0.10 • Published 5 years ago

pon-task-icon v1.0.10

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
5 years ago

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

ParamtypeDescription
filenamestringFile name to generate
optionsObjectOptional settings
options.sizenumberSize of favicon
options.shapestringTheme of shape
options.colorstringFavicon color
options.fontstringTheme of font
options.textstringText of favicon
options.fontSizestringSize of font

License

This software is released under the Apache-2.0 License.

Links

1.0.10

5 years ago

1.0.9

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago