You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -141,7 +141,7 @@ To use `js-beautify` as a `node` library (after install locally), import and cal
141
141
The configuration option names are the same as the CLI names but with underscores instead of dashes. For example, `--indent-size 2 --space-in-empty-paren` would be `{ indent_size: 2, space_in_empty_paren: true }`.
142
142
143
143
```js
144
-
var beautify =require('js-beautify').js,
144
+
var beautify =require('js-beautify/js').js,
145
145
fs =require('fs');
146
146
147
147
fs.readFile('foo.js', 'utf8', function (err, data) {
-w, --wrap-line-length Maximum characters per line (0 disables) [250]
370
370
-A, --wrap-attributes Wrap attributes to new lines [auto|force|force-aligned|force-expand-multiline|aligned-multiple|preserve|preserve-aligned] ["auto"]
371
+
-M, --wrap-attributes-min-attrs Minimum number of html tag attributes for force wrap attribute options [2]
371
372
-i, --wrap-attributes-indent-size Indent wrapped attributes to after N characters [indent-size] (ignored if wrap-attributes is "aligned")
372
373
-d, --inline List of tags to be considered inline tags
373
374
-U, --unformatted List of tags (defaults to inline) that should not be reformatted
@@ -432,4 +433,4 @@ Thanks also to Jason Diamond, Patrick Hof, Nochum Sossonko, Andreas Schneider, D
432
433
Vasilevsky, Vital Batmanov, Ron Baldwin, Gabriel Harrison, Chris J. Shull,
msg.push(' -w, --wrap-line-length Wrap lines that exceed N characters [0]');
397
399
msg.push(' -A, --wrap-attributes Wrap html tag attributes to new lines [auto|force|force-aligned|force-expand-multiline|aligned-multiple|preserve|preserve-aligned] ["auto"]');
400
+
msg.push(' -M, --wrap-attributes-min-attrs Minimum number of html tag attributes for force wrap attribute options [2]');
398
401
msg.push(' -i, --wrap-attributes-indent-size Indent wrapped tags to after N characters [indent-level]');
// An li element’s end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element.
// A dd element’s end tag may be omitted if the dd element is immediately followed by another dd element or a dt element, or if there is no more content in the parent element.
0 commit comments