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
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
By default the wrap is soft, meaning long words may extend past the column width. Setting this to `true` will make it hard wrap at the column width.
56
53
57
54
##### wordWrap
58
55
59
-
Type: `boolean`<br>
56
+
Type: `boolean`\
60
57
Default: `true`
61
58
62
59
By default, an attempt is made to split words at spaces, ensuring that they don't extend past the configured columns. If wordWrap is `false`, each column will instead be completely filled splitting words as necessary.
63
60
64
61
##### trim
65
62
66
-
Type: `boolean`<br>
63
+
Type: `boolean`\
67
64
Default: `true`
68
65
69
66
Whitespace on all lines is removed by default. Set this option to `false` if you don't want to trim.
70
67
71
-
72
68
## Related
73
69
74
70
-[slice-ansi](https://github.com/chalk/slice-ansi) - Slice a string with ANSI escape codes
75
71
-[cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal
76
72
-[chalk](https://github.com/chalk/chalk) - Terminal string styling done right
77
73
-[jsesc](https://github.com/mathiasbynens/jsesc) - Generate ASCII-only output from Unicode strings. Useful for creating test fixtures.
0 commit comments