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.4.0 to 0.5.0

20

logfmt.js

@@ -18,1 +18,21 @@ exports.parse = require('./lib/logfmt_parser').parse;

}
try {
//this will fail if express is not on the require path
var body_parser = require('./lib/body_parser')
var logplex = function (body) {
var lines = []
body.split("\n").forEach(function(line){
lines.push(logfmt.parse(line))
})
return lines;
}
exports.bodyParser = function() {
return body_parser({content_type: "application/logplex-1", parser: logplex})
}
}
catch(e){
//no express defined
}

2

package.json
{
"name": "logfmt",
"version": "0.4.0",
"version": "0.5.0",
"description": "Key-Value log line parser",

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

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