New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json - npm Package Compare versions

Comparing version 9.0.1 to 9.0.2

5

CHANGES.md
# json Changelog
## json 9.0.2
- [pull #72] Correct examples in docs for conditional filtering.
## json 9.0.1

@@ -4,0 +9,0 @@

4

lib/json.js

@@ -11,3 +11,3 @@ #!/usr/bin/env node

var VERSION = '9.0.1';
var VERSION = '9.0.2';

@@ -212,3 +212,3 @@ var p = console.warn;

w(' --version Print version of this command and exit.');
w(' -q, --quiet Don"t warn if input isn"t valid JSON.');
w(' -q, --quiet Don\'t warn if input isn\'t valid JSON.');
w('');

@@ -215,0 +215,0 @@ w(' -f FILE Path to a file to process. If not given, then');

{
"name": "json",
"description": "a 'json' command for massaging and processing JSON on the command line",
"version": "9.0.1",
"version": "9.0.2",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -13,3 +13,6 @@ `json` is a fast CLI tool for working with JSON. It is a single-file node.js

$ echo '{"age":10}' | json -E 'this.age++'
$ echo '{"fred":{"age":42}}' | json fred.age # '.' for property access
42
$ echo '{"age":10}' | json -e 'this.age++'
{

@@ -19,5 +22,6 @@ "age": 11

$ echo '{"latency":32,"req":"POST /widgets"},
# `json -ga` (g == group, a == array) for streaming mode
$ echo '{"latency":32,"req":"POST /widgets"}
{"latency":10,"req":"GET /ping"}
' | json -gaC 'this.latency > 10' req
' | json -gac 'this.latency > 10' req
POST /widgets

@@ -30,3 +34,3 @@

- get details on JSON syntax errors (handy for config files)
- filter input JSON (see `-E` and `-C` options)
- filter input JSON (see `-e` and `-c` options)
- fast stream processing

@@ -33,0 +37,0 @@ - JSON validation

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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