Socket
Socket
Sign inDemoInstall

jsonlint

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonlint - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

10

lib/cli.js

@@ -51,2 +51,8 @@ #!/usr/bin/env node

help: 'which specification of JSON Schema the validation file uses'
},
quiet: {
flag: true,key: "value",
string: '-q, --quiet',
"default": false,
help : 'do not print the parsed json to STDOUT'
}

@@ -104,3 +110,3 @@ }).parse();

} else {
console.log(source);
if (! options.quiet) { console.log(source)};
}

@@ -115,3 +121,3 @@ } else {

stdin.on('end', function () {
console.log(parse(source));
if (! options.quiet) {console.log(parse(source))};
});

@@ -118,0 +124,0 @@ }

2

package.json

@@ -11,3 +11,3 @@ {

],
"version": "1.5.0",
"version": "1.5.1",
"preferGlobal": true,

@@ -14,0 +14,0 @@ "repository": {

@@ -24,12 +24,17 @@ JSON Lint

$ jsonlint -h
Usage: jsonlint <file> [options]
<file> file to parse; otherwise uses stdin
usage: jsonlint <file> [options]
file file to parse; otherwise uses stdin
options:
-v, --version print version and exit
-s, --sort-keys sort object keys
-i, --in-place overwrite the file
-t CHAR, --indent CHAR character(s) to use for indentation
-v, --version print version and exit
-s, --sort-keys sort object keys
-i, --in-place overwrite the file
-t CHAR, --indent CHAR character(s) to use for indentation
-c, --compact compact error display
-V, --validate a JSON schema to use for validation
-e, --environment which specification of JSON Schema the validation file uses
## Module interface

@@ -36,0 +41,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