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 0.22.0 to 0.23.0

1

logfmt.js

@@ -40,1 +40,2 @@ var _ = require('lodash');

module.exports = logfmt;
logfmt.call(module.exports)

2

package.json
{
"name": "logfmt",
"version": "0.22.0",
"version": "0.23.0",
"description": "key=value logger and parser",

@@ -5,0 +5,0 @@ "main": "logfmt.js",

@@ -24,4 +24,15 @@ # node-logfmt

var logfmt = require('logfmt');
logfmt.log({foo: "bar", a: 14, baz: 'hello kitty'})
//=> foo=bar a=14 baz="hello kitty"
logfmt.parse('foo=bar a=14 baz="hello kitty"')
//=> { foo: "bar", a: 14, baz: 'hello kitty'}
```
the logfmt function is a singleton that works directly from require. however, you can use the `new` command
to make another logfmt like this one.
## parser

@@ -28,0 +39,0 @@

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