Socket
Socket
Sign inDemoInstall

linux-device

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linux-device - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "linux-device",
"version": "1.0.5",
"version": "1.0.6",
"description": "Native addon to communicate with linux devices (can also be used for sockets or FIFOs)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,3 +17,3 @@ # node-linux-device

**new DeviceHandle(String path, Boolean enableWrite, Number objectSize, Function callback(Error err, Buffer data) )**
**new DeviceHandle(String path, Boolean enableWrite, Number objectSize, [Number minimalObjectSize,] Function callback(Error err, Buffer data) )**

@@ -24,3 +24,4 @@ Creates a new DeviceHandle instance.

- `enableWrite` True if file should be opened in write mode
- `objectSize` Desired size in bytes for each callback event
- `objectSize` Maximal size in bytes for each callback event
- `minimalObjectSize` Minimal size in bytes for each callback event (defaults to ObjectSize)
- `callback(Error err, Buffer data)` Callback function that is invoked whenever data of `objectSize` is available.

@@ -27,0 +28,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc