Helpers for Node.js addons and dependency packages
Go to file
Luis Blanco f351c448cb wip doc 2019-11-07 22:14:00 +03:00
doc wip doc 2019-11-07 22:14:00 +03:00
include wip doc 2019-11-07 22:14:00 +03:00
test Use package files instead of npmignore 2019-08-10 15:48:27 +03:00
.eslintrc add shortcut types 2018-03-26 14:19:22 +03:00
.gitignore Update ignore 2019-08-07 10:08:36 +03:00
.travis.yml Update ignore 2019-08-07 10:08:36 +03:00
LICENSE fix windows bats 2018-01-30 11:26:47 +03:00
README.md wip doc 2019-11-07 22:14:00 +03:00
cpbin.js Add cpbin script 2019-09-17 11:17:57 +03:00
download.js wip new arch 2019-08-05 00:47:25 +03:00
index.js Fix codefactor 2019-08-07 18:15:44 +03:00
install.js Fix install 2019-08-06 16:51:55 +03:00
package-lock.json Update ignore 2019-08-07 10:08:36 +03:00
package.json Add to files 2019-09-17 15:38:44 +03:00
writable-buffer.js wip new arch 2019-08-05 00:47:25 +03:00

README.md

Addon Tools

This is a part of Node3D project.

NPM

Build Status CodeFactor

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.

index.js

Main exports for cross-platform addon configuration. Exports:

  • paths(dir) - function. Returns a set of platform dependent paths depending on input dir.
    • bin - platform binary directory absolute path.
    • include - include directory for this dir.
  • include - both 'addon-tools-raub' and 'node-addon-api' include paths. Use with node -p through list context command expansion <!@(...)
  • rm - the location of '_rm.bat' file on Windows and plain rm on Unix.
  • cp - the location of '_cp.bat' file on Windows and plain cp on Unix.
  • mkdir - the location of '_mkdir.bat' file on Windows and plain mkdir on Unix.
  • bin - platform binary directory name.