Skip to content

springmeyer/node-addon-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-addon-example

Sample starter application for a Node C++ addon packaged with node-pre-gyp.

Depends

  • Node.js 0.10.x or 0.8.x

Install

Install from binary:

npm install

Install from source:

npm install --build-from-source

Developing

The node-pre-gyp tool is used to handle building from source and packaging.

To recompile only the C++ files that have changed, first put node-gyp and node-pre-gyp on your PATH:

export PATH=`npm explore npm -g -- pwd`/bin/node-gyp-bin:./node_modules/.bin:${PATH}

Then simply run:

node-pre-gyp build

Packaging

node-pre-gyp build package

Publishing

npm install aws-sdk
node-pre-gyp publish

About

Sample starter application for a Node C++ addon packaged with node-pre-gyp

Resources

License

Stars

Watchers

Forks

Packages

No packages published