Skip to content

Instantly share code, notes, and snippets.

betomoretti

Block or report user

Report or block betomoretti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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.