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

@serialport/parser-readline

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serialport/parser-readline - npm Package Compare versions

Comparing version 10.2.2 to 10.3.0

14

dist/index.d.ts

@@ -5,6 +5,6 @@ /// <reference types="node" />

export interface ReadlineOptions extends TransformOptions {
/** defaults to false */
/** delimiter to use defaults to \n */
delimiter?: string | Buffer | number[];
/** include the delimiter at the end of the packet defaults to false */
includeDelimiter?: boolean;
/** defaults to \n */
delimiter?: string | Buffer | number[];
/** Defaults to utf8 */

@@ -16,11 +16,5 @@ encoding?: BufferEncoding;

* @summary To use the `Readline` parser, provide a delimiter (defaults to `\n`). Data is emitted as string controllable by the `encoding` option (defaults to `utf8`).
* @example
const SerialPort = require('serialport')
const {ReadlineParser} = require('@serialport/parser-readline')
const port = new SerialPort('/dev/tty-usbserial1')
const parser = port.pipe(new ReadlineParser({ delimiter: '\r\n' }))
parser.on('data', console.log)
*/
*/
export declare class ReadlineParser extends DelimiterParser {
constructor(options?: ReadlineOptions);
}

@@ -8,9 +8,3 @@ "use strict";

* @summary To use the `Readline` parser, provide a delimiter (defaults to `\n`). Data is emitted as string controllable by the `encoding` option (defaults to `utf8`).
* @example
const SerialPort = require('serialport')
const {ReadlineParser} = require('@serialport/parser-readline')
const port = new SerialPort('/dev/tty-usbserial1')
const parser = port.pipe(new ReadlineParser({ delimiter: '\r\n' }))
parser.on('data', console.log)
*/
*/
class ReadlineParser extends parser_delimiter_1.DelimiterParser {

@@ -17,0 +11,0 @@ constructor(options) {

@@ -5,5 +5,5 @@ {

"types": "./dist/index.d.ts",
"version": "10.2.2",
"version": "10.3.0",
"dependencies": {
"@serialport/parser-delimiter": "10.2.2"
"@serialport/parser-delimiter": "10.3.0"
},

@@ -28,3 +28,3 @@ "engines": {

},
"gitHead": "e8be807d39ad084ffc7e8609693da5a94cf8a9cb"
"gitHead": "ceba41c8f89d911de210f2513aaae85fff3ab457"
}

@@ -0,1 +1,3 @@

# @serialport/parser-readline
See our api docs See our api docs https://serialport.io/docs/api-parser-readline
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