Comparing version 0.22.0 to 0.23.0
@@ -40,1 +40,2 @@ var _ = require('lodash'); | ||
module.exports = logfmt; | ||
logfmt.call(module.exports) |
{ | ||
"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 @@ |
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
57563
1348
384