Import into package (import/require)? #531
Answered
by
miraclx
joaonunatings
asked this question in
Q&A
-
Is it possible to import (or require) into a NodeJS package in order to use in code (instead of CLI)? |
Beta Was this translation helpful? Give feedback.
Answered by
miraclx
Jun 27, 2023
Replies: 1 comment 1 reply
-
I wanted to design freyr to be importable but eventually didn't considering how end-user focused the experience is. But to get the experience you're looking for, a Node.js package could call freyr as a child process and pass all the appropriate arguments. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
joaonunatings
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wanted to design freyr to be importable but eventually didn't considering how end-user focused the experience is.
But to get the experience you're looking for, a Node.js package could call freyr as a child process and pass all the appropriate arguments.