Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 653 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 653 Bytes

Naio

Build system for node.js native addons

This will only build c/c++ files in src directory.

Install

npm i --save naio nan

Example

naio-test

How to use

Check out the example above

  1. Install
  2. Add to package.json
  3. "libraries": ["v8", "all-other-libraries-you-need"]
  4. "scripts": {"build": "make -f node_modules/naio/makefile", "postinstall": "npm run build"}
  5. Execute npm run build
  6. Now you can require/import like this
  7. var mylibrary = require('./build/debug.node') // or release.node
  8. import mylibrary from './build/debug.node'; // or release.node