Comparing version 1.5.0 to 1.5.1
@@ -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 @@ } |
@@ -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 @@ |
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
58780
1044
62
1