joyent/node — Issue #2204: Ability to call C functions from any binary library, similar to js-ctypes of Firefox
Author: Mithgol
Created: 2011-11-27 08:11:56+00:00
State: open

This is a feature request, and not a small one.

JavaScript routines in extensions of Mozilla Firefox can use [**js-ctypes**](https://developer.mozilla.org/en/js-ctypes) to call any C function from any library [on Windows, on Mac OS X, on Linux/POSIX.](https://developer.mozilla.org/en/js-ctypes/Using_js-ctypes#Examples)

If Node.js had a similar interface, it would make writing numerous wrapper modules (around existing libraries) a whole lot easier. In some cases (on Windows, for example) that would also facilitate providing pre-compiled binaries to end users.