https://github.com/stories2/native-node-js
Create node module using c++
https://github.com/stories2/native-node-js
c-plus-plus node-gyp nodejs
Last synced: 2 months ago
JSON representation
Create node module using c++
- Host: GitHub
- URL: https://github.com/stories2/native-node-js
- Owner: stories2
- License: mit
- Created: 2020-01-08T08:08:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-10T08:37:58.000Z (over 6 years ago)
- Last Synced: 2025-06-11T00:45:15.617Z (about 1 year ago)
- Topics: c-plus-plus, node-gyp, nodejs
- Language: C++
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Native-Node-JS
Create node module using c++
[Reference](https://github.com/nodejs/node-addon-examples)
## Setup
```
npm install node-gyp -g
npm install bindings --save
npm --add-python-to-path='true' --debug install --global windows-build-tools
# windows
set PYTHON=C:\Users\user\.windows-build-tools\python27\python.exe
```
## configure
```
node-gyp configure
```
## Build
```
node-gyp build
```
## Run from NodeJS
```
node app.js
```