High-level Node.JS interface to parallel ports.
npm install parport
As Parallel-Port is distributed under the GPL, I'm forced to do the same (which I perfectly agree). So, Parport.JS is distributed under the GPLv3.
var par = require'parport';var port = ;portwriteControl241;console.log'Data:' portreadData;console.log'Status:' portreadStatus;
You can pass an ID to pick which port to open (useful if you have more than one):
var port = 1;portwriteData110;
Exceptions may be thrown
if something goes wrong.
Full documentation can be found under
More examples can be found under
Important: these are only the bindings to Node.JS. The common interface to the platform-dependent functions is in Parallel-Port.
Parallel-Port currently works on the following platforms:
Linux: through the parport driver (usually comes with kernel, see
Windows: through the Inpout32 library (free for non-commercial use only).
It seems it doesn't work on 64-bit Windows, though.
Platforms with no (but planned) support: