node-addon-examples
node-addon-examples copied to clipboard
Node.js C++ addon examples from http://nodejs.org/docs/latest/api/addons.html
Napi::Export 👉 Nan::Export
It appears that all of our examples use the `NODE_API_MODULE` macro to register native addons. It would be helpful to add an example that uses `NODE_API_ADDON` registration, where the module...
Hello everyone, I have a c++ code that I'm using nan to be able to implement it in nodejs environment. The problem is, my code has an while loop and...
The example should also illustrate the use of `napi_make_callback`. Re: https://github.com/nodejs/node/issues/14256
Hi @gengjiawen, Was hoping for some feedback -- after experimenting with `node-addon-api` for a few days looks like I've managed to wrap the extracted functions into C++ objects that do...
I get an error about not being able to find `napi.h` on **Windows.** This only occurs when I use ` "include_dirs": ["
My problem is multiple classes (objects) exported via my Init() functions. I have two classes that I want to use in my javascript but the 'constructor' seems to be overwritten...
I am having a very strange bug. I am inside the node-addon-api dir of the hello world example and when I try to follow the instructions, I get a failure...
I'm trying to wrap a C function that receives a char** as parameter but I can't seem to cast it properly. Do I have to iterate over the array and...
How to create utf8 string from a argument