🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

node-inpout

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-inpout

Node implementation and wrapping of InpOut dynamic library

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

node-inpout

Node implementation and wrapping of InpOut dynamic library.

The DLLs are from http://www.highrez.co.uk/downloads/inpout32/ ; all credit goes to the author. You can try to recompile dynamic libs from sources for another OS.

Installation

This module run with ffi ; so Make sure you've installed all the necessary build tools for your platform.

Then install it via npm:

$ npm install --save node-inpout

Also, on Windows systems, you can manually install InstallDriver.exe which is required to link the DLL to physical ports. In any case, the module try itself to install it if it's necessary.

Example Usage

const InpOut = require('node-inpout');

let inpout = new InpOut(0x48C, true, 'inpoutx64');
inpout.Inp32().then((data) => {
    /* stuff */
});

Test

To avoid the problem of using a physical device to test the module, you can find in the test folder C++ sources for a dummy dynamic library. I've already build the OSX version and the sources should be safe to use in another platform.

License

ISC License. See the LICENSE file.

Keywords

inpout

FAQs

Package last updated on 26 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts