Workshape/icon-font-generator

[Feature ask]Could we use icon-font-generator as API/library instead of CLI tool

fvdcx opened this issue · 2 comments

fvdcx commented

@tancredi Could we use icon-font-generator as API/library instead of CLI tool

Why not - would be curious to know more. Also undergoing a rewrite to remove dependency from the core library (which is not actively maintained anymore) and add new features. Mind popping me an email?

Currently can require it like this:

const fontGenerator = require(require.resolve('icon-font-generator/lib/index.js')).generate;
fontGenerator(theOptions);

A little bit more documentation about theOptions would be nice. Now you have to go looking inside the JS files to figure out the correct key:values etc.

Nice Package though. Thanks !!