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
- Host: GitHub
- URL: https://github.com/mguardarini/nodejs-bind-cplusplus
- Owner: mguardarini
- Created: 2018-11-25T20:25:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T13:56:02.000Z (about 7 years ago)
- Last Synced: 2025-01-18T08:38:37.786Z (about 1 year ago)
- Topics: api, binding, bolierplate, cplusplus, express, interface, node-ffi, nodejs
- Language: Makefile
- Size: 17.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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 :)