7 ms·
Calling the OS doesn't require native modules, it should be supported via a native cffi in node, like in Python.
by zeroname 8y ago
Calling the OS doesn't require native modules, it should be supported via a native cffi in node, like in Python.
- electroly 8y agoAre you describing something you wish that node had, or something that actually exists? As far as I'm aware, native modules are the FFI for node, and that every package that involves presenting an FFI to the developer is using a native module to do it.
- zeroname 8y agoNode doesn't have it natively like Python does, but it exists: https://github.com/node-ffi/node-ffi https://github.com/node-ffi/node-ffi
- electroly 8y agoYeah, that's a native module. If you look at the C source code in "src", the "NAN_METHOD" and stuff are Node native module macros. node-ffi will not work if they remove native modules.