npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

node-addon-example2

0.1.3 • Public • Published

node-addon-example

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

If you are interested in learning how to write C++ addons see the official guide.

This repo is meant to be copied from as start code for your own C++ module. And the docs below are meant to be a template for how you might document your module once 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

Keywords

none

install

npm i node-addon-example2

Downloadsweekly downloads

4

version

0.1.3

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability