parser-delimiter
Advanced tools
Comparing version 1.0.1 to 1.0.2
'use strict' | ||
const Buffer = require('safe-buffer').Buffer | ||
const Transform = require('stream').Transform | ||
/** | ||
* A transform stream that emits data each time a byte sequence is received. | ||
* @extends Transform | ||
* @summary To use the `Delimiter` parser, provide a delimiter as a string, buffer, or array of bytes. Runs in O(n) time. | ||
* @example | ||
// To use the `Delimiter` parser, provide a delimiter as a string, buffer, or array of bytes: | ||
const SerialPort = require('serialport'); | ||
const Delimiter = SerialPort.parsers.Delimiter; | ||
const port = new SerialPort('/dev/tty-usbserial1'); | ||
const parser = port.pipe(new Delimiter({ delimiter: '\n' })); | ||
parser.on('data', console.log); | ||
const SerialPort = require('serialport') | ||
const Delimiter = require('parser-delimiter') | ||
const port = new SerialPort('/dev/tty-usbserial1') | ||
const parser = port.pipe(new Delimiter({ delimiter: '\n' })) | ||
parser.on('data', console.log) | ||
*/ | ||
@@ -49,4 +50,4 @@ class DelimiterParser extends Transform { | ||
} | ||
}; | ||
} | ||
module.exports = DelimiterParser |
{ | ||
"name": "parser-delimiter", | ||
"main": "delimiter.js", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"dependencies": { | ||
@@ -6,0 +6,0 @@ "safe-buffer": "^5.1.1" |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
1945
3
1
2
1