js-beautify 1.6.14 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +14 -179
  2. package/README.md +12 -10
  3. package/js/lib/beautify-css.js +768 -293
  4. package/js/lib/beautify-html.js +1016 -757
  5. package/js/lib/beautify.js +2385 -2046
  6. package/js/lib/cli.js +3 -0
  7. package/js/src/core/acorn.js +63 -0
  8. package/js/src/core/inputscanner.js +95 -0
  9. package/js/src/core/options.js +48 -0
  10. package/js/src/core/output.js +234 -0
  11. package/js/src/core/token.js +49 -0
  12. package/js/src/css/beautifier.js +477 -0
  13. package/js/src/css/index.js +36 -0
  14. package/js/src/html/beautifier.js +1035 -0
  15. package/js/src/html/index.js +36 -0
  16. package/js/src/index.js +27 -0
  17. package/js/src/javascript/beautifier.js +1449 -0
  18. package/js/src/javascript/index.js +36 -0
  19. package/js/src/javascript/tokenizer.js +620 -0
  20. package/js/test/generated/beautify-javascript-tests.js +33 -0
  21. package/package.json +5 -4
  22. package/.codeclimate.yml +0 -13
  23. package/.jshintignore +0 -9
  24. package/.jshintrc +0 -10
  25. package/.npmignore +0 -5
  26. package/.travis.yml +0 -14
  27. package/ISSUE_TEMPLATE.md +0 -55
  28. package/appveyor.yml +0 -35
  29. package/bower.json +0 -11
  30. package/build +0 -5
  31. package/jsbeautifyrc +0 -18
  32. package/test/data/css/node.mustache +0 -269
  33. package/test/data/css/python.mustache +0 -270
  34. package/test/data/css/tests.js +0 -445
  35. package/test/data/html/node.mustache +0 -378
  36. package/test/data/html/tests.js +0 -1105
  37. package/test/data/javascript/inputlib.js +0 -84
  38. package/test/data/javascript/node.mustache +0 -1114
  39. package/test/data/javascript/python.mustache +0 -1322
  40. package/test/data/javascript/tests.js +0 -3083
  41. package/test/generate-tests.js +0 -216
  42. package/test/resources/html-with-base64image.html +0 -1
  43. package/test/resources/underscore-min.js +0 -6
  44. package/test/resources/underscore.js +0 -1439
  45. package/tools/build.sh +0 -140
  46. package/tools/generate-changelog.sh +0 -40
  47. package/tools/git-status-clear.sh +0 -18
  48. package/tools/release-all.sh +0 -86
package/CHANGELOG.md CHANGED
@@ -1,4 +1,18 @@
1
1
  # Changelog
2
+ ## v1.7.0
3
+
4
+ ### Description
5
+
6
+
7
+ ### Closed Issues
8
+ * Add test and tools folder to npmignore ([#1239](https://github.com/beautify-web/js-beautify/issues/1239))
9
+ * incorrect new-line insertion after "yield" ([#1206](https://github.com/beautify-web/js-beautify/issues/1206))
10
+ * Do not modify built-in objects ([#1205](https://github.com/beautify-web/js-beautify/issues/1205))
11
+ * Fix label checking incorrect box when clicked ([#1169](https://github.com/beautify-web/js-beautify/pull/1169))
12
+ * Webpack ([#1149](https://github.com/beautify-web/js-beautify/pull/1149))
13
+ * daisy-chain indentation leads to over-indentation ([#482](https://github.com/beautify-web/js-beautify/issues/482))
14
+
15
+
2
16
  ## v1.6.12
3
17
 
4
18
  ### Description
@@ -283,21 +297,6 @@ Version jump due to release script tweaks
283
297
 
284
298
 
285
299
  ### Closed Issues
286
- * Fix tokenizer's bracket pairs' open stack ([#693](https://github.com/beautify-web/js-beautify/pull/693))
287
- * Indentation is incorrect for HTML5 void tag <source> ([#692](https://github.com/beautify-web/js-beautify/issues/692))
288
- * Line wrapping breaks at the wrong place when the line is indented. ([#691](https://github.com/beautify-web/js-beautify/issues/691))
289
- * Publish v1.5.6 ([#687](https://github.com/beautify-web/js-beautify/issues/687))
290
- * Replace existing file fails using python beautifier ([#686](https://github.com/beautify-web/js-beautify/issues/686))
291
- * Pseudo-classes formatted incorrectly and inconsistently with @page ([#661](https://github.com/beautify-web/js-beautify/issues/661))
292
- * doc: add end_with_newline option ([#650](https://github.com/beautify-web/js-beautify/pull/650))
293
- * Improve support for xml parts of jsx (React) => spaces, spread attributes and nested objects break the process ([#646](https://github.com/beautify-web/js-beautify/issues/646))
294
- * html-beautify formats handlebars comments but does not format html comments ([#635](https://github.com/beautify-web/js-beautify/issues/635))
295
- * Support for ES7 async ([#630](https://github.com/beautify-web/js-beautify/issues/630))
296
- * css beautify adding an extra newline after a comment line in a css block ([#609](https://github.com/beautify-web/js-beautify/issues/609))
297
- * No option to "Indent with tabs" for HTML files ([#587](https://github.com/beautify-web/js-beautify/issues/587))
298
- * Function body is indented when followed by a comment ([#583](https://github.com/beautify-web/js-beautify/issues/583))
299
- * JSX support ([#425](https://github.com/beautify-web/js-beautify/issues/425))
300
- * Alternative Newline Characters ([#260](https://github.com/beautify-web/js-beautify/issues/260))
301
300
 
302
301
 
303
302
  ## v1.5.5
@@ -310,21 +309,6 @@ Version jump due to release script tweaks
310
309
  * General bug fixing
311
310
 
312
311
  ### Closed Issues
313
- * Add GUI support for `--indent-inner-html`. ([#633](https://github.com/beautify-web/js-beautify/pull/633))
314
- * Publish v1.5.5 ([#629](https://github.com/beautify-web/js-beautify/issues/629))
315
- * CSS: Updating the documentation for the 'newline_between_rules' ([#615](https://github.com/beautify-web/js-beautify/pull/615))
316
- * Equal Sign Removed from Filter Properties Alpha Opacity Assignment ([#599](https://github.com/beautify-web/js-beautify/issues/599))
317
- * Keep trailing spaces on comments ([#598](https://github.com/beautify-web/js-beautify/issues/598))
318
- * only print the file names of changed files ([#597](https://github.com/beautify-web/js-beautify/issues/597))
319
- * CSS: support add newline between rules ([#574](https://github.com/beautify-web/js-beautify/pull/574))
320
- * elem[array]++ changes to elem[array] ++ inserting unnecessary gap ([#570](https://github.com/beautify-web/js-beautify/issues/570))
321
- * add support to less functions paramters braces ([#568](https://github.com/beautify-web/js-beautify/pull/568))
322
- * selector_separator_newline: true for Sass doesn't work ([#563](https://github.com/beautify-web/js-beautify/issues/563))
323
- * yield statements are being beautified to their own newlines since 1.5.2 ([#560](https://github.com/beautify-web/js-beautify/issues/560))
324
- * HTML beautifier inserts extra newline into `<li>`s ending with `<code>` ([#524](https://github.com/beautify-web/js-beautify/issues/524))
325
- * Add wrap_attributes option ([#476](https://github.com/beautify-web/js-beautify/issues/476))
326
- * Add or preserve empty line between CSS rules ([#467](https://github.com/beautify-web/js-beautify/issues/467))
327
- * Support comma first style of variable declaration ([#245](https://github.com/beautify-web/js-beautify/issues/245))
328
312
 
329
313
 
330
314
  ## v1.5.4
@@ -336,12 +320,6 @@ Version jump due to release script tweaks
336
320
  https://github.com/beautify-web/js-beautify/compare/v1.5.3...v1.5.4
337
321
 
338
322
  ### Closed Issues
339
- * TypeScript oddly formatted with 1.5.3 ([#552](https://github.com/beautify-web/js-beautify/issues/552))
340
- * HTML beautifier inserts double spaces between adjacent tags ([#525](https://github.com/beautify-web/js-beautify/issues/525))
341
- * Keep space in font rule ([#491](https://github.com/beautify-web/js-beautify/issues/491))
342
- * [Brackets plug in] Space after </a> disappears ([#454](https://github.com/beautify-web/js-beautify/issues/454))
343
- * Support nested pseudo-classes and parent reference (LESS) ([#427](https://github.com/beautify-web/js-beautify/pull/427))
344
- * Alternate approach: preserve single spacing and treat img as inline element ([#415](https://github.com/beautify-web/js-beautify/pull/415))
345
323
 
346
324
 
347
325
  ## v1.5.3
@@ -354,20 +332,6 @@ https://github.com/beautify-web/js-beautify/compare/v1.5.3...v1.5.4
354
332
  https://github.com/beautify-web/js-beautify/compare/v1.5.2...v1.5.3
355
333
 
356
334
  ### Closed Issues
357
- * [TypeError: Cannot read property 'type' of undefined] ([#548](https://github.com/beautify-web/js-beautify/issues/548))
358
- * Bug with RegExp ([#547](https://github.com/beautify-web/js-beautify/issues/547))
359
- * Odd behaviour on less ([#520](https://github.com/beautify-web/js-beautify/issues/520))
360
- * css beauitify ([#506](https://github.com/beautify-web/js-beautify/issues/506))
361
- * Extra space after scss pseudo classes. ([#500](https://github.com/beautify-web/js-beautify/issues/500))
362
- * Generates invalid scss when formatting ampersand selectors ([#498](https://github.com/beautify-web/js-beautify/issues/498))
363
- * bad formatting of .less files using @variable or &:hover syntax ([#489](https://github.com/beautify-web/js-beautify/issues/489))
364
- * Incorrect beautifying of CSS comment including an url. ([#466](https://github.com/beautify-web/js-beautify/issues/466))
365
- * Handle SASS parent reference &: ([#414](https://github.com/beautify-web/js-beautify/issues/414))
366
- * Js-beautify breaking selectors in less code. ([#410](https://github.com/beautify-web/js-beautify/issues/410))
367
- * Problem with "content" ([#364](https://github.com/beautify-web/js-beautify/issues/364))
368
- * Space gets inserted between function and paren for function in Define ([#313](https://github.com/beautify-web/js-beautify/issues/313))
369
- * beautify-html returns null on broken html ([#301](https://github.com/beautify-web/js-beautify/issues/301))
370
- * Indentation of functions inside conditionals not passing jslint ([#298](https://github.com/beautify-web/js-beautify/issues/298))
371
335
 
372
336
 
373
337
  ## v1.5.2
@@ -391,36 +355,6 @@ https://github.com/beautify-web/js-beautify/compare/v1.5.2...v1.5.3
391
355
  https://github.com/beautify-web/js-beautify/compare/v1.5.1...v1.5.2
392
356
 
393
357
  ### Closed Issues
394
- * Allow custom elements to be unformatted ([#540](https://github.com/beautify-web/js-beautify/pull/540))
395
- * Need option to ignore brace style ([#538](https://github.com/beautify-web/js-beautify/issues/538))
396
- * Refactor to Output and OutputLine classes ([#536](https://github.com/beautify-web/js-beautify/pull/536))
397
- * Recognize ObjectLiteral on open brace ([#535](https://github.com/beautify-web/js-beautify/pull/535))
398
- * Refactor to fully tokenize before formatting ([#530](https://github.com/beautify-web/js-beautify/pull/530))
399
- * Cleanup checked in six.py file ([#527](https://github.com/beautify-web/js-beautify/pull/527))
400
- * Changelog.md? ([#526](https://github.com/beautify-web/js-beautify/issues/526))
401
- * New line added between each css declaration ([#523](https://github.com/beautify-web/js-beautify/issues/523))
402
- * Kendo Template scripts get messed up! ([#516](https://github.com/beautify-web/js-beautify/issues/516))
403
- * SyntaxError: Unexpected token ++ ([#514](https://github.com/beautify-web/js-beautify/issues/514))
404
- * space appears before open square bracket when the object name is "set" ([#508](https://github.com/beautify-web/js-beautify/issues/508))
405
- * Unclosed string problem ([#505](https://github.com/beautify-web/js-beautify/issues/505))
406
- * "--n" and "++n" are not indented like "n--" and "n++" are... ([#495](https://github.com/beautify-web/js-beautify/issues/495))
407
- * Allow `<style>` and `<script>` tags to be unformatted ([#494](https://github.com/beautify-web/js-beautify/pull/494))
408
- * Preserve new line at end of file ([#492](https://github.com/beautify-web/js-beautify/issues/492))
409
- * Line wraps breaking numbers (causes syntax error) ([#488](https://github.com/beautify-web/js-beautify/issues/488))
410
- * jsBeautify acts differently when handling different kinds of function expressions ([#485](https://github.com/beautify-web/js-beautify/issues/485))
411
- * AttributeError: 'NoneType' object has no attribute 'groups' ([#479](https://github.com/beautify-web/js-beautify/issues/479))
412
- * installation doco for python need update -- pip install six? ([#478](https://github.com/beautify-web/js-beautify/issues/478))
413
- * Move einars/js-beautify to beautify-web/js-beautify ([#475](https://github.com/beautify-web/js-beautify/issues/475))
414
- * Bring back space_after_anon_function ([#474](https://github.com/beautify-web/js-beautify/pull/474))
415
- * fix for #453, Incompatible handlebar syntax ([#468](https://github.com/beautify-web/js-beautify/pull/468))
416
- * Python: missing explicit dependency on "six" package ([#465](https://github.com/beautify-web/js-beautify/issues/465))
417
- * function declaration inside array, adds extra line. ([#464](https://github.com/beautify-web/js-beautify/issues/464))
418
- * [es6] yield a array ([#458](https://github.com/beautify-web/js-beautify/issues/458))
419
- * Publish v1.5.2 ([#452](https://github.com/beautify-web/js-beautify/issues/452))
420
- * Port css colon character fix to python ([#446](https://github.com/beautify-web/js-beautify/issues/446))
421
- * Cannot declare object literal properties with unquoted reserved words ([#440](https://github.com/beautify-web/js-beautify/issues/440))
422
- * Do not put a space within `function*` generator functions. ([#428](https://github.com/beautify-web/js-beautify/issues/428))
423
- * beautification of "nth-child" css fails csslint ([#418](https://github.com/beautify-web/js-beautify/issues/418))
424
358
 
425
359
 
426
360
  ## v1.5.1
@@ -439,104 +373,5 @@ Highlights:
439
373
  https://github.com/einars/js-beautify/compare/v1.4.2...v1.5.1
440
374
 
441
375
  ### Closed Issues
442
- * Nested if statements not displayed correctly ([#450](https://github.com/beautify-web/js-beautify/issues/450))
443
- * preserve_newlines always true ([#449](https://github.com/beautify-web/js-beautify/issues/449))
444
- * line wrapping breaks in weird places ([#438](https://github.com/beautify-web/js-beautify/issues/438))
445
- * Update dependencies to current versions ([#437](https://github.com/beautify-web/js-beautify/pull/437))
446
- * Add support for ES6 template strings ([#434](https://github.com/beautify-web/js-beautify/pull/434))
447
- * Fix #402: support ES6 fat arrow ([#433](https://github.com/beautify-web/js-beautify/pull/433))
448
- * Ending brace missaligned when part of first definition in var line ([#430](https://github.com/beautify-web/js-beautify/issues/430))
449
- * fixing disabled line wrapping for HTML ([#429](https://github.com/beautify-web/js-beautify/pull/429))
450
- * Missing semi colon ([#420](https://github.com/beautify-web/js-beautify/issues/420))
451
- * Fixed require.js support ([#416](https://github.com/beautify-web/js-beautify/pull/416))
452
- * should not split the es6 operator '=>' ([#402](https://github.com/beautify-web/js-beautify/issues/402))
453
- * fixed relative paths for require.js ([#387](https://github.com/beautify-web/js-beautify/pull/387))
454
- * Support reserved words as property names ([#378](https://github.com/beautify-web/js-beautify/issues/378))
455
- * Make the AMD API match the rest of the APIs ([#376](https://github.com/beautify-web/js-beautify/pull/376))
456
- * Preserve newlines in html related to issue #307 ([#375](https://github.com/beautify-web/js-beautify/pull/375))
457
- * Multi-line statements ([#374](https://github.com/beautify-web/js-beautify/issues/374))
458
- * Reserved words used as property/function/variable identifiers are formatted incorrectly ([#368](https://github.com/beautify-web/js-beautify/issues/368))
459
- * fixed problems with colon character ([#363](https://github.com/beautify-web/js-beautify/pull/363))
460
- * require.JS paths are hardcoded in beautify-html.js ([#359](https://github.com/beautify-web/js-beautify/issues/359))
461
- * Regression in p.a.c.ked file detection ([#357](https://github.com/beautify-web/js-beautify/issues/357))
462
- * Fix Issue #339 ([#354](https://github.com/beautify-web/js-beautify/pull/354))
463
- * Added single line comment support in less/sass for javascript parser ([#353](https://github.com/beautify-web/js-beautify/pull/353))
464
- * Function named 'in' not formatting correctly ([#351](https://github.com/beautify-web/js-beautify/issues/351))
465
- * CSS Pseudo element ([#346](https://github.com/beautify-web/js-beautify/issues/346))
466
- * array closing brace error for return statements with keep_array_indentation ([#340](https://github.com/beautify-web/js-beautify/issues/340))
467
- * CSS Beautifier: breaks :before and :after (regression) ([#339](https://github.com/beautify-web/js-beautify/issues/339))
468
- * Publish v1.5.0 ([#335](https://github.com/beautify-web/js-beautify/issues/335))
469
- * "keep array indentation" not working ([#333](https://github.com/beautify-web/js-beautify/issues/333))
470
- * CSS Beautifier: support LESS/SASS line comments ([#326](https://github.com/beautify-web/js-beautify/issues/326))
471
- * Incorrect formating with semicolon-less code ([#323](https://github.com/beautify-web/js-beautify/issues/323))
472
-
473
-
474
- ## v1.4.2
475
-
476
- ### Description
477
- Release quick fix for python errno error that has started being more heavily reported
478
- Initial release of css beautifier ported to python
479
- Additional minor fixes and enhancements
480
-
481
-
482
-
483
- ### Closed Issues
484
- * global name 'errno' is not defined ([#352](https://github.com/beautify-web/js-beautify/issues/352))
485
- * import errno for errno.EEXIST ([#349](https://github.com/beautify-web/js-beautify/pull/349))
486
- * Added bower.json ([#343](https://github.com/beautify-web/js-beautify/pull/343))
487
- * HTML wrap-line-length: 0 doesn't work ([#342](https://github.com/beautify-web/js-beautify/issues/342))
488
- * Make beautify.js, beautify-html.js, beautify-css.js available in bower ([#341](https://github.com/beautify-web/js-beautify/issues/341))
489
- * Making .jsbeautifyrc resolve work (in general and for Windows re home dir) ([#334](https://github.com/beautify-web/js-beautify/pull/334))
490
- * windows 8 error: path.js:204 throw new TypeError('Arguments to path.join must be strings'); ([#300](https://github.com/beautify-web/js-beautify/issues/300))
491
- * Port beautify-css to python ([#204](https://github.com/beautify-web/js-beautify/issues/204))
492
-
493
-
494
- ## v1.4.1
495
-
496
- ### Description
497
- Incremental fixes and improvements
498
-
499
-
500
- ### Closed Issues
501
- * Tests borked when running from web ([#332](https://github.com/beautify-web/js-beautify/issues/332))
502
- * wrap_line_length isn't enforced for property values ([#331](https://github.com/beautify-web/js-beautify/issues/331))
503
- * Have no empty line between comment and function ([#329](https://github.com/beautify-web/js-beautify/issues/329))
504
- * Add new line at the end of the file (html-beautify) ([#325](https://github.com/beautify-web/js-beautify/issues/325))
505
- * Space in empty parentheses ([#322](https://github.com/beautify-web/js-beautify/pull/322))
506
- * Handlebars ([#321](https://github.com/beautify-web/js-beautify/pull/321))
507
- * Space in empty parentheses ([#320](https://github.com/beautify-web/js-beautify/issues/320))
508
- * The indent_with_tabs option did not work when required in node, only CLI. ([#319](https://github.com/beautify-web/js-beautify/pull/319))
509
- * add option to indent "inner HTML"... ([#312](https://github.com/beautify-web/js-beautify/pull/312))
510
- * Wrong format of HTML textnode containing multipe words ([#306](https://github.com/beautify-web/js-beautify/issues/306))
511
- * Repair to work in windows ([#304](https://github.com/beautify-web/js-beautify/pull/304))
512
- * make export object the same with common and amd methods ([#303](https://github.com/beautify-web/js-beautify/pull/303))
513
- * jshint cleanup and make require.js optimizable ([#302](https://github.com/beautify-web/js-beautify/pull/302))
514
- * E4X xml-literal allowed xml-characters ([#294](https://github.com/beautify-web/js-beautify/pull/294))
515
- * Publish 1.4.1 ([#292](https://github.com/beautify-web/js-beautify/issues/292))
516
- * Blank line inserted between function and preceding comment ([#291](https://github.com/beautify-web/js-beautify/issues/291))
517
- * Add tests for beautify-html.js ([#211](https://github.com/beautify-web/js-beautify/issues/211))
518
-
519
-
520
- ## v1.4.0
521
-
522
- ### Description
523
- Given the breadth of the changes in the code and api, bump to 1.4.0 for the next release.
524
-
525
- https://github.com/einars/js-beautify/compare/v1.3.4...v1.4.0
526
-
527
- ### Closed Issues
528
- * Fix major performance degradation from minimal indenting ([#288](https://github.com/beautify-web/js-beautify/issues/288))
529
- * Minimal indenting ([#286](https://github.com/beautify-web/js-beautify/pull/286))
530
- * Empty lines are removed in HTML and CSS, and also adds trailing spaces ([#285](https://github.com/beautify-web/js-beautify/issues/285))
531
- * npmjs cli options incomplete ([#283](https://github.com/beautify-web/js-beautify/issues/283))
532
- * Publish 1.4.0 ([#282](https://github.com/beautify-web/js-beautify/issues/282))
533
- * Blocks, arrays, and expressions over indented ([#281](https://github.com/beautify-web/js-beautify/issues/281))
534
- * Keeping New lines inside markup ([#280](https://github.com/beautify-web/js-beautify/issues/280))
535
- * E4X xml-literal small fixes ([#279](https://github.com/beautify-web/js-beautify/pull/279))
536
- * Add support for Asynchronous Module Definition (AMD) API ([#274](https://github.com/beautify-web/js-beautify/pull/274))
537
- * fixed broken run tests script ([#255](https://github.com/beautify-web/js-beautify/pull/255))
538
- * Ending parenthesis in function call ([#239](https://github.com/beautify-web/js-beautify/issues/239))
539
- * Preventing line breaks around Unformatted tags ([#105](https://github.com/beautify-web/js-beautify/issues/105))
540
- * IE conditional HTML comments don't play well with the rest of the document ([#91](https://github.com/beautify-web/js-beautify/issues/91))
541
376
 
542
377
 
package/README.md CHANGED
@@ -21,17 +21,17 @@ JS Beautifier is hosted on two CDN services: [cdnjs](https://cdnjs.com/libraries
21
21
 
22
22
  To pull from one of these services include one set of the script tags below in your document:
23
23
  ```html
24
- <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.6.14/beautify.js"></script>
25
- <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.6.14/beautify-css.js"></script>
26
- <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.6.14/beautify-html.js"></script>
24
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.7.3/beautify.js"></script>
25
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.7.3/beautify-css.js"></script>
26
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.7.3/beautify-html.js"></script>
27
27
 
28
- <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.6.14/beautify.min.js"></script>
29
- <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.6.14/beautify-css.min.js"></script>
30
- <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.6.14/beautify-html.min.js"></script>
28
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.7.3/beautify.min.js"></script>
29
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.7.3/beautify-css.min.js"></script>
30
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.7.3/beautify-html.min.js"></script>
31
31
 
32
- <script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.6.14/js/lib/beautify.js"></script>
33
- <script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.6.14/js/lib/beautify-css.js"></script>
34
- <script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.6.14/js/lib/beautify-html.js"></script>
32
+ <script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.7.3/js/lib/beautify.js"></script>
33
+ <script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.7.3/js/lib/beautify-css.js"></script>
34
+ <script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.7.3/js/lib/beautify-html.js"></script>
35
35
  ```
36
36
  Disclaimer: These are free services, so there are [no uptime or support guarantees](https://github.com/rgrove/rawgit/wiki/Frequently-Asked-Questions#i-need-guaranteed-100-uptime-should-i-use-cdnrawgitcom).
37
37
 
@@ -122,6 +122,7 @@ Beautifier Options:
122
122
  -j, --jslint-happy Enable jslint-stricter mode
123
123
  -a, --space-after-anon-function Add a space before an anonymous function's parens, ie. function ()
124
124
  -b, --brace-style [collapse|expand|end-expand|none][,preserve-inline] [collapse,preserve-inline]
125
+ -u, --unindent-chained-methods Don't indent chained method calls
125
126
  -B, --break-chained-methods Break chained method calls across subsequent lines
126
127
  -k, --keep-array-indentation Preserve array indentation
127
128
  -x, --unescape-strings Decode printable characters encoded in xNN notation
@@ -150,6 +151,7 @@ Which correspond to the underscored option keys for both library interfaces
150
151
  "jslint_happy": false,
151
152
  "space_after_anon_function": false,
152
153
  "brace_style": "collapse",
154
+ "unindent_chained_methods": false,
153
155
  "break_chained_methods": false,
154
156
  "keep_array_indentation": false,
155
157
  "unescape_strings": false,
@@ -316,4 +318,4 @@ Thanks also to Jason Diamond, Patrick Hof, Nochum Sossonko, Andreas Schneider, D
316
318
  Vasilevsky, Vital Batmanov, Ron Baldwin, Gabriel Harrison, Chris J. Shull,
317
319
  Mathias Bynens, Vittorio Gambaletta and others.
318
320
 
319
- (README.md: js-beautify@1.6.14)
321
+ (README.md: js-beautify@1.7.3)