Skip to content

Instantly share code, notes, and snippets.

@betomoretti
betomoretti / binding.gyp
Last active Jan 17, 2018
Hello world example using a native extension implemented with NAPI
View binding.gyp
{
"targets": [
{
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"include_dirs" : [
"<!@(node -p \"require('node-addon-api').include\")"
],
"target_name": "hello_world",
"sources": [ "hello_world.cc" ],
You can’t perform that action at this time.