https://github.com/nwutils/nw-node-addon-example
Examples of building NW.js Node Addons via node-gyp (nan, cmake and ffi coming soon!)
https://github.com/nwutils/nw-node-addon-example
Last synced: 2 months ago
JSON representation
Examples of building NW.js Node Addons via node-gyp (nan, cmake and ffi coming soon!)
- Host: GitHub
- URL: https://github.com/nwutils/nw-node-addon-example
- Owner: nwutils
- License: mit
- Created: 2023-12-24T17:53:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-01T05:09:29.000Z (3 months ago)
- Last Synced: 2025-03-23T21:45:59.299Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 120 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# nw-node-addon-gyp-example
Build Node Addon using `node-gyp`. NW.js Node headers are downloaded and passed to `node-gyp` via the `--nodedir` parameter.
Note: This approach works from v0.83 onward.
## Getting Started
1. Clone repo
1. `npm i` to install Node modules
1. `npm run gyp` to download Node headers and build Node Native Addon
1. `npm run nw` to run NW.js app.