smartwrap @2.0.1
MIT
License
No
Install Scripts
6
Dependencies
7
Dev Dependencies
16.4 KB
Package Size
Published
Textwrap for javascript/nodejs. Correctly handles wide characters (åŪ―åįŽĶ) and emojis (ð). Wraps strings with option to break on words.
Maintainers
tecfu
Keywords
wordwrap
Dependencies (6)
| Package | Constraint | Registry Status |
|---|---|---|
| yargs | ^15.1.0 | auto_approved |
| wcwidth | ^1.0.1 | auto_approved |
| breakword | ^1.0.5 | auto_approved |
| strip-ansi | ^6.0.0 | auto_approved |
| grapheme-splitter | ^1.0.4 | auto_approved |
| array.prototype.flat | ^1.2.3 | auto_approved |
Dev Dependencies (7)
| Package | Constraint | Registry Status |
|---|---|---|
| chai | ^4.2.0 | auto_approved |
| grunt | ^1.0.4 | auto_approved |
| husky | ^4.2.3 | auto_approved |
| mocha | ^5.2.0 | auto_approved |
| eslint | ^6.6.0 | auto_approved |
| grunt-cli | ^1.3.2 | auto_approved |
| grunt-mocha-test | ^0.13.3 | Not imported |
Transitive Dependency Tree
113 transitive deps
max depth 10
├─
array.prototype.flat
^1.2.3
â 1.3.3
├─
breakword
^1.0.5
â 1.0.6
├─
grapheme-splitter
^1.0.4
â 1.0.4
├─
strip-ansi
^6.0.0
â 6.0.1
├─
wcwidth
^1.0.1
â 1.0.1
├─
yargs
^15.1.0
â 15.4.1
├─
ansi-regex
^5.0.1
â 5.0.1
├─
call-bind
^1.0.8
â 1.0.9
├─
cliui
^6.0.0
â 6.0.0
├─
decamelize
^1.2.0
â 1.2.0
├─
defaults
^1.0.3
â 1.0.4
├─
define-properties
^1.2.1
â 1.2.1
├─
es-abstract
^1.23.5
â 1.24.2
├─
es-shim-unscopables
^1.0.2
â 1.1.0
├─
find-up
^4.1.0
├─
get-caller-file
^2.0.1
â 2.0.5
├─
require-directory
^2.1.1
â 2.1.1
├─
require-main-filename
^2.0.0
â 2.0.0
├─
set-blocking
^2.0.0
â 2.0.0
├─
string-width
^4.2.0
â 4.2.3
├─
wcwidth
^1.0.1
â 1.0.1
├─
which-module
^2.0.0
â 2.0.1
├─
y18n
^4.0.0
├─
yargs-parser
^18.1.2
â 18.1.3
├─
array-buffer-byte-length
^1.0.2
â 1.0.2
├─
arraybuffer.prototype.slice
^1.0.4
â 1.0.4
├─
available-typed-arrays
^1.0.7
â 1.0.7
├─
call-bind
^1.0.8
â 1.0.9
├─
call-bind-apply-helpers
^1.0.2
â 1.0.2
├─
call-bound
^1.0.4
â 1.0.4
├─
camelcase
^5.0.0
â 5.3.1
├─
clone
^1.0.2
â 1.0.4
├─
data-view-buffer
^1.0.2
â 1.0.2
├─
data-view-byte-length
^1.0.2
â 1.0.2
├─
data-view-byte-offset
^1.0.1
â 1.0.1
├─
decamelize
^1.2.0
â 1.2.0
├─
defaults
^1.0.3
â 1.0.4
├─
define-data-property
^1.0.1
├─
emoji-regex
^8.0.0
├─
es-define-property
^1.0.1
â 1.0.1
├─
es-errors
^1.3.0
â 1.3.0
├─
es-object-atoms
^1.1.1
â 1.1.1
├─
es-set-tostringtag
^2.1.0
â 2.1.0
├─
es-to-primitive
^1.3.0
â 1.3.0
├─
function.prototype.name
^1.1.8
â 1.1.8
├─
get-intrinsic
^1.3.0
â 1.3.1
├─
get-proto
^1.0.1
â 1.0.1
├─
get-symbol-description
^1.1.0
├─
globalthis
^1.0.4
â 1.0.4
├─
gopd
^1.2.0
├─
has-property-descriptors
^1.0.0
â 1.0.2
├─
has-property-descriptors
^1.0.2
â 1.0.2
├─
has-proto
^1.2.0
├─
has-symbols
^1.1.0
â 1.1.0
├─
hasown
^2.0.2
â 2.0.3
├─
internal-slot
^1.1.0
├─
is-array-buffer
^3.0.5
├─
is-callable
^1.2.7
â 1.2.7
├─
is-data-view
^1.0.2
├─
is-fullwidth-code-point
^3.0.0
├─
is-negative-zero
^2.0.3
├─
is-regex
^1.2.1
â 1.2.1
├─
is-set
^2.0.3
├─
is-shared-array-buffer
^1.0.4
├─
is-string
^1.1.1
├─
is-typed-array
^1.1.15
â 1.1.15
├─
is-weakref
^1.1.1
├─
math-intrinsics
^1.1.0
â 1.1.0
├─
object-inspect
^1.13.4
â 1.13.4
├─
object-keys
^1.1.1
â 1.1.1
├─
object.assign
^4.1.7
â 4.1.7
├─
own-keys
^1.0.1
â 1.0.1
├─
regexp.prototype.flags
^1.5.4
â 1.5.4
├─
safe-array-concat
^1.1.3
├─
safe-push-apply
^1.0.0
├─
safe-regex-test
^1.1.0
â 1.1.0
├─
set-function-length
^1.2.2
â 1.2.2
├─
set-proto
^1.0.0
├─
stop-iteration-iterator
^1.1.0
├─
string-width
^4.2.0
â 4.2.3
├─
string.prototype.trim
^1.2.10
â 1.2.10
├─
string.prototype.trimend
^1.0.9
â 1.0.9
├─
string.prototype.trimstart
^1.0.8
â 1.0.8
├─
strip-ansi
^6.0.0
â 6.0.1
├─
strip-ansi
^6.0.1
â 6.0.1
├─
typed-array-buffer
^1.0.3
â 1.0.3
├─
typed-array-byte-length
^1.0.3
â 1.0.3
├─
typed-array-byte-offset
^1.0.4
â 1.0.4
├─
typed-array-length
^1.0.7
â 1.0.7
├─
unbox-primitive
^1.1.0
â 1.1.0
├─
which-typed-array
^1.1.19
â 1.1.20
├─
wrap-ansi
^6.2.0
â 6.2.0
├─
ansi-regex
^5.0.1
â 5.0.1
├─
ansi-styles
^4.0.0
â 4.3.0
├─
array-buffer-byte-length
^1.0.1
â 1.0.2
├─
async-function
^1.0.0
├─
async-generator-function
^1.0.0
â 1.0.0
├─
available-typed-arrays
^1.0.7
â 1.0.7
├─
call-bind
^1.0.7
â 1.0.9
├─
call-bind
^1.0.8
â 1.0.9
├─
call-bind-apply-helpers
^1.0.2
â 1.0.2
├─
call-bound
^1.0.2
â 1.0.4
├─
call-bound
^1.0.3
â 1.0.4
├─
call-bound
^1.0.4
â 1.0.4
├─
clone
^1.0.2
â 1.0.4
├─
define-data-property
^1.1.4
├─
define-properties
^1.2.1
â 1.2.1
├─
dunder-proto
^1.0.1
â 1.0.1
├─
emoji-regex
^8.0.0
├─
es-define-property
^1.0.0
â 1.0.1
├─
es-define-property
^1.0.1
â 1.0.1
├─
es-errors
^1.3.0
â 1.3.0
├─
es-object-atoms
^1.0.0
â 1.1.1
├─
es-object-atoms
^1.1.1
â 1.1.1
├─
for-each
^0.3.3
â 0.3.5
├─
for-each
^0.3.5
â 0.3.5
├─
function-bind
^1.1.2
â 1.1.2
├─
functions-have-names
^1.2.3
├─
generator-function
^2.0.0
â 2.0.1
├─
get-intrinsic
^1.2.4
â 1.3.1
├─
get-intrinsic
^1.2.6
â 1.3.1
├─
get-intrinsic
^1.3.0
â 1.3.1
├─
get-proto
^1.0.1
â 1.0.1
├─
get-proto
^1.0.1
├─
gopd
^1.0.1
├─
gopd
^1.2.0
├─
has-bigints
^1.0.2
├─
has-property-descriptors
^1.0.2
â 1.0.2
├─
has-proto
^1.2.0
â 1.2.0
├─
has-symbols
^1.1.0
â 1.1.0
├─
has-tostringtag
^1.0.2
â 1.0.2
├─
hasown
^2.0.2
â 2.0.3
├─
is-array-buffer
^3.0.4
├─
is-array-buffer
^3.0.5
├─
is-callable
^1.2.7
â 1.2.7
├─
is-data-view
^1.0.1
├─
is-data-view
^1.0.2
├─
is-date-object
^1.0.5
├─
is-fullwidth-code-point
^3.0.0
├─
is-regex
^1.2.1
â 1.2.1
├─
is-symbol
^1.0.4
├─
is-typed-array
^1.1.13
â 1.1.15
├─
is-typed-array
^1.1.14
â 1.1.15
├─
is-typed-array
^1.1.14
├─
is-typed-array
^1.1.15
â 1.1.15
├─
math-intrinsics
^1.1.0
â 1.1.0
├─
object-keys
^1.1.1
â 1.1.1
├─
possible-typed-array-names
^1.0.0
â 1.1.0
├─
reflect.getprototypeof
^1.0.6
â 1.0.10
├─
reflect.getprototypeof
^1.0.9
â 1.0.10
├─
safe-push-apply
^1.0.0
├─
set-function-length
^1.2.2
â 1.2.2
├─
set-function-name
^2.0.2
â 2.0.2
├─
string-width
^4.1.0
â 4.2.3
├─
strip-ansi
^6.0.0
â 6.0.1
├─
strip-ansi
^6.0.1
â 6.0.1
├─
which-boxed-primitive
^1.1.1
â 1.1.1
├─
which-typed-array
^1.1.16
â 1.1.20
├─
ansi-regex
^5.0.1
â 5.0.1
├─
async-function
^1.0.0
├─
async-generator-function
^1.0.0
â 1.0.0
├─
available-typed-arrays
^1.0.7
â 1.0.7
├─
call-bind
^1.0.8
â 1.0.9
├─
call-bind-apply-helpers
^1.0.1
â 1.0.2
├─
call-bind-apply-helpers
^1.0.2
â 1.0.2
├─
call-bound
^1.0.2
â 1.0.4
├─
call-bound
^1.0.3
â 1.0.4
├─
call-bound
^1.0.4
â 1.0.4
├─
color-convert
^2.0.1
├─
define-data-property
^1.0.1
├─
define-data-property
^1.1.4
├─
define-properties
^1.2.1
â 1.2.1
├─
dunder-proto
^1.0.0
â 1.0.1
├─
dunder-proto
^1.0.1
â 1.0.1
├─
emoji-regex
^8.0.0
├─
es-define-property
^1.0.0
â 1.0.1
├─
es-define-property
^1.0.1
â 1.0.1
├─
es-errors
^1.3.0
â 1.3.0
├─
es-object-atoms
^1.0.0
â 1.1.1
├─
es-object-atoms
^1.1.1
â 1.1.1
├─
for-each
^0.3.5
â 0.3.5
├─
function-bind
^1.1.2
â 1.1.2
├─
functions-have-names
^1.2.3
â 1.2.3
├─
generator-function
^2.0.0
â 2.0.1
├─
get-intrinsic
^1.2.4
â 1.3.1
├─
get-intrinsic
^1.2.7
â 1.3.1
├─
get-intrinsic
^1.3.0
â 1.3.1
├─
get-proto
^1.0.1
â 1.0.1
├─
get-proto
^1.0.1
├─
gopd
^1.0.1
├─
gopd
^1.2.0
├─
has-property-descriptors
^1.0.0
â 1.0.2
├─
has-property-descriptors
^1.0.2
â 1.0.2
├─
has-symbols
^1.0.3
â 1.1.0
├─
has-symbols
^1.1.0
â 1.1.0
├─
has-tostringtag
^1.0.2
â 1.0.2
├─
hasown
^2.0.2
â 2.0.3
├─
is-array-buffer
^3.0.5
├─
is-bigint
^1.1.0
├─
is-boolean-object
^1.2.1
├─
is-callable
^1.2.7
â 1.2.7
├─
is-fullwidth-code-point
^3.0.0
├─
is-number-object
^1.1.1
├─
is-string
^1.1.1
â 1.1.1
├─
is-symbol
^1.1.1
â 1.1.1
├─
math-intrinsics
^1.1.0
â 1.1.0
├─
object-keys
^1.1.1
â 1.1.1
├─
possible-typed-array-names
^1.0.0
â 1.1.0
├─
set-function-length
^1.2.2
â 1.2.2
├─
strip-ansi
^6.0.1
â 6.0.1
├─
which-builtin-type
^1.2.1
â 1.2.1
├─
which-typed-array
^1.1.16
â 1.1.20
├─
ansi-regex
^5.0.1
â 5.0.1
├─
async-function
^1.0.0
├─
async-generator-function
^1.0.0
â 1.0.0
├─
available-typed-arrays
^1.0.7
â 1.0.7
├─
call-bind
^1.0.8
â 1.0.9
├─
call-bind-apply-helpers
^1.0.1
â 1.0.2
├─
call-bind-apply-helpers
^1.0.2
â 1.0.2
├─
call-bound
^1.0.2
â 1.0.4
├─
call-bound
^1.0.3
â 1.0.4
├─
call-bound
^1.0.4
â 1.0.4
├─
define-data-property
^1.0.1
├─
define-data-property
^1.1.4
├─
dunder-proto
^1.0.1
â 1.0.1
├─
es-define-property
^1.0.0
â 1.0.1
├─
es-define-property
^1.0.1
â 1.0.1
├─
es-errors
^1.3.0
â 1.3.0
├─
es-object-atoms
^1.0.0
â 1.1.1
├─
es-object-atoms
^1.1.1
â 1.1.1
├─
for-each
^0.3.5
â 0.3.5
├─
function-bind
^1.1.2
â 1.1.2
├─
function.prototype.name
^1.1.6
â 1.1.8
├─
generator-function
^2.0.0
â 2.0.1
├─
get-intrinsic
^1.2.4
â 1.3.1
├─
get-intrinsic
^1.3.0
â 1.3.1
├─
get-proto
^1.0.1
â 1.0.1
├─
get-proto
^1.0.1
├─
gopd
^1.0.1
├─
gopd
^1.2.0
├─
has-property-descriptors
^1.0.0
â 1.0.2
├─
has-property-descriptors
^1.0.2
â 1.0.2
├─
has-symbols
^1.0.3
â 1.1.0
├─
has-symbols
^1.1.0
â 1.1.0
├─
has-tostringtag
^1.0.2
â 1.0.2
├─
hasown
^2.0.2
â 2.0.3
├─
is-async-function
^2.0.0
â 2.1.1
├─
is-callable
^1.2.7
â 1.2.7
├─
is-date-object
^1.1.0
â 1.1.0
├─
is-finalizationregistry
^1.1.0
├─
is-generator-function
^1.0.10
â 1.1.2
├─
is-regex
^1.2.1
â 1.2.1
├─
is-weakref
^1.0.2
â 1.1.1
├─
isarray
^2.0.5
â 2.0.5
├─
math-intrinsics
^1.1.0
â 1.1.0
├─
object-keys
^1.1.1
â 1.1.1
├─
possible-typed-array-names
^1.0.0
â 1.1.0
├─
safe-regex-test
^1.1.0
â 1.1.0
├─
set-function-length
^1.2.2
â 1.2.2
├─
which-boxed-primitive
^1.1.0
â 1.1.1
├─
which-collection
^1.0.2
â 1.0.2
├─
which-typed-array
^1.1.16
â 1.1.20
├─
async-function
^1.0.0
├─
async-generator-function
^1.0.0
â 1.0.0
├─
available-typed-arrays
^1.0.7
â 1.0.7
├─
call-bind
^1.0.8
â 1.0.9
├─
call-bind-apply-helpers
^1.0.1
â 1.0.2
├─
call-bind-apply-helpers
^1.0.2
â 1.0.2
├─
call-bound
^1.0.2
â 1.0.4
├─
call-bound
^1.0.3
â 1.0.4
├─
call-bound
^1.0.4
â 1.0.4
├─
define-data-property
^1.1.4
├─
define-properties
^1.2.1
â 1.2.1
├─
dunder-proto
^1.0.1
â 1.0.1
├─
es-define-property
^1.0.0
â 1.0.1
├─
es-define-property
^1.0.1
â 1.0.1
├─
es-errors
^1.3.0
â 1.3.0
├─
es-object-atoms
^1.0.0
â 1.1.1
├─
es-object-atoms
^1.1.1
â 1.1.1
├─
for-each
^0.3.5
â 0.3.5
├─
function-bind
^1.1.2
â 1.1.2
├─
functions-have-names
^1.2.3
├─
generator-function
^2.0.0
â 2.0.1
├─
get-intrinsic
^1.2.4
â 1.3.1
├─
get-intrinsic
^1.3.0
â 1.3.1
├─
get-proto
^1.0.1
â 1.0.1
├─
get-proto
^1.0.1
├─
gopd
^1.0.1
├─
gopd
^1.2.0
├─
has-property-descriptors
^1.0.2
â 1.0.2
├─
has-symbols
^1.0.3
â 1.1.0
├─
has-symbols
^1.1.0
â 1.1.0
├─
has-tostringtag
^1.0.2
â 1.0.2
├─
hasown
^2.0.2
â 2.0.3
├─
is-bigint
^1.1.0
├─
is-boolean-object
^1.2.1
├─
is-callable
^1.2.7
â 1.2.7
├─
is-map
^2.0.3
├─
is-number-object
^1.1.1
├─
is-regex
^1.2.1
â 1.2.1
├─
is-set
^2.0.3
â 2.0.3
├─
is-string
^1.1.1
â 1.1.1
├─
is-symbol
^1.1.1
â 1.1.1
├─
is-weakmap
^2.0.2
├─
is-weakset
^2.0.3
├─
math-intrinsics
^1.1.0
â 1.1.0
├─
possible-typed-array-names
^1.0.0
â 1.1.0
├─
safe-regex-test
^1.1.0
â 1.1.0
├─
set-function-length
^1.2.2
â 1.2.2
├─
async-function
^1.0.0
├─
async-generator-function
^1.0.0
â 1.0.0
├─
call-bind-apply-helpers
^1.0.1
â 1.0.2
├─
call-bind-apply-helpers
^1.0.2
â 1.0.2
├─
call-bound
^1.0.2
â 1.0.4
├─
call-bound
^1.0.3
â 1.0.4
├─
define-data-property
^1.0.1
├─
define-data-property
^1.1.4
├─
dunder-proto
^1.0.1
â 1.0.1
├─
es-define-property
^1.0.0
â 1.0.1
├─
es-define-property
^1.0.1
â 1.0.1
├─
es-errors
^1.3.0
â 1.3.0
├─
es-object-atoms
^1.0.0
â 1.1.1
├─
es-object-atoms
^1.1.1
â 1.1.1
├─
function-bind
^1.1.2
â 1.1.2
├─
generator-function
^2.0.0
â 2.0.1
├─
get-intrinsic
^1.2.4
â 1.3.1
├─
get-intrinsic
^1.3.0
â 1.3.1
├─
get-proto
^1.0.1
├─
gopd
^1.0.1
├─
gopd
^1.2.0
├─
has-property-descriptors
^1.0.0
â 1.0.2
├─
has-property-descriptors
^1.0.2
â 1.0.2
├─
has-symbols
^1.0.3
â 1.1.0
├─
has-symbols
^1.1.0
â 1.1.0
├─
has-tostringtag
^1.0.2
â 1.0.2
├─
hasown
^2.0.2
â 2.0.3
├─
is-callable
^1.2.7
â 1.2.7
├─
is-regex
^1.2.1
â 1.2.1
├─
math-intrinsics
^1.1.0
â 1.1.0
├─
object-keys
^1.1.1
â 1.1.1
├─
possible-typed-array-names
^1.0.0
â 1.1.0
├─
safe-regex-test
^1.1.0
â 1.1.0
├─
set-function-length
^1.2.2
â 1.2.2
├─
async-function
^1.0.0
├─
async-generator-function
^1.0.0
â 1.0.0
├─
call-bind-apply-helpers
^1.0.1
â 1.0.2
├─
call-bind-apply-helpers
^1.0.2
â 1.0.2
├─
call-bound
^1.0.2
â 1.0.4
├─
define-data-property
^1.1.4
├─
es-define-property
^1.0.0
â 1.0.1
├─
es-define-property
^1.0.1
â 1.0.1
├─
es-errors
^1.3.0
â 1.3.0
├─
es-object-atoms
^1.1.1
â 1.1.1
├─
function-bind
^1.1.2
â 1.1.2
├─
generator-function
^2.0.0
â 2.0.1
├─
get-intrinsic
^1.2.4
â 1.3.1
├─
get-intrinsic
^1.3.0
â 1.3.1
├─
get-proto
^1.0.1
├─
gopd
^1.0.1
├─
gopd
^1.2.0
├─
has-property-descriptors
^1.0.2
â 1.0.2
├─
has-symbols
^1.0.3
â 1.1.0
├─
has-symbols
^1.1.0
â 1.1.0
├─
has-tostringtag
^1.0.2
â 1.0.2
├─
hasown
^2.0.2
â 2.0.3
├─
is-regex
^1.2.1
â 1.2.1
├─
math-intrinsics
^1.1.0
â 1.1.0
├─
async-function
^1.0.0
├─
async-generator-function
^1.0.0
â 1.0.0
├─
call-bind-apply-helpers
^1.0.2
â 1.0.2
├─
call-bound
^1.0.2
â 1.0.4
├─
es-define-property
^1.0.0
â 1.0.1
├─
es-define-property
^1.0.1
â 1.0.1
├─
es-errors
^1.3.0
â 1.3.0
├─
es-object-atoms
^1.1.1
â 1.1.1
├─
function-bind
^1.1.2
â 1.1.2
├─
generator-function
^2.0.0
â 2.0.1
├─
get-intrinsic
^1.3.0
â 1.3.1
├─
get-proto
^1.0.1
├─
gopd
^1.2.0
├─
has-symbols
^1.0.3
â 1.1.0
├─
has-symbols
^1.1.0
â 1.1.0
├─
has-tostringtag
^1.0.2
â 1.0.2
├─
hasown
^2.0.2
â 2.0.3
├─
math-intrinsics
^1.1.0
â 1.1.0
Changes from v2.0.0
Dependency Changes
| Change | Package | Version |
|---|---|---|
| added | array.prototype.flat | ^1.2.3 |
File Changes
0 added
0 removed
4 modified
size delta: +.1 KB
Commit: d2e16aa60fb1 Browse source
Published to npm: