Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leoparente/simple_native_node_addon
My first native nodejs addon
https://github.com/leoparente/simple_native_node_addon
Last synced: 4 days ago
JSON representation
My first native nodejs addon
- Host: GitHub
- URL: https://github.com/leoparente/simple_native_node_addon
- Owner: leoparente
- License: mit
- Created: 2021-10-10T21:17:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-05T16:03:56.000Z (over 2 years ago)
- Last Synced: 2024-11-16T23:40:35.213Z (about 2 months ago)
- Language: C++
- Size: 1.62 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple_native_node_addon
My first native nodejs addonwhat I did:
ubuntu machine
```shell
sudo apt install cmake nodejs npm libboost-all-dev
```on repo:
```shell
npm install node-addon-api
npm install bindings //not used
npm install cmake-js --save-dev
```tip: node_modules/cmake-js/bin/cmake-js -d -O
command to build:
```shell
mkdir build
cd build
cmake ..
make
../node_modules/cmake-js/bin/cmake-js -d ../addon/ -O ./addon
```Run executable:
```shell
/simple_native_node_addon/build/nodeExecuter
```