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

https://github.com/mguardarini/nodejs-bind-cplusplus

C++ and Node.js: An Unholy Combination….But Oh So Right
https://github.com/mguardarini/nodejs-bind-cplusplus

api binding bolierplate cplusplus express interface node-ffi nodejs

Last synced: 11 months ago
JSON representation

C++ and Node.js: An Unholy Combination….But Oh So Right

Awesome Lists containing this project

README

          

# How to create js binding to c/c++ library using nodejs FFI

This is a simple example C/C++ math library binding to Node.JS using addon FFI(foreign feth interface) and web server with express.

If you have an existing library written in C/C++ and you want to use this in a Node.JS application or you want to create an interface binding for javascript, you using node-ffi is a Node.js addon for loading and calling dynamic libraries using pure JavaScript. It can be used to create bindings to native libraries without writing any C++ code.

### To install dependency using NPM.
```
npm install
```

### To Build the project
```
npm run build
```

### To run the project
```
npm run start
```

# Enjoy :)