native binding
Code written in C or C++ that JavaScript can call, used by Node.js to reach system libraries such as OpenSSL and zlib.
In more detail
Most built-in modules, such as node:crypto and node:zlib, are thin JavaScript layers over native bindings. Your own projects can load native addons too, but they must be compiled for each platform.
Related terms
- C++ — A compiled programming language used to write fast, low-level software, including V8 and much of Node.js itself.
- OpenSSL — A widely used toolkit and library for cryptography and TLS, including the openssl command-line tool.
- zlib — A widely used C library for DEFLATE and gzip compression; in Node.js, node:zlib also provides Brotli.
Taught in
- Node.js Process Architecture: Memory & Heap Spaces — Node.js Internals & Backend Services
- Cryptographic Primitives: node:crypto & Ciphers — Node.js Internals & Backend Services
- Native Compression: node:zlib & Streaming Codecs — Node.js Internals & Backend Services
- Native HTTP/2 Protocols: Multiplexed Streams & Push — Node.js Internals & Backend Services