Skip to content

Implementation of the Node.js addons (interface between JavaScript and C++) for CPU intensive computation.

Notifications You must be signed in to change notification settings

BibekShah09/nodejs-addons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Addons / Node.js

Node.js Addons are dynamically-linked shared objects, written in C++, that can be loaded into Node.js using the require() function, and used just as if they were an ordinary Node.js module. They are used primarily to provide an interface between JavaScript running in Node.js and C/C++ libraries.

Prerequisites

Git
node
npm

Installation

git clone repo_name # or clone your own fork
cd repo_name
rm rf .git
npm install

Build C++ Addons

   node-gyp config build

Running Locally

Go to your project directory.

   node-gyp config build
   node src/index.js

Running Benchmark

   node src/benchmark.js

Output (Benchmark)

On the following environment
  • Mac OS X 10.13.4
  • Processor: 2.7 GHz Intel Core i5
  • Memory: 8 GB 1867 MHz DDR3

output


Author

Bibek Shah

About

Implementation of the Node.js addons (interface between JavaScript and C++) for CPU intensive computation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published