icon-font-generator icon indicating copy to clipboard operation
icon-font-generator copied to clipboard

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

Open fvdcx opened this issue 5 years ago • 2 comments

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

fvdcx avatar Mar 27 '19 11:03 fvdcx

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?

tancredi avatar Mar 27 '19 11:03 tancredi

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 !!

KennethJoris avatar Apr 16 '19 12:04 KennethJoris