Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# simple_native_node_addon
My first native nodejs addon

what 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
```