LiquidCore icon indicating copy to clipboard operation
LiquidCore copied to clipboard

Npm packages

Open Deepp0925 opened this issue 5 years ago • 2 comments

Can I use any npm package I want or are there limitations?

Thank you in advance

Deepp0925 avatar Apr 15 '20 16:04 Deepp0925

You can use any npm package that does not have native bindings. That is, any package that is a pure JS implementation, or any of the Node.js built-in modules. You cannot use a module that requires compilation of a C/C++ addon, unless that addon has been modified for use with LiquidCore. For example, I have created a LiquidCore-compliant version of node-sqlite3 which is a fork of the original, but updated to work with LiquidCore. Other native modules would require some work, but it can be done.

ericwlange avatar Apr 16 '20 09:04 ericwlange

@ericwlange how do I make my own JavaScript binding like you did with SQLite?

Deepp0925 avatar May 07 '20 23:05 Deepp0925