Skip to content

Instantly share code, notes, and snippets.

@gabrielschulhof
Created February 16, 2016 14:45
Show Gist options
  • Save gabrielschulhof/1455ac9fd7d5cd416522 to your computer and use it in GitHub Desktop.
Save gabrielschulhof/1455ac9fd7d5cd416522 to your computer and use it in GitHub Desktop.
{
"targets": [ {
"target_name": "npmtmp",
"sources": [ "tmp.cc" ],
"include_dirs": [ "<!(node -e \"require('nan')\")" ]
} ]
}
{
"name": "npmtmp",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"nan": "^2.2.0"
}
}
#include <nan.h>
NAN_MODULE_INIT(init) {}
NODE_MODULE(npmtmp, init)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment