node-addon-examples icon indicating copy to clipboard operation
node-addon-examples copied to clipboard

Node.js C++ addon examples from http://nodejs.org/docs/latest/api/addons.html

Results 169 node-addon-examples issues
Sort by recently updated
recently updated
newest added

In our ObjectWrap N-API examples we store the `napi_ref` returned from `napi_wrap()` in the native object instance although we never use it. To `napi_delete_reference()` in the destructor we need to...

Hello, Please provide me the full steps to live debug node addon codes using Visual Studio code IDE on Windows OS environment. Thanks and regards, Sunny

question

Hello; I want to send and receive data from a game simulation in a seperate C++ process, from Node.js. I want Node.js to connect to the outside internet and Node.js...

Hi, anyone reading this, The file `node-addon-examples/5_function_factory/node_0.12/addon.cc` contains a function factory, that's all well and good, but when I do something similiar, instead of using a global function, I'm using...

As title, it would be great if this repository has an explicit license.

Have a piece of code, that works on node ToObject().As()->Value() ); ``` I couldn't see any examples for `v8::External` in conversion (i.e. I'm guessing using it with `Nan::To`?) What would...

Even if javascript makes no difference, V8 can distinguish integers from double for performance reason (looping with a double is a huge loss because the looping variable can't be a...

In the "6_object_wrap_example/node-addon-api", I tried to test what would happen when calling the constructor without arguments and I noticed that the actual exception thrown ("A number was expected") is different...

I am now testing for echo function, for code ``` napi_value Method(napi_env env, napi_callback_info args) { // napi_value str; napi_status status; cout