addonaddonscross-platformfsgypheaderheader-fileshelpershppmacrosnapinodenode-3dnode-addonnode-addon-apinode-jsnodejssnippetstsutils
|
||
---|---|---|
doc | ||
include | ||
test | ||
.eslintrc | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
cpbin.js | ||
download.js | ||
index.js | ||
install.js | ||
package-lock.json | ||
package.json | ||
writable-buffer.js |
README.md
Addon Tools
This is a part of Node3D project.
npm i addon-tools-raub
Synopsis
Helpers for Node.js NAPI addons and dependency packages.
Go to:
include/addon-tools.hpp Macro shortcuts for NAPI. Es5 Class Wrapping An alternative, lightweight native class-defining mechanism for addons.
- Script Helpers Additional scripts for addon management.
- Snippets Some repetitive bits of code for addons.
index.js
Main exports for cross-platform addon configuration. Exports:
paths(dir)
- function. Returns a set of platform dependent paths depending on inputdir
.bin
- platform binary directory absolute path.include
- include directory for thisdir
.
include
- both'addon-tools-raub'
and'node-addon-api'
include paths. Use withnode -p
through list context command expansion<!@(...)
rm
- the location of'_rm.bat'
file on Windows and plainrm
on Unix.cp
- the location of'_cp.bat'
file on Windows and plaincp
on Unix.mkdir
- the location of'_mkdir.bat'
file on Windows and plainmkdir
on Unix.bin
- platform binary directory name.