addon-tools-el/README.md

1.6 KiB

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.