Comparing version 1.0.0-pre3 to 1.0.0
{ | ||
"name": "logfmt", | ||
"version": "1.0.0-pre3", | ||
"version": "1.0.0", | ||
"description": "key=value logger and parser", | ||
@@ -5,0 +5,0 @@ "main": "logfmt.js", |
@@ -19,3 +19,3 @@ # node-logfmt | ||
npm install logfmt | ||
npm install logfmt@1.0.0-pre3 | ||
@@ -39,3 +39,3 @@ # use | ||
It is also a constructor function, so you can use `new logfmt` to create | ||
a new `logfmt` object so you can configure it differently. | ||
a new `logfmt` that you can configure differently. | ||
@@ -114,2 +114,15 @@ ```javascript | ||
### `logfmt.streamParser()` | ||
Creates a streaming parser that will automatically split and parse incoming lines and | ||
emit javascript objects. | ||
```javascript | ||
process.stdin.pipe(logfmt.streamParser()) | ||
``` | ||
```javascript | ||
req.pipe(logfmt.streamParser()) | ||
``` | ||
### `logfmt.streamStringify([options])` | ||
@@ -135,16 +148,3 @@ | ||
### `logfmt.streamParser()` | ||
Creates a streaming parser that will automatically split and parse incoming lines and | ||
emit javascript objects. | ||
```javascript | ||
process.stdin | ||
.pipe(logfmt.streamParser()) | ||
``` | ||
```javascript | ||
req.pipe(logfmt.streamParser()) | ||
``` | ||
#### Example | ||
@@ -151,0 +151,0 @@ |
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
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
7
61526