Skip to content

paulhauner/example-async-node-addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Async Node C++ Addon

Allows for non-blocking C++ operations from Node.js using the callback pattern.

Lightweight example.

Tested in Node.js v4.4.2 LTS on Ubuntu Linux.

Usage

Clone this git repo and navigate to the project directory. Follow the commands below:

$ npm install -g node-gyp
$ cd async-addon
$ node-gyp configure
$ node-gyp build
$ cd ..
$ node index.js

Credits

Thanks to Scott Frees' C++ processing from Node.js - Part 4 - Asynchronous addons article for a lot of help.

Contribution

Submit a pull-request and I'd be more than happy to include it. C++ isn't my strong point so I can imagine there's room to improve.

About

An example of an async (via callback) C++ Node.js addon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published