From 62ef0dc4b8530720766779faa6da9021be254289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Lui=20=E5=88=98=E5=B1=95=E9=B9=8F?= Date: Fri, 12 Apr 2024 06:14:24 -0700 Subject: [PATCH] Added newline descriptions to comments option in API/CLI --- docs/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/README.md b/docs/README.md index 3f4dc6b..1ed7bd4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -115,7 +115,7 @@ Boolean options: -q, --quiet Suppress all logging except errors. Parameter options: - --comment="comment" Prepend comment to minified code. + --comment="comment" Prepend comment to minified code. Separate by line using '\n'. Info commands: -h, --help Display help screen. @@ -182,14 +182,14 @@ minifyJS.minify(input, { dotFiles: true }); Available parameters (and their default settings) are: -Name | Type | Desciption | Default value --------------|---------|---------------------------------------------------------|--------------- -`recursive` | Boolean | Recursively search for nested files if dir path passed. | `true` -`verbose` | Boolean | Show logging in console/terminal. | `true` -`dotFolders` | Boolean | Include dotfolders in file search. | `false` -`dotFiles` | Boolean | Include dotfiles in file search. | `false` -`mangle` | Boolean | Shorten variable names (typically to one character). | `true` -`comment` | String | Comment to prepend to minified code. | `''` +Name | Type | Desciption | Default value +-------------|---------|-------------------------------------------------------------------|--------------- +`recursive` | Boolean | Recursively search for nested files if dir path passed. | `true` +`verbose` | Boolean | Show logging in console/terminal. | `true` +`dotFolders` | Boolean | Include dotfolders in file search. | `false` +`dotFiles` | Boolean | Include dotfiles in file search. | `false` +`mangle` | Boolean | Shorten variable names (typically to one character). | `true` +`comment` | String | Comment to prepend to minified code. Separate by line using '\n'. | `''` #