@serialport/parser-readline
Advanced tools
Comparing version 10.2.2 to 10.3.0
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
3552
40
+ Added@serialport/parser-delimiter@10.3.0(transitive)
- Removed@serialport/parser-delimiter@10.2.2(transitive)