Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ActiveX Com Components with nodejs. Is it possible

Is there a way to use any ActiveX com components with nodejs?

Actually, I would never need this but I'm running nodejs on Windows and trying to send ping requests without forking new processes (no such module exists for Windows).

As some Activex components exist for sending ping requests with raw sockets, maybe I can use them.


An example of how you can create a COM object from JavaScript is:

var rs = new ActiveXObject("ADODB.Recordset");
like image 386
umutm Avatar asked Jan 16 '13 10:01

umutm


1 Answers

There is node-win32ole ( npm install win32ole ).

EDIT: win32ole is no longer actively maintained. You could try winax instead.

like image 177
idobatter Avatar answered Sep 18 '22 10:09

idobatter