1.7 KiB
Addon Tools
This is a part of Node3D project.
npm i addon-tools-raub
Synopsis
This module contains numerous helpers for Node.js NAPI addons and dependency packages. On this page, helper scripts are described. For details on addon-tools.hpp and some additional snippets follow the links below.
Go to:
-
Macro shortcuts for C++ addons using NAPI.
-
An alternative, lightweight native class-defining mechanism for addons.
-
Some repetitive bits of code for addons.
index.js
Main exports for cross-platform addon configuration. See TypeScript definitions with comments.
download.js
Downloads a file into the memory, HTTP or HTTPS. See TypeScript definitions with comments.
cpbin.js
Downloads a file into the memory, HTTP or HTTPS. See TypeScript definitions with comments.
install.js
Downloads and unzips the platform specific binary for the calling package. See TypeScript definitions with comments.
writable-buffer.js
A Writable stream buffer. See TypeScript definitions with comments.
utils.js
Async fs
based helpers for common addon-related file operations.
See TypeScript definitions with comments.