- var FFI = require("node-ffi");
- var libm = new FFI.Library("libm", { "ceil": [ "double", [ "double" ] ] });
- console.log(libm.ceil(1.5)); // 2
- // You can also access just functions in the current process by passing a null
- var current = new FFI.Library(null, { "atoi": [ "int32", [ "string" ] ] });
- current.atoi("1234"); // 1234