Commit Graph

28 Commits

Author SHA1 Message Date
Konrad Dzwinel
3e7c654694 Remove console.error call
Get rid of unwanted console output.
2018-04-30 11:41:48 +02:00
Andrey Gubanov
094ff0d03d Throw error when Doug parser throws 'Unexpected' 2017-06-05 19:55:27 +03:00
Andrey Gubanov (his digital copy)
091450f3a2 bug fixes 2016-09-25 16:07:40 +03:00
Andrey Gubanov (his digital copy)
1d18f80902 bundle 2016-09-25 15:55:43 +03:00
Andrey Gubanov (his digital copy)
39f5c3dc89 add Doug's json parse and check for bad empty symbols and duplicates 2016-09-25 15:29:03 +03:00
Andrey Gubanov (his digital copy)
042f6b9507 add Doug's json parse and check for bad empty symbols and duplicates 2016-09-25 15:27:04 +03:00
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
14a108f3a4 fix escaping of special characters (issue #22) 2012-05-28 12:27:08 -07:00
Zachary Carter
eca60bb22b update grammar for latest jison 2012-05-27 14:26:14 -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
348eeb4c11 Follow spec instead of rfc for top level strings/numbers/null/booleans 2011-06-12 13:40:39 -04: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
558431957e regenerate parser 2011-05-21 01:22:02 -04:00
Zach Carter
9c1023cfb1 command line interface and updates for npm 2011-05-01 17:36:27 -04:00
Zachary Carter
1740851f1f First 2010-03-13 14:01:56 -05:00