Javet icon indicating copy to clipboard operation
Javet copied to clipboard

Question about the library

Open HanzoDev1375 opened this issue 4 weeks ago • 8 comments

hi @caoccao I wanted to know if I can implement the npm system in your library or if it is available and also if it supports emmet.js or not.

HanzoDev1375 avatar Nov 30 '25 09:11 HanzoDev1375

That is something I don't recommend anyone to do in Javet.

  • The Node.js mode supports node_modules.
  • There are a few module management systems: npm, pnpm, yarn, etc. Javet doesn't step into that area.
  • Calling external command npm install is good enough, if you really want to install something.
  • The recommended way is to package your JS application via a proper tool, e.g. webpack, vite, etc., then load it into Javet Node.js mode.

caoccao avatar Nov 30 '25 13:11 caoccao

That is something I don't recommend anyone to do in Javet.

  • The Node.js mode supports node_modules.
  • There are a few module management systems: npm, pnpm, yarn, etc. Javet doesn't step into that area.
  • Calling external command npm install is good enough, if you really want to install something.
  • The recommended way is to package your JS application via a proper tool, e.g. webpack, vite, etc., then load it into Javet Node.js mode.

Can you give me a sample code because I still don't understand your project?

HanzoDev1375 avatar Nov 30 '25 14:11 HanzoDev1375

I recommend you to go over the tutorials (sample code).

caoccao avatar Dec 02 '25 11:12 caoccao

I recommend you to go over the tutorials (sample code).

Thank you very much, brother. Just a small question. Can you port it to ARM as well? Mobile phones are expensive in Iran, as you know, we don't have a good economy. We and some of my app users still have 32-bit phones...💔💔

HanzoDev1375 avatar Dec 02 '25 12:12 HanzoDev1375

The V8 mode supports arm 32bit.

caoccao avatar Dec 02 '25 19:12 caoccao

The V8 mode supports arm 32bit.

plz adding node.js

HanzoDev1375 avatar Dec 03 '25 06:12 HanzoDev1375

That's not that possible.

caoccao avatar Dec 03 '25 18:12 caoccao

That's not that possible.

tnks🌹

HanzoDev1375 avatar Dec 03 '25 19:12 HanzoDev1375