webfonts-helper

0.1.2 • Public • Published

svg2font

  npm install webfonts-helper --g

js

  const webFontsHelper = require('webfonts-helper')
  webFontsHelper(options)

command

  webFontsHelper

feature

  • [x] support svg to 'ttf', 'woff', 'woff2', 'eot'
  • [ ] support ttf to 'woff', 'woff2', 'eot'

options

props defaultValue description
src - svg dir
formats ['svg', 'ttf', 'woff', 'woff2', 'eot'] font type
fontName icon-font font family name you want
fontPath - font family dest
className icon css className

Readme

Keywords

none

Package Sidebar

Install

npm i webfonts-helper

Weekly Downloads

4

Version

0.1.2

License

ISC

Unpacked Size

9.85 kB

Total Files

8

Last publish

Collaborators

  • yang103