1
0
mirror of synced 2025-12-16 19:33:58 +08:00
Commit Graph

17 Commits

Author SHA1 Message Date
Zachary Carter
b9a537a3c1 pretty print should exit with error code when invalid
Fixes issue #38.
2014-08-12 12:33:53 -07:00
Jason Anderson
2b833324ba Fix issue where objects nested in arrays would not have sorted keys 2014-07-17 14:49:26 +02:00
Lance Roggendorff
59c36ad370 Merge branch 'fix-inplace-overwriting' into add-forceformat-option
* fix-inplace-overwriting:
  Fixing variable name when overwriting input file.
2012-09-12 23:12:25 -05:00
Lance Roggendorff
92ac817d17 Adding forceformat option: format invalid output just like jsonlint.com
When using jsonlint.com, even invalid JSON is pretty printed. It seemed
like a good option to have in the cli version as well. This is simply
inserting the char-by-char formatter from
https://github.com/umbrae/jsonlintdotcom and adding an option to cli.js.
2012-09-12 23:11:11 -05:00
Lance Roggendorff
0f3202370f Fixing variable name when overwriting input file.
It looks like at one time the variable referencing the input file was
'path', and later on it was changed to 'json', but the if
(options.inplace) block was never updated.
2012-09-12 22:55:26 -05:00
Gregg Lind
f2e1de3039 added quiet mode 2012-08-22 09:10:54 -05:00
Zachary Carter
6af4143235 add schema validation 2012-05-28 15:14:09 -07:00
Zachary Carter
11e7192a72 appease jslint 2012-05-15 21:42:25 -07:00
Zachary Carter
ee5c2d557c use stderr for errors 2012-05-15 19:53:35 -07:00
Zach Carter
5cca03512e fix issue #16, normalize path 2012-04-05 22:13:44 -04:00
millermedeiros
1956caa5a4 add compact option to CLI and update flags to work with latest nomnom api. see #10 2011-12-16 13:45:52 -02:00
Zach Carter
5a52ba4662 change sys module to util 2011-11-21 20:19:34 -05:00
Zach Carter
ae5025e5ac Fix overwriting bug. 2011-06-04 10:32:04 -04:00
Zach Carter
f08f1b245f add option to sort object keys 2011-06-01 17:55:58 -04:00
Zach Carter
7d7e4b499f allow inplace overwrite 2011-06-01 17:42:36 -04:00
Zach Carter
26d697c45f Add nomnom for option parsing. Allow indentation option" 2011-06-01 17:24:24 -04:00
Zach Carter
9c1023cfb1 command line interface and updates for npm 2011-05-01 17:36:27 -04:00