[Feature ask]Could we use icon-font-generator as API/library instead of CLI tool
fvdcx opened this issue · 2 comments
tancredi commented
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?
KennethJoris commented
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 !!