I try to build my own node addon written in C++. It works well when I load them in a javascript executed in node (node test.js). As soon as I load th ...
I try to build my own node addon written in C++. It works well when I load them in a javascript executed in node (node test.js). As soon as I load th ...
Having a simple C++ class that uses fstream to write/read binary files Controller.h: The code above compiled with gcc works as expected. The Insert ...
I need a way to invoke JS callbacks from a C library that uses contexts. Here's an example: const ctx1 = mylib_init(); mylib_set_event_callback(ctx1 ...
Using modern C++ and the std library, what is the easiest and cleanest way to convert a std::string containing windows-1252 encoded characters to utf- ...
I'm getting started with the `node-addon-api' and while my code does compile and run, I do get the following warning: Indeed, everything gets recom ...
I am writing a Node Addon Function That returns a Promise, I have code like this. When I finish work. Do I need to delete pointer "context->d ...
I'm a beginner at node.js c++ addon, and I'm trying to implement a c++ addon that does the same thing as Array.prototype.map function. But after ...
I am using Apache CGI-Script with Nodejs to develop dynamic web page content Here I am using Node addon C++ (sample.node) as CGI-script. That uses no ...
I am building a Node addon on macOS to communicate with Apple's Photos framework, it will query photos from the Photos library and export them to a fo ...
I am creating a Node addon to export a video file from macOS Photos library, as it takes a few seconds, I wrapped the code into an AsyncWorker. The C ...
I have a synchronous C++ Node.js addon function that does an heavy operation: I'm trying to run it asynchronously wrapping it into a javascript Pro ...
I'm building a Node.js addon using Node-API. The logic has been simplified as below, Use pass js array into the addon and get some filtered array as ...
I'm building a Node.js addon using Node-API. Basically, my algorithm takes a js array as the input and then process it inside the addon and return it ...
Expectation I want to to implement using a native NodeJS module that works like the javascript module below class C1{ make(){return new C2()} } cl ...
I'm developing a nw addon and I've tried to link a custom static lib to .node DLL. However I found nw-gyp will add _HAS_ITERATOR_DEBUGGING=0 by defaul ...
This is just an example of the problem. Let's say I have utils.cc #include "../headers/utils/utils.h" double sum() { double result = 1 + 1; ...
I have a node add on module using node-addon-api interface. { "targets": [ { "target_name": "mod", "sources": [ "./src/inde ...
Here I discuss the implementation of GraphQL in my Project data structure. In my project, I am using flat files(text files) fixed-width format for DB ...
I wrote a nodejs addon, compiled with node-gyp. It won't work on electron, but nodejs worked. The nodejs and electron node has the same version. The ...
I am learning C++ and playing around with OpenCV and node-addon-api. I wanted to create my own wrapper for cv::Vec. docs #include <napi.h> #inc ...