iconfont-builder


中文版
Introduction
Iconfont-builder is a node.js package for providing a middleware that create some font files.
Installation (via npm)
``
bash
$ npm i --save @devpack/iconfont-builder
`
Usage
$3
`
js
var builder = require('@devpack/iconfont-builder');
var path = require('path');
var options = {
icons: [
{
name: 'www-font-o',
label: 'FontTitle',
file: 'abc.svg',
codepoint: 61441,
svg: ''
}
],
src: path.join(__dirname, 'src'),
baseName: 'iconfont',
fontName: 'myfont',
descent: 0,
dest: path.join(__dirname, 'dest')
};
builder(options)
.then().catch();
`
$3
#### icons
Type: Array