Socket
Socket
Sign inDemoInstall

serialport

Package Overview
Dependencies
Maintainers
1
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 1.0.0 to 1.0.1

build/c4che/build.config.py

5

changelog.md

@@ -0,1 +1,6 @@

Version 1.0.1
-------------
- Fixed items from Firmata
- Added flexibility for options (camelcase or all lower)
Version 1.0.0

@@ -2,0 +7,0 @@ -------------

2

package.json
{
"name": "serialport",
"version": "1.0.0",
"version": "1.0.1",
"description": "Welcome your robotic javascript overlords. Better yet, program them!",

@@ -5,0 +5,0 @@ "author": {

@@ -15,7 +15,7 @@ <pre>

Version: 1.0.0 - Released July 11, 2012
Version: 1.0.0 - Released July 13, 2012 - Now with Windows Support!!!
*****
Imagine a world where you can write JavaScript to control blenders, lights, security systems, or even robots. Yes, I said robots. That world is here and now with node-serialport. It provides a very simple interface to the low level serial port code necessary to program [Arduino](http://www.arduino.cc/) chipsets, [X10](http://www.smarthome.com/manuals/protocol.txt) wireless communications, or even the rising [Z-Wave](http://www.z-wave.com/modules/ZwaveStart/) and [Zigbee](http://www.zigbee.org/) standards. The physical world is your oyster with this goodie, don't believe us - watch [this presentation from JSConf EU 2010](http://jsconf.eu/2010/speaker/livingroombindmotion_function.html) by [Nikolai Onken](http://twitter.com/nonken) and [Jörn Zaefferer](http://bassistance.de/).
Imagine a world where you can write JavaScript to control blenders, lights, security systems, or even robots. Yes, I said robots. That world is here and now with node-serialport. It provides a very simple interface to the low level serial port code necessary to program [Arduino](http://www.arduino.cc/) chipsets, [X10](http://www.smarthome.com/manuals/protocol.txt) wireless communications, or even the rising [Z-Wave](http://www.z-wave.com/modules/ZwaveStart/) and [Zigbee](http://www.zigbee.org/) standards. The physical world is your oyster with this goodie. For a full break down of why we made this, please read [NodeBots - The Rise of JS Robotics](http://www.voodootikigod.com/nodebots-the-rise-of-js-robotics).

@@ -22,0 +22,0 @@ *****

@@ -77,10 +77,10 @@ "use strict";

options = options || {};
options.baudRate = options.baudRate || 9600;
options.dataBits = options.dataBits || 8;
options.baudRate = options.baudRate || options.baudrate || 9600;
options.dataBits = options.dataBits || options.databits || 8;
options.parity = options.parity || 'none';
options.stopBits = options.stopBits || 1;
options.stopBits = options.stopBits || options.stopbits || 1;
options.bufferSize = options.bufferSize || options.buffersize || 100;
if (!('flowControl' in options)) {
options.flowControl = false;
}
options.bufferSize = options.bufferSize || 100;
options.dataCallback = function (data) {

@@ -99,4 +99,7 @@ options.parser(self, data);

path = '\\\\.\\' + path;
} else {
self.readStream = fs.createReadStream(path, { bufferSize: options.bufferSize });
}
SerialPortBinding.open(path, options, function (err, fd) {
self.fd = fd;
self.readStream = fs.createReadStream(path, { bufferSize: options.bufferSize, fd: fd });
self.readStream.on("data", options.dataCallback);

@@ -110,6 +113,2 @@ self.readStream.on("error", options.errorCallback);

});
}
SerialPortBinding.open(path, options, function (err, fd) {
self.fd = fd;
if (err) {

@@ -116,0 +115,0 @@ return self.emit('error', err);

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