GT2/GT2-iOS/node_modules/logfmt/examples/quick.sh

8 lines
259 B
Bash
Raw Normal View History

2018-02-12 17:26:06 +00:00
#! /usr/bin/env node
logfmt = require('./lib/logfmt_parser')
logfmt.debug = true;
var test_string = "foo=bar a=14 baz=\"hello kitty\" cool%story=bro f %^asdf ";
test_string += "code=H12 path=/hello/user@foo.com/close";
console.log(logfmt.parse(test_string))