Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serialport

Package Overview
Dependencies
Maintainers
0
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serialport - npm Package Compare versions

Comparing version 0.1.1 to 0.1.3

._LICENSE

2

._package.json

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR�6��"�"com.macromates.caret{
Mac OS X  2��ATTRQ-���"�"com.macromates.caret{
column = 22;
line = 1;
}
{ "name" : "serialport",
"version" : "0.1.1",
"version" : "0.1.3",
"description" : "Welcome your robotic javascript overlords. Better yet, program them!",

@@ -10,3 +10,3 @@ "author": "Chris Williams <voodootikigod@gmail.com>",

},
"scripts": { "install": "node-waf configure build" }
"scripts": { "install": "cd serialport_native;node-waf configure build;cp build/default/serialport_native.node ../" }
}

@@ -48,4 +48,5 @@ "use strict";

return function () {
var buffer = serialport_native.read(file_id, buffer);
me.emit('data', buffer);
var buffer = new Buffer(255);
var bytes_read = serialport_native.read(file_id, buffer);
me.emit('data', buffer.slice(0, bytes_read));
}

@@ -69,5 +70,4 @@ })(this.fd, this);

SerialPort.prototype.write = function (b) {
// console.log(this.fd);
if (Buffer.isBuffer(b))
serialport_native.write(this.fd, buffer);
serialport_native.write(this.fd, b);
else

@@ -74,0 +74,0 @@ serialport_native.write(this.fd, new Buffer(b));

Sorry, the diff of this file is not supported yet

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