AndroidJSCore icon indicating copy to clipboard operation
AndroidJSCore copied to clipboard

NodeJs Packages in AndroidJSCore

Open aminpaydar opened this issue 10 years ago • 1 comments

can i use node packages in AndroidJSCore ? i had some researches , in this link https://blog.risingstack.com/running-node-modules-in-your-ios-project/ used node packs in javascriptcore in swift, i wanna implement it in AndroidJSCore .

aminpaydar avatar Aug 15 '16 06:08 aminpaydar

Yes, you should be able to run Node packages if they have been run through browserify. The require() function is not supported by core JavaScript, but browserify should solve that particular problem. However, keep in mind that this is not a Node runtime environment (I am actually experimenting with that now), so if your package depends on things like fs and process, these won't be available.

ericwlange avatar Aug 16 '16 05:08 ericwlange