Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fvdcx opened this issue Mar 27, 2019 · 2 comments

Comments

@fvdcx
Copy link

fvdcx commented Mar 27, 2019

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

@tancredi
Copy link
Contributor

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?

@fvdcx fvdcx changed the title Could we use icon-font-generator as API/library instead of CLI tool [Feature ask]Could we use icon-font-generator as API/library instead of CLI tool Apr 2, 2019
@KennethJoris
Copy link

KennethJoris commented Apr 16, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants