Guides
- Getting started — installation, supported platforms, building from source
- Libraries and functions — loading libraries, declaring and calling functions, adapters
- Types — the C types, their sizes and JavaScript values, scalar subclasses
- Structures, unions and arrays — layouts, bit fields, packing, byte order
- Pointers and memory — pointers,
cast, shared buffers, native memory, Electron
- Callbacks — C calling JavaScript, also from other threads
- Asynchronous calls —
callAsync and the Executor
- Errors and results —
errno, GetLastError, errcheck, output parameters
- Windows API —
wintypes
- TypeScript — typed signatures and structures
- Python ctypes parity — supported behavior, differences, migrating from 1.x
- Coming from Koffi — the Koffi API mapped to node-ctypes
- Performance — comparisons with Koffi and how to run them
- Building, testing and internals — tests, native backends, release validation
The examples are complete programs built on these APIs.