Socket
Socket
Sign inDemoInstall

logfmt

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logfmt - npm Package Compare versions

Comparing version 1.0.0-pre3 to 1.0.0

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc