Hacker News new | ask | show | jobs
by electroly 2838 days ago
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.
1 comments

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.