Socket
Socket
Sign inDemoInstall

jsonfilter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonfilter - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

cli.js

@@ -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
})

2

package.json
{
"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 @@ ```

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