Hacker News new | ask | show | jobs
by zeroname 2838 days ago
Calling the OS doesn't require native modules, it should be supported via a native cffi in node, like in Python.
1 comments

Are 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.
Node doesn't have it natively like Python does, but it exists:

https://github.com/node-ffi/node-ffi

Yeah, 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.