There really is nothing special about DTWAIN. The DTWAIN library is a plain Windows DLL, and can be used by any language with the ability to call exported DLL functions. It is designed this way so that the expert in whatever computer language that wants to use DTWAIN can easily get it to work, all without the author(s) of DTWAIN having to get involved in those details.
Unfortunately I do not know NodeJS to answer your question. If you know how to get NodeJS to interface to any DLL (not just this one) and call exported functions, that will be the way to use this library.
Probably you should ask a NodeJS-centric group of programmers and ask in general, how do I get NodeJS to call exported DLL functions.
There really is nothing special about DTWAIN. The DTWAIN library is a plain Windows DLL, and can be used by any language with the ability to call exported DLL functions. It is designed this way so that the expert in whatever computer language that wants to use DTWAIN can easily get it to work, all without the author(s) of DTWAIN having to get involved in those details.
Unfortunately I do not know NodeJS to answer your question. If you know how to get NodeJS to interface to any DLL (not just this one) and call exported functions, that will be the way to use this library.
Probably you should ask a NodeJS-centric group of programmers and ask in general, how do I get NodeJS to call exported DLL functions.