{"library":"napi-macros","type":"library","category":null,"description":"napi-macros is a lightweight, header-only C/C++ library providing a set of utility macros designed to simplify the development of Node.js N-API modules. It aims to reduce boilerplate code commonly associated with N-API, particularly for argument parsing, return value handling, and function/constant exports. As of April 2026, the current stable version is 2.2.2. This package is maintained by mafintosh, a prominent figure in the Node.js ecosystem, and typically sees updates in response to N-API specification changes or user contributions, rather than a fixed release cadence. Its key differentiator is its direct, macro-based approach, offering a minimal abstraction layer over the raw N-API C functions, making it suitable for developers who prefer fine-grained control and low-level C/C++ integration compared to higher-level C++ wrappers like `node-addon-api` or Rust-based solutions such as `napi-rs`.","language":"javascript","status":"active","version":"2.2.2","tags":["javascript"],"install":[{"cmd":"npm install napi-macros","imports":["\"include_dirs\": [ \"<!(node -e \\\"require('napi-macros')\\\")\" ]"]},{"cmd":"yarn add napi-macros","imports":[]},{"cmd":"pnpm add napi-macros","imports":[]}],"homepage":null,"github":"https://github.com/mafintosh/napi-macros","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/napi-macros","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/napi-macros/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}