node.js-nan Questions

7

I'm working on native Node.js addon and following nan docs I included nan into binding.gyp like: "include_dirs" : [ "<!(node -e \"require('nan')\")" ] Also nan is in npm dependencies. But whe...
Ainslie asked 25/12, 2015 at 16:54

2

Solved

So lately I've been getting into OpenCV with C++. I've built up a few libraries and apps that I would like to export over to Nodejs, but I can't figure it out for the life of me. I tried to check ...
Metropolitan asked 6/5, 2018 at 5:25

2

I am looking to working on a project using node js addons with C++. I came across two abstract library NAN and N-API that I can use. However I am unable to decide which one I should use. I wa...
Bladdernut asked 18/2, 2019 at 5:28

1

I have two simple classes A and B that I'm trying to expose in a native module in node.js. A is directly creatable, but a B is only created by calling A::foo(). class Internal {}; class B { pub...
Pavlov asked 17/1, 2018 at 13:17

2

Solved

I have a Node.js addon written in C++ using Nan. Works fantastically. However, I've not been able to figure out how to have my Node Javascript code pass an arbitrary data object (ex. {attr1:42, att...
Adenoidal asked 14/9, 2017 at 15:21

1

I have two subclasses of Nan::ObjectWrap class Zyre: public Nan::ObjectWrap {...} class ZyreEvent: public Nan::ObjectWrap {...} How can I return a ZyreEvent javascript object from a method in Z...
Mildamilde asked 5/8, 2016 at 17:25

1

Solved

The v8::FunctionCallbackInfo class distinguishes between This and Holder. I know what this is in JavaScript, and assume that This reflects that setting. But I have only a vague notion of what Holde...
Asur asked 13/12, 2015 at 23:1
1

© 2022 - 2024 — McMap. All rights reserved.