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

@serialport/parser-delimiter

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-delimiter - npm Package Compare versions

Comparing version 10.2.2 to 10.3.0

10

dist/index.d.ts
/// <reference types="node" />
import { Transform, TransformCallback, TransformOptions } from 'stream';
export interface DelimiterOptions extends TransformOptions {
/** The delimiter on which to split incoming data. */
delimiter: string | Buffer | number[];
/** Should the delimiter be included at the end of data. Defaults to `false` */
includeDelimiter?: boolean;
delimiter: string | Buffer | number[];
}

@@ -12,8 +14,2 @@ /**

* To use the `Delimiter` parser, provide a delimiter as a string, buffer, or array of bytes. Runs in O(n) time.
* @example
const SerialPort = require('serialport')
const {DelimiterParser} = require('@serialport/parser-delimiter')
const port = new SerialPort('/dev/tty-usbserial1')
const parser = port.pipe(new DelimiterParser({ delimiter: '\n' }))
parser.on('data', console.log)
*/

@@ -20,0 +16,0 @@ export declare class DelimiterParser extends Transform {

@@ -10,8 +10,2 @@ "use strict";

* To use the `Delimiter` parser, provide a delimiter as a string, buffer, or array of bytes. Runs in O(n) time.
* @example
const SerialPort = require('serialport')
const {DelimiterParser} = require('@serialport/parser-delimiter')
const port = new SerialPort('/dev/tty-usbserial1')
const parser = port.pipe(new DelimiterParser({ delimiter: '\n' }))
parser.on('data', console.log)
*/

@@ -18,0 +12,0 @@ class DelimiterParser extends stream_1.Transform {

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

"types": "./dist/index.d.ts",
"version": "10.2.2",
"version": "10.3.0",
"engines": {

@@ -25,3 +25,3 @@ "node": ">=12.0.0"

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

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

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