-
nad::injectNodeExtensions(node_extensions_h_file, node_extensions_cc_file, extensions, cb)
-
Injects source into
node_extensions.hfile to includeNODE_EXT_LIST_ITEMmacro calls for all valid targets of the addon.This is only necessary for node
< v0.11sincenode_extensions.handnode_extensions.ccdrastically changed during0.11development until they completely disappeared aroundv0.11.12. Starting withv0.11.13an addon module can be loaded dynamically even if it is not registered in the source code.Example
For targets
[ 'node_foo', 'node_bar' ]it injects following code intonode_extensions.h/* START nad INJECTION, PLEASE DO NOT REMOVE / #ifdef NODE_FOO_ADDON NODE_EXT_LIST_ITEM(node_bar) #endif #ifdef NODE_BAR_ADDON NODE_EXT_LIST_ITEM(node_bar) #endif /* END nad INJECTION, PLEASE DO NOT REMOVE /Then it modifies
node_extensions.ccin order to find our addons even if they don't start withnode_.Parameters:
Name Type Description node_extensions_h_filestring full path to
node_extensions.hnode_extensions_cc_filestring full path to
node_extensions.ccextensionsArray.<string> the extensions to insert
cbfunction called back when injection is completed
- Source:
-
nad::injectNodeGyp(projectDir, nodeDir, cb)
-
Injects necessary adjustments into
node.gypin order to include files of the addon found insidebinding.gypin the node build.Parameters:
Name Type Description projectDirstring full path to the directory of the addon project (where the
binding.gypfile lives)nodeDirstring full path to the directory at which the node source code is located (alongside
node.gyp)cbfunction invoked when finished
- Source:
Maintenance
Commit Frequency
Further analysis of the maintenance status of nad based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Inactive.
An important project maintenance signal to consider for nad is that it hasn't seen any new versions released to npm in the past 12 months, and could be considered as a discontinued project, or that which receives low attention from its maintainers.
In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.

