js-evaluator-for-android
js-evaluator-for-android copied to clipboard
Can I incorporate an npm package using js-evaluator?
Can I incorporate an npm package using js-evaluator? If yes, how should I do that?
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.
@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?
Yes