Comparing version 1.0.0 to 1.0.1
@@ -6,2 +6,6 @@ #!/usr/bin/env node | ||
var firstArg = process.argv[2] | ||
process.stdin.pipe(jsonfilter(firstArg)).pipe(process.stdout) | ||
process.stdin.pipe(jsonfilter(firstArg)).on('data', function(o) { | ||
process.stdout.write(o) | ||
}).on('end', function() { | ||
console.log('') // trailing newline | ||
}) |
{ | ||
"name": "jsonfilter", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"bin": { | ||
@@ -5,0 +5,0 @@ "jsonfilter": "cli.js" |
@@ -28,4 +28,4 @@ # jsonfilter | ||
``` | ||
$ echo '{"rows": [ {"this object", "will be matched"}, {"so will": "this one"} ]}' | jsonfilter "rows.*" | ||
{"this object", "will be matched"} | ||
$ echo '{"rows": [ {"this object": "will be matched"}, {"so will": "this one"} ]}' | jsonfilter "rows.*" | ||
{"this object": "will be matched"} | ||
{"so will": "this one"} | ||
@@ -37,3 +37,3 @@ ``` | ||
``` | ||
$ echo '{"rows": [ {doc: {'this object': 'will be matched'}, foo: "bar"} ]}' | jsonfilter "rows.*.doc" | ||
$ echo '{"rows": [ {"doc": {"this object": "will be matched"}, "foo": "bar"} ]}' | jsonfilter "rows.*.doc" | ||
{'this object': 'will be matched'} | ||
@@ -40,0 +40,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
2398
17