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

Can I incorporate an npm package using js-evaluator? #55

Open
Yuhanlolo opened this issue May 18, 2021 · 3 comments
Open

Can I incorporate an npm package using js-evaluator? #55

Yuhanlolo opened this issue May 18, 2021 · 3 comments

Comments

@Yuhanlolo
Copy link

Can I incorporate an npm package using js-evaluator? If yes, how should I do that?

@evgenyneu
Copy link
Owner

Hi @Yuhanlolo, you will need to manually download the package, load its JavaScript code into a string variable. Then you can evaluate this code with this library.

@Yuhanlolo
Copy link
Author

@evgenyneu Thanks! Does that mean I should pack all the js code into a single string, as most of the npm packages have multiple files and functions, should I manually put them all together?

@evgenyneu
Copy link
Owner

Yes

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