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

Is it possible to use this module programmatically as a dependency? #38

Open
azaslavsky opened this issue Oct 30, 2017 · 1 comment
Open

Comments

@azaslavsky
Copy link

I'm thinking something like:

const graphdoc = require('@2fd/graphdoc');

graphdoc(OUTPUT_PATH, CONFIG_OBJ);

Even loading the module in NPM using the method above, let alone using it, is causing errors for me.

@2fd
Copy link
Owner

2fd commented Nov 9, 2017

This tool does not have an API to use it from code, at least not yet.
If you want to run it that way you can use child_process.exec

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

2 participants