karajan-code 3.4.1 → 3.5.0
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.
- package/README.md +1 -1
- package/node_modules/@karajan/core/package.json +12 -1
- package/package.json +4 -2
- package/scripts/verify-pack.mjs +108 -0
- package/src/cli/register-meta.js +37 -0
- package/src/cli/register-pipeline.js +1 -0
- package/src/commands/check.js +22 -0
- package/src/commands/harden.js +107 -0
- package/src/commands/init.js +15 -0
- package/src/harden/check.js +70 -0
- package/src/harden/config-engine.js +75 -0
- package/src/harden/config-templates.js +112 -0
- package/src/harden/guidelines-engine.js +48 -0
- package/src/harden/guidelines-templates.js +36 -0
- package/src/harden/harden-engine.js +66 -0
- package/src/harden/hook-commands.js +20 -0
- package/src/harden/hook-templates.js +69 -0
- package/src/harden/stack-roots.js +74 -0
- package/src/harden/workflow-engine.js +64 -0
- package/src/harden/workflow-templates.js +152 -0
- package/src/utils/managed-markers.js +93 -0
- package/node_modules/@sec-ant/readable-stream/LICENSE +0 -21
- package/node_modules/@sec-ant/readable-stream/README.md +0 -230
- package/node_modules/@sec-ant/readable-stream/dist/core/asyncIterablePrototype.d.ts +0 -1
- package/node_modules/@sec-ant/readable-stream/dist/core/asyncIterator.d.ts +0 -27
- package/node_modules/@sec-ant/readable-stream/dist/core/fromAnyIterable.d.ts +0 -6
- package/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.d.ts +0 -2
- package/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.js +0 -5
- package/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.d.ts +0 -2
- package/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.js +0 -5
- package/node_modules/@sec-ant/readable-stream/dist/index/index.d.ts +0 -2
- package/node_modules/@sec-ant/readable-stream/dist/index/index.js +0 -8
- package/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.d.ts +0 -1
- package/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.js +0 -3
- package/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.d.ts +0 -1
- package/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.js +0 -2
- package/node_modules/@sec-ant/readable-stream/dist/polyfill/index.d.ts +0 -2
- package/node_modules/@sec-ant/readable-stream/dist/polyfill/index.js +0 -4
- package/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.d.ts +0 -1
- package/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js +0 -89
- package/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.d.ts +0 -1
- package/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js +0 -34
- package/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.d.ts +0 -2
- package/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js +0 -6
- package/node_modules/@sec-ant/readable-stream/dist/types/async-iterator.d.ts +0 -11
- package/node_modules/@sec-ant/readable-stream/package.json +0 -96
- package/node_modules/@sindresorhus/merge-streams/index.d.ts +0 -44
- package/node_modules/@sindresorhus/merge-streams/index.js +0 -265
- package/node_modules/@sindresorhus/merge-streams/license +0 -9
- package/node_modules/@sindresorhus/merge-streams/package.json +0 -49
- package/node_modules/@sindresorhus/merge-streams/readme.md +0 -53
- package/node_modules/base64-js/LICENSE +0 -21
- package/node_modules/base64-js/README.md +0 -34
- package/node_modules/base64-js/base64js.min.js +0 -1
- package/node_modules/base64-js/index.d.ts +0 -3
- package/node_modules/base64-js/index.js +0 -150
- package/node_modules/base64-js/package.json +0 -47
- package/node_modules/better-sqlite3/LICENSE +0 -21
- package/node_modules/better-sqlite3/README.md +0 -99
- package/node_modules/better-sqlite3/binding.gyp +0 -38
- package/node_modules/better-sqlite3/deps/common.gypi +0 -68
- package/node_modules/better-sqlite3/deps/copy.js +0 -31
- package/node_modules/better-sqlite3/deps/defines.gypi +0 -42
- package/node_modules/better-sqlite3/deps/download.sh +0 -123
- package/node_modules/better-sqlite3/deps/patches/1208.patch +0 -15
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +0 -268879
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +0 -14335
- package/node_modules/better-sqlite3/deps/sqlite3/sqlite3ext.h +0 -739
- package/node_modules/better-sqlite3/deps/sqlite3.gyp +0 -80
- package/node_modules/better-sqlite3/deps/test_extension.c +0 -21
- package/node_modules/better-sqlite3/lib/database.js +0 -90
- package/node_modules/better-sqlite3/lib/index.js +0 -3
- package/node_modules/better-sqlite3/lib/methods/aggregate.js +0 -43
- package/node_modules/better-sqlite3/lib/methods/backup.js +0 -67
- package/node_modules/better-sqlite3/lib/methods/function.js +0 -31
- package/node_modules/better-sqlite3/lib/methods/inspect.js +0 -7
- package/node_modules/better-sqlite3/lib/methods/pragma.js +0 -12
- package/node_modules/better-sqlite3/lib/methods/serialize.js +0 -16
- package/node_modules/better-sqlite3/lib/methods/table.js +0 -189
- package/node_modules/better-sqlite3/lib/methods/transaction.js +0 -78
- package/node_modules/better-sqlite3/lib/methods/wrappers.js +0 -54
- package/node_modules/better-sqlite3/lib/sqlite-error.js +0 -20
- package/node_modules/better-sqlite3/lib/util.js +0 -12
- package/node_modules/better-sqlite3/package.json +0 -59
- package/node_modules/better-sqlite3/src/addon.cpp +0 -47
- package/node_modules/better-sqlite3/src/better_sqlite3.cpp +0 -74
- package/node_modules/better-sqlite3/src/objects/backup.cpp +0 -120
- package/node_modules/better-sqlite3/src/objects/backup.hpp +0 -36
- package/node_modules/better-sqlite3/src/objects/database.cpp +0 -417
- package/node_modules/better-sqlite3/src/objects/database.hpp +0 -103
- package/node_modules/better-sqlite3/src/objects/statement-iterator.cpp +0 -113
- package/node_modules/better-sqlite3/src/objects/statement-iterator.hpp +0 -50
- package/node_modules/better-sqlite3/src/objects/statement.cpp +0 -383
- package/node_modules/better-sqlite3/src/objects/statement.hpp +0 -58
- package/node_modules/better-sqlite3/src/util/bind-map.cpp +0 -73
- package/node_modules/better-sqlite3/src/util/binder.cpp +0 -193
- package/node_modules/better-sqlite3/src/util/constants.cpp +0 -172
- package/node_modules/better-sqlite3/src/util/custom-aggregate.cpp +0 -121
- package/node_modules/better-sqlite3/src/util/custom-function.cpp +0 -59
- package/node_modules/better-sqlite3/src/util/custom-table.cpp +0 -409
- package/node_modules/better-sqlite3/src/util/data-converter.cpp +0 -17
- package/node_modules/better-sqlite3/src/util/data.cpp +0 -194
- package/node_modules/better-sqlite3/src/util/helpers.cpp +0 -109
- package/node_modules/better-sqlite3/src/util/macros.cpp +0 -83
- package/node_modules/better-sqlite3/src/util/query-macros.cpp +0 -71
- package/node_modules/better-sqlite3/src/util/row-builder.cpp +0 -49
- package/node_modules/bindings/LICENSE.md +0 -22
- package/node_modules/bindings/README.md +0 -98
- package/node_modules/bindings/bindings.js +0 -221
- package/node_modules/bindings/package.json +0 -28
- package/node_modules/bl/.travis.yml +0 -17
- package/node_modules/bl/BufferList.js +0 -396
- package/node_modules/bl/LICENSE.md +0 -13
- package/node_modules/bl/README.md +0 -247
- package/node_modules/bl/bl.js +0 -84
- package/node_modules/bl/package.json +0 -37
- package/node_modules/bl/test/convert.js +0 -21
- package/node_modules/bl/test/indexOf.js +0 -492
- package/node_modules/bl/test/isBufferList.js +0 -32
- package/node_modules/bl/test/test.js +0 -869
- package/node_modules/buffer/AUTHORS.md +0 -70
- package/node_modules/buffer/LICENSE +0 -21
- package/node_modules/buffer/README.md +0 -410
- package/node_modules/buffer/index.d.ts +0 -186
- package/node_modules/buffer/index.js +0 -1817
- package/node_modules/buffer/package.json +0 -96
- package/node_modules/chownr/LICENSE +0 -15
- package/node_modules/chownr/README.md +0 -3
- package/node_modules/chownr/chownr.js +0 -167
- package/node_modules/chownr/package.json +0 -29
- package/node_modules/cross-spawn/LICENSE +0 -21
- package/node_modules/cross-spawn/README.md +0 -89
- package/node_modules/cross-spawn/index.js +0 -39
- package/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/node_modules/cross-spawn/lib/parse.js +0 -91
- package/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/node_modules/cross-spawn/package.json +0 -73
- package/node_modules/decompress-response/index.d.ts +0 -22
- package/node_modules/decompress-response/index.js +0 -58
- package/node_modules/decompress-response/license +0 -9
- package/node_modules/decompress-response/package.json +0 -56
- package/node_modules/decompress-response/readme.md +0 -48
- package/node_modules/deep-extend/LICENSE +0 -20
- package/node_modules/deep-extend/README.md +0 -91
- package/node_modules/deep-extend/index.js +0 -1
- package/node_modules/deep-extend/lib/deep-extend.js +0 -150
- package/node_modules/deep-extend/package.json +0 -62
- package/node_modules/detect-libc/LICENSE +0 -201
- package/node_modules/detect-libc/README.md +0 -163
- package/node_modules/detect-libc/index.d.ts +0 -14
- package/node_modules/detect-libc/lib/detect-libc.js +0 -313
- package/node_modules/detect-libc/lib/elf.js +0 -39
- package/node_modules/detect-libc/lib/filesystem.js +0 -51
- package/node_modules/detect-libc/lib/process.js +0 -24
- package/node_modules/detect-libc/package.json +0 -44
- package/node_modules/end-of-stream/LICENSE +0 -21
- package/node_modules/end-of-stream/README.md +0 -54
- package/node_modules/end-of-stream/index.js +0 -96
- package/node_modules/end-of-stream/package.json +0 -37
- package/node_modules/execa/index.d.ts +0 -27
- package/node_modules/execa/index.js +0 -28
- package/node_modules/execa/lib/arguments/command.js +0 -20
- package/node_modules/execa/lib/arguments/cwd.js +0 -39
- package/node_modules/execa/lib/arguments/encoding-option.js +0 -50
- package/node_modules/execa/lib/arguments/escape.js +0 -88
- package/node_modules/execa/lib/arguments/fd-options.js +0 -108
- package/node_modules/execa/lib/arguments/file-url.js +0 -25
- package/node_modules/execa/lib/arguments/options.js +0 -96
- package/node_modules/execa/lib/arguments/shell.js +0 -11
- package/node_modules/execa/lib/arguments/specific.js +0 -111
- package/node_modules/execa/lib/convert/add.js +0 -15
- package/node_modules/execa/lib/convert/concurrent.js +0 -33
- package/node_modules/execa/lib/convert/duplex.js +0 -69
- package/node_modules/execa/lib/convert/iterable.js +0 -34
- package/node_modules/execa/lib/convert/readable.js +0 -113
- package/node_modules/execa/lib/convert/shared.js +0 -46
- package/node_modules/execa/lib/convert/writable.js +0 -90
- package/node_modules/execa/lib/io/contents.js +0 -116
- package/node_modules/execa/lib/io/input-sync.js +0 -44
- package/node_modules/execa/lib/io/iterate.js +0 -110
- package/node_modules/execa/lib/io/max-buffer.js +0 -89
- package/node_modules/execa/lib/io/output-async.js +0 -80
- package/node_modules/execa/lib/io/output-sync.js +0 -135
- package/node_modules/execa/lib/io/pipeline.js +0 -48
- package/node_modules/execa/lib/io/strip-newline.js +0 -12
- package/node_modules/execa/lib/ipc/array.js +0 -4
- package/node_modules/execa/lib/ipc/buffer-messages.js +0 -47
- package/node_modules/execa/lib/ipc/forward.js +0 -56
- package/node_modules/execa/lib/ipc/get-each.js +0 -89
- package/node_modules/execa/lib/ipc/get-one.js +0 -69
- package/node_modules/execa/lib/ipc/graceful.js +0 -72
- package/node_modules/execa/lib/ipc/incoming.js +0 -79
- package/node_modules/execa/lib/ipc/ipc-input.js +0 -44
- package/node_modules/execa/lib/ipc/methods.js +0 -49
- package/node_modules/execa/lib/ipc/outgoing.js +0 -47
- package/node_modules/execa/lib/ipc/reference.js +0 -44
- package/node_modules/execa/lib/ipc/send.js +0 -91
- package/node_modules/execa/lib/ipc/strict.js +0 -113
- package/node_modules/execa/lib/ipc/validation.js +0 -111
- package/node_modules/execa/lib/methods/bind.js +0 -23
- package/node_modules/execa/lib/methods/command.js +0 -43
- package/node_modules/execa/lib/methods/create.js +0 -65
- package/node_modules/execa/lib/methods/main-async.js +0 -194
- package/node_modules/execa/lib/methods/main-sync.js +0 -163
- package/node_modules/execa/lib/methods/node.js +0 -51
- package/node_modules/execa/lib/methods/parameters.js +0 -31
- package/node_modules/execa/lib/methods/promise.js +0 -15
- package/node_modules/execa/lib/methods/script.js +0 -22
- package/node_modules/execa/lib/methods/template.js +0 -153
- package/node_modules/execa/lib/pipe/abort.js +0 -20
- package/node_modules/execa/lib/pipe/pipe-arguments.js +0 -91
- package/node_modules/execa/lib/pipe/sequence.js +0 -24
- package/node_modules/execa/lib/pipe/setup.js +0 -72
- package/node_modules/execa/lib/pipe/streaming.js +0 -51
- package/node_modules/execa/lib/pipe/throw.js +0 -58
- package/node_modules/execa/lib/resolve/all-async.js +0 -46
- package/node_modules/execa/lib/resolve/all-sync.js +0 -33
- package/node_modules/execa/lib/resolve/exit-async.js +0 -54
- package/node_modules/execa/lib/resolve/exit-sync.js +0 -25
- package/node_modules/execa/lib/resolve/stdio.js +0 -47
- package/node_modules/execa/lib/resolve/wait-stream.js +0 -96
- package/node_modules/execa/lib/resolve/wait-subprocess.js +0 -146
- package/node_modules/execa/lib/return/duration.js +0 -8
- package/node_modules/execa/lib/return/early-error.js +0 -60
- package/node_modules/execa/lib/return/final-error.js +0 -40
- package/node_modules/execa/lib/return/message.js +0 -157
- package/node_modules/execa/lib/return/reject.js +0 -13
- package/node_modules/execa/lib/return/result.js +0 -186
- package/node_modules/execa/lib/stdio/direction.js +0 -76
- package/node_modules/execa/lib/stdio/duplicate.js +0 -116
- package/node_modules/execa/lib/stdio/handle-async.js +0 -52
- package/node_modules/execa/lib/stdio/handle-sync.js +0 -57
- package/node_modules/execa/lib/stdio/handle.js +0 -214
- package/node_modules/execa/lib/stdio/input-option.js +0 -50
- package/node_modules/execa/lib/stdio/native.js +0 -106
- package/node_modules/execa/lib/stdio/stdio-option.js +0 -60
- package/node_modules/execa/lib/stdio/type.js +0 -173
- package/node_modules/execa/lib/terminate/cancel.js +0 -20
- package/node_modules/execa/lib/terminate/cleanup.js +0 -16
- package/node_modules/execa/lib/terminate/graceful.js +0 -71
- package/node_modules/execa/lib/terminate/kill.js +0 -93
- package/node_modules/execa/lib/terminate/signal.js +0 -70
- package/node_modules/execa/lib/terminate/timeout.js +0 -21
- package/node_modules/execa/lib/transform/encoding-transform.js +0 -51
- package/node_modules/execa/lib/transform/generator.js +0 -107
- package/node_modules/execa/lib/transform/normalize.js +0 -111
- package/node_modules/execa/lib/transform/object-mode.js +0 -41
- package/node_modules/execa/lib/transform/run-async.js +0 -60
- package/node_modules/execa/lib/transform/run-sync.js +0 -50
- package/node_modules/execa/lib/transform/split.js +0 -110
- package/node_modules/execa/lib/transform/validate.js +0 -43
- package/node_modules/execa/lib/utils/abort-signal.js +0 -8
- package/node_modules/execa/lib/utils/deferred.js +0 -7
- package/node_modules/execa/lib/utils/max-listeners.js +0 -14
- package/node_modules/execa/lib/utils/standard-stream.js +0 -6
- package/node_modules/execa/lib/utils/uint-array.js +0 -69
- package/node_modules/execa/lib/verbose/complete.js +0 -24
- package/node_modules/execa/lib/verbose/custom.js +0 -26
- package/node_modules/execa/lib/verbose/default.js +0 -54
- package/node_modules/execa/lib/verbose/error.js +0 -13
- package/node_modules/execa/lib/verbose/info.js +0 -39
- package/node_modules/execa/lib/verbose/ipc.js +0 -15
- package/node_modules/execa/lib/verbose/log.js +0 -54
- package/node_modules/execa/lib/verbose/output.js +0 -60
- package/node_modules/execa/lib/verbose/start.js +0 -15
- package/node_modules/execa/lib/verbose/values.js +0 -33
- package/node_modules/execa/license +0 -9
- package/node_modules/execa/package.json +0 -105
- package/node_modules/execa/readme.md +0 -461
- package/node_modules/execa/types/arguments/encoding-option.d.ts +0 -19
- package/node_modules/execa/types/arguments/fd-options.d.ts +0 -8
- package/node_modules/execa/types/arguments/options.d.ts +0 -400
- package/node_modules/execa/types/arguments/specific.d.ts +0 -52
- package/node_modules/execa/types/convert.d.ts +0 -58
- package/node_modules/execa/types/ipc.d.ts +0 -156
- package/node_modules/execa/types/methods/command.d.ts +0 -114
- package/node_modules/execa/types/methods/main-async.d.ts +0 -379
- package/node_modules/execa/types/methods/main-sync.d.ts +0 -59
- package/node_modules/execa/types/methods/node.d.ts +0 -62
- package/node_modules/execa/types/methods/script.d.ts +0 -115
- package/node_modules/execa/types/methods/template.d.ts +0 -18
- package/node_modules/execa/types/pipe.d.ts +0 -58
- package/node_modules/execa/types/return/final-error.d.ts +0 -51
- package/node_modules/execa/types/return/ignore.d.ts +0 -26
- package/node_modules/execa/types/return/result-all.d.ts +0 -30
- package/node_modules/execa/types/return/result-ipc.d.ts +0 -27
- package/node_modules/execa/types/return/result-stdio.d.ts +0 -17
- package/node_modules/execa/types/return/result-stdout.d.ts +0 -50
- package/node_modules/execa/types/return/result.d.ts +0 -203
- package/node_modules/execa/types/stdio/array.d.ts +0 -16
- package/node_modules/execa/types/stdio/direction.d.ts +0 -12
- package/node_modules/execa/types/stdio/option.d.ts +0 -40
- package/node_modules/execa/types/stdio/type.d.ts +0 -170
- package/node_modules/execa/types/subprocess/all.d.ts +0 -17
- package/node_modules/execa/types/subprocess/stdio.d.ts +0 -18
- package/node_modules/execa/types/subprocess/stdout.d.ts +0 -22
- package/node_modules/execa/types/subprocess/subprocess.d.ts +0 -117
- package/node_modules/execa/types/transform/normalize.d.ts +0 -57
- package/node_modules/execa/types/transform/object-mode.d.ts +0 -21
- package/node_modules/execa/types/utils.d.ts +0 -13
- package/node_modules/execa/types/verbose.d.ts +0 -98
- package/node_modules/expand-template/.travis.yml +0 -6
- package/node_modules/expand-template/LICENSE +0 -21
- package/node_modules/expand-template/README.md +0 -43
- package/node_modules/expand-template/index.js +0 -26
- package/node_modules/expand-template/package.json +0 -29
- package/node_modules/expand-template/test.js +0 -67
- package/node_modules/figures/index.d.ts +0 -279
- package/node_modules/figures/index.js +0 -292
- package/node_modules/figures/license +0 -9
- package/node_modules/figures/package.json +0 -49
- package/node_modules/figures/readme.md +0 -337
- package/node_modules/file-uri-to-path/.npmignore +0 -1
- package/node_modules/file-uri-to-path/.travis.yml +0 -30
- package/node_modules/file-uri-to-path/History.md +0 -21
- package/node_modules/file-uri-to-path/LICENSE +0 -20
- package/node_modules/file-uri-to-path/README.md +0 -74
- package/node_modules/file-uri-to-path/index.d.ts +0 -2
- package/node_modules/file-uri-to-path/index.js +0 -66
- package/node_modules/file-uri-to-path/package.json +0 -32
- package/node_modules/file-uri-to-path/test/test.js +0 -24
- package/node_modules/file-uri-to-path/test/tests.json +0 -13
- package/node_modules/fs-constants/LICENSE +0 -21
- package/node_modules/fs-constants/README.md +0 -26
- package/node_modules/fs-constants/browser.js +0 -1
- package/node_modules/fs-constants/index.js +0 -1
- package/node_modules/fs-constants/package.json +0 -19
- package/node_modules/get-stream/license +0 -9
- package/node_modules/get-stream/package.json +0 -60
- package/node_modules/get-stream/readme.md +0 -303
- package/node_modules/get-stream/source/array-buffer.js +0 -84
- package/node_modules/get-stream/source/array.js +0 -32
- package/node_modules/get-stream/source/buffer.js +0 -19
- package/node_modules/get-stream/source/contents.js +0 -121
- package/node_modules/get-stream/source/exports.js +0 -5
- package/node_modules/get-stream/source/index.d.ts +0 -121
- package/node_modules/get-stream/source/index.js +0 -13
- package/node_modules/get-stream/source/stream.js +0 -65
- package/node_modules/get-stream/source/string.js +0 -41
- package/node_modules/get-stream/source/utils.js +0 -11
- package/node_modules/github-from-package/.travis.yml +0 -4
- package/node_modules/github-from-package/LICENSE +0 -18
- package/node_modules/github-from-package/example/package.json +0 -8
- package/node_modules/github-from-package/example/url.js +0 -3
- package/node_modules/github-from-package/index.js +0 -17
- package/node_modules/github-from-package/package.json +0 -30
- package/node_modules/github-from-package/readme.markdown +0 -53
- package/node_modules/github-from-package/test/a.json +0 -8
- package/node_modules/github-from-package/test/b.json +0 -5
- package/node_modules/github-from-package/test/c.json +0 -5
- package/node_modules/github-from-package/test/d.json +0 -7
- package/node_modules/github-from-package/test/e.json +0 -5
- package/node_modules/github-from-package/test/url.js +0 -19
- package/node_modules/human-signals/LICENSE +0 -201
- package/node_modules/human-signals/README.md +0 -171
- package/node_modules/human-signals/build/src/core.js +0 -273
- package/node_modules/human-signals/build/src/main.d.ts +0 -206
- package/node_modules/human-signals/build/src/main.js +0 -70
- package/node_modules/human-signals/build/src/realtime.js +0 -16
- package/node_modules/human-signals/build/src/signals.js +0 -34
- package/node_modules/human-signals/package.json +0 -66
- package/node_modules/ieee754/LICENSE +0 -11
- package/node_modules/ieee754/README.md +0 -51
- package/node_modules/ieee754/index.d.ts +0 -10
- package/node_modules/ieee754/index.js +0 -85
- package/node_modules/ieee754/package.json +0 -52
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -29
- package/node_modules/ini/LICENSE +0 -15
- package/node_modules/ini/README.md +0 -102
- package/node_modules/ini/ini.js +0 -206
- package/node_modules/ini/package.json +0 -33
- package/node_modules/is-plain-obj/index.d.ts +0 -35
- package/node_modules/is-plain-obj/index.js +0 -8
- package/node_modules/is-plain-obj/license +0 -9
- package/node_modules/is-plain-obj/package.json +0 -41
- package/node_modules/is-plain-obj/readme.md +0 -58
- package/node_modules/is-stream/index.d.ts +0 -90
- package/node_modules/is-stream/index.js +0 -37
- package/node_modules/is-stream/license +0 -9
- package/node_modules/is-stream/package.json +0 -48
- package/node_modules/is-stream/readme.md +0 -57
- package/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/node_modules/is-unicode-supported/index.js +0 -21
- package/node_modules/is-unicode-supported/license +0 -9
- package/node_modules/is-unicode-supported/package.json +0 -47
- package/node_modules/is-unicode-supported/readme.md +0 -35
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -31
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/mimic-response/index.d.ts +0 -17
- package/node_modules/mimic-response/index.js +0 -77
- package/node_modules/mimic-response/license +0 -9
- package/node_modules/mimic-response/package.json +0 -42
- package/node_modules/mimic-response/readme.md +0 -78
- package/node_modules/minimist/.eslintrc +0 -29
- package/node_modules/minimist/.github/FUNDING.yml +0 -12
- package/node_modules/minimist/.nycrc +0 -14
- package/node_modules/minimist/CHANGELOG.md +0 -298
- package/node_modules/minimist/LICENSE +0 -18
- package/node_modules/minimist/README.md +0 -121
- package/node_modules/minimist/example/parse.js +0 -4
- package/node_modules/minimist/index.js +0 -263
- package/node_modules/minimist/package.json +0 -75
- package/node_modules/minimist/test/all_bool.js +0 -34
- package/node_modules/minimist/test/bool.js +0 -177
- package/node_modules/minimist/test/dash.js +0 -43
- package/node_modules/minimist/test/default_bool.js +0 -37
- package/node_modules/minimist/test/dotted.js +0 -24
- package/node_modules/minimist/test/kv_short.js +0 -32
- package/node_modules/minimist/test/long.js +0 -33
- package/node_modules/minimist/test/num.js +0 -38
- package/node_modules/minimist/test/parse.js +0 -209
- package/node_modules/minimist/test/parse_modified.js +0 -11
- package/node_modules/minimist/test/proto.js +0 -64
- package/node_modules/minimist/test/short.js +0 -69
- package/node_modules/minimist/test/stop_early.js +0 -17
- package/node_modules/minimist/test/unknown.js +0 -104
- package/node_modules/minimist/test/whitespace.js +0 -10
- package/node_modules/mkdirp-classic/LICENSE +0 -21
- package/node_modules/mkdirp-classic/README.md +0 -18
- package/node_modules/mkdirp-classic/index.js +0 -98
- package/node_modules/mkdirp-classic/package.json +0 -18
- package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +0 -31
- package/node_modules/napi-build-utils/LICENSE +0 -21
- package/node_modules/napi-build-utils/README.md +0 -52
- package/node_modules/napi-build-utils/index.js +0 -214
- package/node_modules/napi-build-utils/index.md +0 -0
- package/node_modules/napi-build-utils/package.json +0 -42
- package/node_modules/node-abi/LICENSE +0 -21
- package/node_modules/node-abi/README.md +0 -54
- package/node_modules/node-abi/abi_registry.json +0 -446
- package/node_modules/node-abi/index.js +0 -179
- package/node_modules/node-abi/package.json +0 -45
- package/node_modules/npm-run-path/index.d.ts +0 -90
- package/node_modules/npm-run-path/index.js +0 -55
- package/node_modules/npm-run-path/license +0 -9
- package/node_modules/npm-run-path/node_modules/path-key/index.d.ts +0 -31
- package/node_modules/npm-run-path/node_modules/path-key/index.js +0 -12
- package/node_modules/npm-run-path/node_modules/path-key/license +0 -9
- package/node_modules/npm-run-path/node_modules/path-key/package.json +0 -41
- package/node_modules/npm-run-path/node_modules/path-key/readme.md +0 -57
- package/node_modules/npm-run-path/package.json +0 -52
- package/node_modules/npm-run-path/readme.md +0 -104
- package/node_modules/once/LICENSE +0 -15
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -33
- package/node_modules/parse-ms/index.d.ts +0 -30
- package/node_modules/parse-ms/index.js +0 -45
- package/node_modules/parse-ms/license +0 -9
- package/node_modules/parse-ms/package.json +0 -47
- package/node_modules/parse-ms/readme.md +0 -46
- package/node_modules/path-key/index.d.ts +0 -40
- package/node_modules/path-key/index.js +0 -16
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/package.json +0 -39
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/prebuild-install/CHANGELOG.md +0 -131
- package/node_modules/prebuild-install/CONTRIBUTING.md +0 -6
- package/node_modules/prebuild-install/LICENSE +0 -21
- package/node_modules/prebuild-install/README.md +0 -163
- package/node_modules/prebuild-install/asset.js +0 -44
- package/node_modules/prebuild-install/bin.js +0 -78
- package/node_modules/prebuild-install/download.js +0 -142
- package/node_modules/prebuild-install/error.js +0 -14
- package/node_modules/prebuild-install/help.txt +0 -16
- package/node_modules/prebuild-install/index.js +0 -1
- package/node_modules/prebuild-install/log.js +0 -33
- package/node_modules/prebuild-install/package.json +0 -67
- package/node_modules/prebuild-install/proxy.js +0 -35
- package/node_modules/prebuild-install/rc.js +0 -64
- package/node_modules/prebuild-install/util.js +0 -143
- package/node_modules/pretty-ms/index.d.ts +0 -157
- package/node_modules/pretty-ms/index.js +0 -149
- package/node_modules/pretty-ms/license +0 -9
- package/node_modules/pretty-ms/package.json +0 -55
- package/node_modules/pretty-ms/readme.md +0 -179
- package/node_modules/pump/.github/FUNDING.yml +0 -2
- package/node_modules/pump/.travis.yml +0 -5
- package/node_modules/pump/LICENSE +0 -21
- package/node_modules/pump/README.md +0 -74
- package/node_modules/pump/SECURITY.md +0 -5
- package/node_modules/pump/empty.js +0 -1
- package/node_modules/pump/index.js +0 -86
- package/node_modules/pump/package.json +0 -30
- package/node_modules/pump/test-browser.js +0 -66
- package/node_modules/pump/test-node.js +0 -53
- package/node_modules/rc/LICENSE.APACHE2 +0 -15
- package/node_modules/rc/LICENSE.BSD +0 -26
- package/node_modules/rc/LICENSE.MIT +0 -24
- package/node_modules/rc/README.md +0 -227
- package/node_modules/rc/browser.js +0 -7
- package/node_modules/rc/cli.js +0 -4
- package/node_modules/rc/index.js +0 -53
- package/node_modules/rc/lib/utils.js +0 -104
- package/node_modules/rc/package.json +0 -29
- package/node_modules/rc/test/ini.js +0 -16
- package/node_modules/rc/test/nested-env-vars.js +0 -50
- package/node_modules/rc/test/test.js +0 -59
- package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/readable-stream/README.md +0 -106
- package/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/readable-stream/package.json +0 -68
- package/node_modules/readable-stream/readable-browser.js +0 -9
- package/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -65
- package/node_modules/safe-buffer/package.json +0 -51
- package/node_modules/semver/LICENSE +0 -15
- package/node_modules/semver/README.md +0 -665
- package/node_modules/semver/bin/semver.js +0 -191
- package/node_modules/semver/classes/comparator.js +0 -143
- package/node_modules/semver/classes/index.js +0 -7
- package/node_modules/semver/classes/range.js +0 -557
- package/node_modules/semver/classes/semver.js +0 -333
- package/node_modules/semver/functions/clean.js +0 -8
- package/node_modules/semver/functions/cmp.js +0 -54
- package/node_modules/semver/functions/coerce.js +0 -62
- package/node_modules/semver/functions/compare-build.js +0 -9
- package/node_modules/semver/functions/compare-loose.js +0 -5
- package/node_modules/semver/functions/compare.js +0 -7
- package/node_modules/semver/functions/diff.js +0 -60
- package/node_modules/semver/functions/eq.js +0 -5
- package/node_modules/semver/functions/gt.js +0 -5
- package/node_modules/semver/functions/gte.js +0 -5
- package/node_modules/semver/functions/inc.js +0 -21
- package/node_modules/semver/functions/lt.js +0 -5
- package/node_modules/semver/functions/lte.js +0 -5
- package/node_modules/semver/functions/major.js +0 -5
- package/node_modules/semver/functions/minor.js +0 -5
- package/node_modules/semver/functions/neq.js +0 -5
- package/node_modules/semver/functions/parse.js +0 -18
- package/node_modules/semver/functions/patch.js +0 -5
- package/node_modules/semver/functions/prerelease.js +0 -8
- package/node_modules/semver/functions/rcompare.js +0 -5
- package/node_modules/semver/functions/rsort.js +0 -5
- package/node_modules/semver/functions/satisfies.js +0 -12
- package/node_modules/semver/functions/sort.js +0 -5
- package/node_modules/semver/functions/valid.js +0 -8
- package/node_modules/semver/index.js +0 -91
- package/node_modules/semver/internal/constants.js +0 -37
- package/node_modules/semver/internal/debug.js +0 -11
- package/node_modules/semver/internal/identifiers.js +0 -29
- package/node_modules/semver/internal/lrucache.js +0 -42
- package/node_modules/semver/internal/parse-options.js +0 -17
- package/node_modules/semver/internal/re.js +0 -223
- package/node_modules/semver/package.json +0 -78
- package/node_modules/semver/preload.js +0 -4
- package/node_modules/semver/range.bnf +0 -16
- package/node_modules/semver/ranges/gtr.js +0 -6
- package/node_modules/semver/ranges/intersects.js +0 -9
- package/node_modules/semver/ranges/ltr.js +0 -6
- package/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/node_modules/semver/ranges/min-version.js +0 -63
- package/node_modules/semver/ranges/outside.js +0 -82
- package/node_modules/semver/ranges/simplify.js +0 -49
- package/node_modules/semver/ranges/subset.js +0 -249
- package/node_modules/semver/ranges/to-comparators.js +0 -10
- package/node_modules/semver/ranges/valid.js +0 -13
- package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/package.json +0 -34
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/index.d.ts +0 -22
- package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/package.json +0 -35
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -74
- package/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
- package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/cjs/browser.js +0 -10
- package/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
- package/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
- package/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/cjs/index.js +0 -279
- package/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
- package/node_modules/signal-exit/dist/cjs/package.json +0 -3
- package/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
- package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/cjs/signals.js +0 -42
- package/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
- package/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
- package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/mjs/browser.js +0 -4
- package/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
- package/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
- package/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/mjs/index.js +0 -275
- package/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
- package/node_modules/signal-exit/dist/mjs/package.json +0 -3
- package/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
- package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
- package/node_modules/signal-exit/dist/mjs/signals.js +0 -39
- package/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
- package/node_modules/signal-exit/package.json +0 -106
- package/node_modules/simple-concat/.travis.yml +0 -3
- package/node_modules/simple-concat/LICENSE +0 -20
- package/node_modules/simple-concat/README.md +0 -44
- package/node_modules/simple-concat/index.js +0 -15
- package/node_modules/simple-concat/package.json +0 -47
- package/node_modules/simple-concat/test/basic.js +0 -41
- package/node_modules/simple-get/.github/dependabot.yml +0 -15
- package/node_modules/simple-get/.github/workflows/ci.yml +0 -23
- package/node_modules/simple-get/LICENSE +0 -20
- package/node_modules/simple-get/README.md +0 -333
- package/node_modules/simple-get/index.js +0 -108
- package/node_modules/simple-get/package.json +0 -67
- package/node_modules/sqlite-vec/README.md +0 -1
- package/node_modules/sqlite-vec/package.json +0 -1
- package/node_modules/sqlite-vec-linux-x64/README.md +0 -1
- package/node_modules/sqlite-vec-linux-x64/package.json +0 -1
- package/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/string_decoder/README.md +0 -47
- package/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/string_decoder/package.json +0 -34
- package/node_modules/strip-final-newline/index.d.ts +0 -18
- package/node_modules/strip-final-newline/index.js +0 -26
- package/node_modules/strip-final-newline/license +0 -9
- package/node_modules/strip-final-newline/package.json +0 -49
- package/node_modules/strip-final-newline/readme.md +0 -34
- package/node_modules/strip-json-comments/index.js +0 -70
- package/node_modules/strip-json-comments/license +0 -21
- package/node_modules/strip-json-comments/package.json +0 -42
- package/node_modules/strip-json-comments/readme.md +0 -64
- package/node_modules/tar-fs/.travis.yml +0 -6
- package/node_modules/tar-fs/LICENSE +0 -21
- package/node_modules/tar-fs/README.md +0 -165
- package/node_modules/tar-fs/index.js +0 -363
- package/node_modules/tar-fs/package.json +0 -41
- package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
- package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
- package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/node_modules/tar-fs/test/index.js +0 -346
- package/node_modules/tar-stream/LICENSE +0 -21
- package/node_modules/tar-stream/README.md +0 -168
- package/node_modules/tar-stream/extract.js +0 -257
- package/node_modules/tar-stream/headers.js +0 -295
- package/node_modules/tar-stream/index.js +0 -2
- package/node_modules/tar-stream/pack.js +0 -255
- package/node_modules/tar-stream/package.json +0 -58
- package/node_modules/tar-stream/sandbox.js +0 -11
- package/node_modules/tunnel-agent/LICENSE +0 -55
- package/node_modules/tunnel-agent/README.md +0 -4
- package/node_modules/tunnel-agent/index.js +0 -244
- package/node_modules/tunnel-agent/package.json +0 -22
- package/node_modules/unicorn-magic/default.d.ts +0 -13
- package/node_modules/unicorn-magic/default.js +0 -14
- package/node_modules/unicorn-magic/license +0 -9
- package/node_modules/unicorn-magic/node.d.ts +0 -125
- package/node_modules/unicorn-magic/node.js +0 -49
- package/node_modules/unicorn-magic/package.json +0 -62
- package/node_modules/unicorn-magic/readme.md +0 -25
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/util-deprecate/LICENSE +0 -24
- package/node_modules/util-deprecate/README.md +0 -53
- package/node_modules/util-deprecate/browser.js +0 -67
- package/node_modules/util-deprecate/node.js +0 -6
- package/node_modules/util-deprecate/package.json +0 -27
- package/node_modules/which/LICENSE +0 -15
- package/node_modules/which/README.md +0 -54
- package/node_modules/which/bin/node-which +0 -52
- package/node_modules/which/package.json +0 -43
- package/node_modules/which/which.js +0 -125
- package/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -29
- package/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/yoctocolors/base.d.ts +0 -47
- package/node_modules/yoctocolors/base.js +0 -94
- package/node_modules/yoctocolors/index.d.ts +0 -2
- package/node_modules/yoctocolors/index.js +0 -2
- package/node_modules/yoctocolors/license +0 -9
- package/node_modules/yoctocolors/package.json +0 -69
- package/node_modules/yoctocolors/readme.md +0 -138
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
const isWindows = process.platform === 'win32' ||
|
|
2
|
-
process.env.OSTYPE === 'cygwin' ||
|
|
3
|
-
process.env.OSTYPE === 'msys'
|
|
4
|
-
|
|
5
|
-
const path = require('path')
|
|
6
|
-
const COLON = isWindows ? ';' : ':'
|
|
7
|
-
const isexe = require('isexe')
|
|
8
|
-
|
|
9
|
-
const getNotFoundError = (cmd) =>
|
|
10
|
-
Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })
|
|
11
|
-
|
|
12
|
-
const getPathInfo = (cmd, opt) => {
|
|
13
|
-
const colon = opt.colon || COLON
|
|
14
|
-
|
|
15
|
-
// If it has a slash, then we don't bother searching the pathenv.
|
|
16
|
-
// just check the file itself, and that's it.
|
|
17
|
-
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? ['']
|
|
18
|
-
: (
|
|
19
|
-
[
|
|
20
|
-
// windows always checks the cwd first
|
|
21
|
-
...(isWindows ? [process.cwd()] : []),
|
|
22
|
-
...(opt.path || process.env.PATH ||
|
|
23
|
-
/* istanbul ignore next: very unusual */ '').split(colon),
|
|
24
|
-
]
|
|
25
|
-
)
|
|
26
|
-
const pathExtExe = isWindows
|
|
27
|
-
? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'
|
|
28
|
-
: ''
|
|
29
|
-
const pathExt = isWindows ? pathExtExe.split(colon) : ['']
|
|
30
|
-
|
|
31
|
-
if (isWindows) {
|
|
32
|
-
if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
|
|
33
|
-
pathExt.unshift('')
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return {
|
|
37
|
-
pathEnv,
|
|
38
|
-
pathExt,
|
|
39
|
-
pathExtExe,
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const which = (cmd, opt, cb) => {
|
|
44
|
-
if (typeof opt === 'function') {
|
|
45
|
-
cb = opt
|
|
46
|
-
opt = {}
|
|
47
|
-
}
|
|
48
|
-
if (!opt)
|
|
49
|
-
opt = {}
|
|
50
|
-
|
|
51
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)
|
|
52
|
-
const found = []
|
|
53
|
-
|
|
54
|
-
const step = i => new Promise((resolve, reject) => {
|
|
55
|
-
if (i === pathEnv.length)
|
|
56
|
-
return opt.all && found.length ? resolve(found)
|
|
57
|
-
: reject(getNotFoundError(cmd))
|
|
58
|
-
|
|
59
|
-
const ppRaw = pathEnv[i]
|
|
60
|
-
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw
|
|
61
|
-
|
|
62
|
-
const pCmd = path.join(pathPart, cmd)
|
|
63
|
-
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd
|
|
64
|
-
: pCmd
|
|
65
|
-
|
|
66
|
-
resolve(subStep(p, i, 0))
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
70
|
-
if (ii === pathExt.length)
|
|
71
|
-
return resolve(step(i + 1))
|
|
72
|
-
const ext = pathExt[ii]
|
|
73
|
-
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
74
|
-
if (!er && is) {
|
|
75
|
-
if (opt.all)
|
|
76
|
-
found.push(p + ext)
|
|
77
|
-
else
|
|
78
|
-
return resolve(p + ext)
|
|
79
|
-
}
|
|
80
|
-
return resolve(subStep(p, i, ii + 1))
|
|
81
|
-
})
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
return cb ? step(0).then(res => cb(null, res), cb) : step(0)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const whichSync = (cmd, opt) => {
|
|
88
|
-
opt = opt || {}
|
|
89
|
-
|
|
90
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)
|
|
91
|
-
const found = []
|
|
92
|
-
|
|
93
|
-
for (let i = 0; i < pathEnv.length; i ++) {
|
|
94
|
-
const ppRaw = pathEnv[i]
|
|
95
|
-
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw
|
|
96
|
-
|
|
97
|
-
const pCmd = path.join(pathPart, cmd)
|
|
98
|
-
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd
|
|
99
|
-
: pCmd
|
|
100
|
-
|
|
101
|
-
for (let j = 0; j < pathExt.length; j ++) {
|
|
102
|
-
const cur = p + pathExt[j]
|
|
103
|
-
try {
|
|
104
|
-
const is = isexe.sync(cur, { pathExt: pathExtExe })
|
|
105
|
-
if (is) {
|
|
106
|
-
if (opt.all)
|
|
107
|
-
found.push(cur)
|
|
108
|
-
else
|
|
109
|
-
return cur
|
|
110
|
-
}
|
|
111
|
-
} catch (ex) {}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (opt.all && found.length)
|
|
116
|
-
return found
|
|
117
|
-
|
|
118
|
-
if (opt.nothrow)
|
|
119
|
-
return null
|
|
120
|
-
|
|
121
|
-
throw getNotFoundError(cmd)
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
module.exports = which
|
|
125
|
-
which.sync = whichSync
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
The ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# wrappy
|
|
2
|
-
|
|
3
|
-
Callback wrapping utility
|
|
4
|
-
|
|
5
|
-
## USAGE
|
|
6
|
-
|
|
7
|
-
```javascript
|
|
8
|
-
var wrappy = require("wrappy")
|
|
9
|
-
|
|
10
|
-
// var wrapper = wrappy(wrapperFunction)
|
|
11
|
-
|
|
12
|
-
// make sure a cb is called only once
|
|
13
|
-
// See also: http://npm.im/once for this specific use case
|
|
14
|
-
var once = wrappy(function (cb) {
|
|
15
|
-
var called = false
|
|
16
|
-
return function () {
|
|
17
|
-
if (called) return
|
|
18
|
-
called = true
|
|
19
|
-
return cb.apply(this, arguments)
|
|
20
|
-
}
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
function printBoo () {
|
|
24
|
-
console.log('boo')
|
|
25
|
-
}
|
|
26
|
-
// has some rando property
|
|
27
|
-
printBoo.iAmBooPrinter = true
|
|
28
|
-
|
|
29
|
-
var onlyPrintOnce = once(printBoo)
|
|
30
|
-
|
|
31
|
-
onlyPrintOnce() // prints 'boo'
|
|
32
|
-
onlyPrintOnce() // does nothing
|
|
33
|
-
|
|
34
|
-
// random property is retained!
|
|
35
|
-
assert.equal(onlyPrintOnce.iAmBooPrinter, true)
|
|
36
|
-
```
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "wrappy",
|
|
3
|
-
"version": "1.0.2",
|
|
4
|
-
"description": "Callback wrapping utility",
|
|
5
|
-
"main": "wrappy.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"wrappy.js"
|
|
8
|
-
],
|
|
9
|
-
"directories": {
|
|
10
|
-
"test": "test"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"tap": "^2.3.1"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "tap --coverage test/*.js"
|
|
18
|
-
},
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "https://github.com/npm/wrappy"
|
|
22
|
-
},
|
|
23
|
-
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
24
|
-
"license": "ISC",
|
|
25
|
-
"bugs": {
|
|
26
|
-
"url": "https://github.com/npm/wrappy/issues"
|
|
27
|
-
},
|
|
28
|
-
"homepage": "https://github.com/npm/wrappy"
|
|
29
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Returns a wrapper function that returns a wrapped callback
|
|
2
|
-
// The wrapper function should do some stuff, and return a
|
|
3
|
-
// presumably different callback function.
|
|
4
|
-
// This makes sure that own properties are retained, so that
|
|
5
|
-
// decorations and such are not lost along the way.
|
|
6
|
-
module.exports = wrappy
|
|
7
|
-
function wrappy (fn, cb) {
|
|
8
|
-
if (fn && cb) return wrappy(fn)(cb)
|
|
9
|
-
|
|
10
|
-
if (typeof fn !== 'function')
|
|
11
|
-
throw new TypeError('need wrapper function')
|
|
12
|
-
|
|
13
|
-
Object.keys(fn).forEach(function (k) {
|
|
14
|
-
wrapper[k] = fn[k]
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
return wrapper
|
|
18
|
-
|
|
19
|
-
function wrapper() {
|
|
20
|
-
var args = new Array(arguments.length)
|
|
21
|
-
for (var i = 0; i < args.length; i++) {
|
|
22
|
-
args[i] = arguments[i]
|
|
23
|
-
}
|
|
24
|
-
var ret = fn.apply(this, args)
|
|
25
|
-
var cb = args[args.length-1]
|
|
26
|
-
if (typeof ret === 'function' && ret !== cb) {
|
|
27
|
-
Object.keys(cb).forEach(function (k) {
|
|
28
|
-
ret[k] = cb[k]
|
|
29
|
-
})
|
|
30
|
-
}
|
|
31
|
-
return ret
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export type Format = (string: string) => string;
|
|
2
|
-
|
|
3
|
-
export const reset: Format;
|
|
4
|
-
export const bold: Format;
|
|
5
|
-
export const dim: Format;
|
|
6
|
-
export const italic: Format;
|
|
7
|
-
export const underline: Format;
|
|
8
|
-
export const overline: Format;
|
|
9
|
-
export const inverse: Format;
|
|
10
|
-
export const hidden: Format;
|
|
11
|
-
export const strikethrough: Format;
|
|
12
|
-
|
|
13
|
-
export const black: Format;
|
|
14
|
-
export const red: Format;
|
|
15
|
-
export const green: Format;
|
|
16
|
-
export const yellow: Format;
|
|
17
|
-
export const blue: Format;
|
|
18
|
-
export const magenta: Format;
|
|
19
|
-
export const cyan: Format;
|
|
20
|
-
export const white: Format;
|
|
21
|
-
export const gray: Format;
|
|
22
|
-
|
|
23
|
-
export const bgBlack: Format;
|
|
24
|
-
export const bgRed: Format;
|
|
25
|
-
export const bgGreen: Format;
|
|
26
|
-
export const bgYellow: Format;
|
|
27
|
-
export const bgBlue: Format;
|
|
28
|
-
export const bgMagenta: Format;
|
|
29
|
-
export const bgCyan: Format;
|
|
30
|
-
export const bgWhite: Format;
|
|
31
|
-
export const bgGray: Format;
|
|
32
|
-
|
|
33
|
-
export const redBright: Format;
|
|
34
|
-
export const greenBright: Format;
|
|
35
|
-
export const yellowBright: Format;
|
|
36
|
-
export const blueBright: Format;
|
|
37
|
-
export const magentaBright: Format;
|
|
38
|
-
export const cyanBright: Format;
|
|
39
|
-
export const whiteBright: Format;
|
|
40
|
-
|
|
41
|
-
export const bgRedBright: Format;
|
|
42
|
-
export const bgGreenBright: Format;
|
|
43
|
-
export const bgYellowBright: Format;
|
|
44
|
-
export const bgBlueBright: Format;
|
|
45
|
-
export const bgMagentaBright: Format;
|
|
46
|
-
export const bgCyanBright: Format;
|
|
47
|
-
export const bgWhiteBright: Format;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import tty from 'node:tty';
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line no-warning-comments
|
|
4
|
-
// TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
|
|
5
|
-
// Lots of optionals here to support Deno.
|
|
6
|
-
const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
7
|
-
|
|
8
|
-
const format = (open, close) => {
|
|
9
|
-
if (!hasColors) {
|
|
10
|
-
return input => input;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const openCode = `\u001B[${open}m`;
|
|
14
|
-
const closeCode = `\u001B[${close}m`;
|
|
15
|
-
|
|
16
|
-
return input => {
|
|
17
|
-
const string = input + ''; // eslint-disable-line no-implicit-coercion -- This is faster.
|
|
18
|
-
let index = string.indexOf(closeCode);
|
|
19
|
-
|
|
20
|
-
if (index === -1) {
|
|
21
|
-
// Note: Intentionally not using string interpolation for performance reasons.
|
|
22
|
-
return openCode + string + closeCode;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Handle nested colors.
|
|
26
|
-
|
|
27
|
-
// We could have done this, but it's too slow (as of Node.js 22).
|
|
28
|
-
// return openCode + string.replaceAll(closeCode, (close === 22 ? closeCode : '') + openCode) + closeCode;
|
|
29
|
-
|
|
30
|
-
let result = openCode;
|
|
31
|
-
let lastIndex = 0;
|
|
32
|
-
|
|
33
|
-
// SGR 22 resets both bold (1) and dim (2). When we encounter a nested
|
|
34
|
-
// close for styles that use 22, we need to re-open the outer style.
|
|
35
|
-
const reopenOnNestedClose = close === 22;
|
|
36
|
-
const replaceCode = (reopenOnNestedClose ? closeCode : '') + openCode;
|
|
37
|
-
|
|
38
|
-
while (index !== -1) {
|
|
39
|
-
result += string.slice(lastIndex, index) + replaceCode;
|
|
40
|
-
lastIndex = index + closeCode.length;
|
|
41
|
-
index = string.indexOf(closeCode, lastIndex);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
result += string.slice(lastIndex) + closeCode;
|
|
45
|
-
|
|
46
|
-
return result;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const reset = format(0, 0);
|
|
51
|
-
export const bold = format(1, 22);
|
|
52
|
-
export const dim = format(2, 22);
|
|
53
|
-
export const italic = format(3, 23);
|
|
54
|
-
export const underline = format(4, 24);
|
|
55
|
-
export const overline = format(53, 55);
|
|
56
|
-
export const inverse = format(7, 27);
|
|
57
|
-
export const hidden = format(8, 28);
|
|
58
|
-
export const strikethrough = format(9, 29);
|
|
59
|
-
|
|
60
|
-
export const black = format(30, 39);
|
|
61
|
-
export const red = format(31, 39);
|
|
62
|
-
export const green = format(32, 39);
|
|
63
|
-
export const yellow = format(33, 39);
|
|
64
|
-
export const blue = format(34, 39);
|
|
65
|
-
export const magenta = format(35, 39);
|
|
66
|
-
export const cyan = format(36, 39);
|
|
67
|
-
export const white = format(37, 39);
|
|
68
|
-
export const gray = format(90, 39);
|
|
69
|
-
|
|
70
|
-
export const bgBlack = format(40, 49);
|
|
71
|
-
export const bgRed = format(41, 49);
|
|
72
|
-
export const bgGreen = format(42, 49);
|
|
73
|
-
export const bgYellow = format(43, 49);
|
|
74
|
-
export const bgBlue = format(44, 49);
|
|
75
|
-
export const bgMagenta = format(45, 49);
|
|
76
|
-
export const bgCyan = format(46, 49);
|
|
77
|
-
export const bgWhite = format(47, 49);
|
|
78
|
-
export const bgGray = format(100, 49);
|
|
79
|
-
|
|
80
|
-
export const redBright = format(91, 39);
|
|
81
|
-
export const greenBright = format(92, 39);
|
|
82
|
-
export const yellowBright = format(93, 39);
|
|
83
|
-
export const blueBright = format(94, 39);
|
|
84
|
-
export const magentaBright = format(95, 39);
|
|
85
|
-
export const cyanBright = format(96, 39);
|
|
86
|
-
export const whiteBright = format(97, 39);
|
|
87
|
-
|
|
88
|
-
export const bgRedBright = format(101, 49);
|
|
89
|
-
export const bgGreenBright = format(102, 49);
|
|
90
|
-
export const bgYellowBright = format(103, 49);
|
|
91
|
-
export const bgBlueBright = format(104, 49);
|
|
92
|
-
export const bgMagentaBright = format(105, 49);
|
|
93
|
-
export const bgCyanBright = format(106, 49);
|
|
94
|
-
export const bgWhiteBright = format(107, 49);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
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:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "yoctocolors",
|
|
3
|
-
"version": "2.1.2",
|
|
4
|
-
"description": "The smallest and fastest command-line coloring package on the internet",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/yoctocolors",
|
|
7
|
-
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Sindre Sorhus",
|
|
10
|
-
"email": "sindresorhus@gmail.com",
|
|
11
|
-
"url": "https://sindresorhus.com"
|
|
12
|
-
},
|
|
13
|
-
"type": "module",
|
|
14
|
-
"exports": {
|
|
15
|
-
"types": "./index.d.ts",
|
|
16
|
-
"default": "./index.js"
|
|
17
|
-
},
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=18"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"test": "xo && ava && tsd"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"index.js",
|
|
27
|
-
"index.d.ts",
|
|
28
|
-
"base.js",
|
|
29
|
-
"base.d.ts"
|
|
30
|
-
],
|
|
31
|
-
"keywords": [
|
|
32
|
-
"color",
|
|
33
|
-
"colour",
|
|
34
|
-
"colors",
|
|
35
|
-
"terminal",
|
|
36
|
-
"console",
|
|
37
|
-
"cli",
|
|
38
|
-
"string",
|
|
39
|
-
"ansi",
|
|
40
|
-
"style",
|
|
41
|
-
"styles",
|
|
42
|
-
"tty",
|
|
43
|
-
"formatting",
|
|
44
|
-
"shell",
|
|
45
|
-
"xterm",
|
|
46
|
-
"log",
|
|
47
|
-
"logging",
|
|
48
|
-
"command-line",
|
|
49
|
-
"text"
|
|
50
|
-
],
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@jonahsnider/benchmark": "^5.0.3",
|
|
53
|
-
"ansi-colors": "^4.1.3",
|
|
54
|
-
"ava": "^6.1.3",
|
|
55
|
-
"chalk": "^5.3.0",
|
|
56
|
-
"cli-color": "^2.0.4",
|
|
57
|
-
"colorette": "^2.0.20",
|
|
58
|
-
"kleur": "^4.1.5",
|
|
59
|
-
"nanocolors": "^0.2.13",
|
|
60
|
-
"picocolors": "^1.0.1",
|
|
61
|
-
"tsd": "^0.31.0",
|
|
62
|
-
"xo": "^0.58.0"
|
|
63
|
-
},
|
|
64
|
-
"ava": {
|
|
65
|
-
"environmentVariables": {
|
|
66
|
-
"FORCE_COLOR": "1"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
<sup>yoctocolors 🌈</sup>
|
|
2
|
-
|
|
3
|
-
> The smallest and fastest command-line coloring package on the internet
|
|
4
|
-
|
|
5
|
-
*Check out [Chalk](https://github.com/chalk/chalk) if you want something more mature and comprehensive.*
|
|
6
|
-
|
|
7
|
-
## Highlights
|
|
8
|
-
|
|
9
|
-
- Tiny
|
|
10
|
-
- Fast
|
|
11
|
-
- Handles nested colors
|
|
12
|
-
- Tree-shakeable
|
|
13
|
-
- No dependencies
|
|
14
|
-
- Actively maintained
|
|
15
|
-
|
|
16
|
-
## Install
|
|
17
|
-
|
|
18
|
-
ESM:
|
|
19
|
-
|
|
20
|
-
```sh
|
|
21
|
-
npm install yoctocolors
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Or CommonJS:
|
|
25
|
-
|
|
26
|
-
```sh
|
|
27
|
-
npm install yoctocolors-cjs
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Usage
|
|
31
|
-
|
|
32
|
-
```js
|
|
33
|
-
import colors from 'yoctocolors';
|
|
34
|
-
|
|
35
|
-
console.log(colors.red('Yo!'));
|
|
36
|
-
|
|
37
|
-
console.log(colors.blue(`Welcome to the ${colors.green('yoctocolors')} package!`));
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
You can also import colors as named imports:
|
|
41
|
-
|
|
42
|
-
```js
|
|
43
|
-
import {red, blue, green} from 'yoctocolors';
|
|
44
|
-
|
|
45
|
-
console.log(red('Yo!'));
|
|
46
|
-
|
|
47
|
-
console.log(blue(`Welcome to the ${green('yoctocolors')} package!`));
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
*This package supports [basic color detection](https://nodejs.org/api/tty.html#writestreamhascolorscount-env). Colors can be forcefully enabled by setting the `FORCE_COLOR` environment variable to `1` and can be forcefully disabled by setting `NO_COLOR` or `NODE_DISABLE_COLORS` to any value. [More info.](https://nodejs.org/api/tty.html#writestreamgetcolordepthenv)*
|
|
51
|
-
|
|
52
|
-
## Styles
|
|
53
|
-
|
|
54
|
-
### Modifiers
|
|
55
|
-
|
|
56
|
-
- `reset` - Reset the current style.
|
|
57
|
-
- `bold` - Make the text bold.
|
|
58
|
-
- `dim` - Make the text have lower opacity.
|
|
59
|
-
- `italic` - Make the text italic. *(Not widely supported)*
|
|
60
|
-
- `underline` - Put a horizontal line above the text. *(Not widely supported)*
|
|
61
|
-
- `overline` - Put a horizontal line below the text. *(Not widely supported)*
|
|
62
|
-
- `inverse`- Invert background and foreground colors.
|
|
63
|
-
- `hidden` - Print the text but make it invisible.
|
|
64
|
-
- `strikethrough` - Put a horizontal line through the center of the text. *(Not widely supported)*
|
|
65
|
-
|
|
66
|
-
### Colors
|
|
67
|
-
|
|
68
|
-
- `black`
|
|
69
|
-
- `red`
|
|
70
|
-
- `green`
|
|
71
|
-
- `yellow`
|
|
72
|
-
- `blue`
|
|
73
|
-
- `magenta`
|
|
74
|
-
- `cyan`
|
|
75
|
-
- `white`
|
|
76
|
-
- `gray`
|
|
77
|
-
- `redBright`
|
|
78
|
-
- `greenBright`
|
|
79
|
-
- `yellowBright`
|
|
80
|
-
- `blueBright`
|
|
81
|
-
- `magentaBright`
|
|
82
|
-
- `cyanBright`
|
|
83
|
-
- `whiteBright`
|
|
84
|
-
|
|
85
|
-
### Background colors
|
|
86
|
-
|
|
87
|
-
- `bgBlack`
|
|
88
|
-
- `bgRed`
|
|
89
|
-
- `bgGreen`
|
|
90
|
-
- `bgYellow`
|
|
91
|
-
- `bgBlue`
|
|
92
|
-
- `bgMagenta`
|
|
93
|
-
- `bgCyan`
|
|
94
|
-
- `bgWhite`
|
|
95
|
-
- `bgGray`
|
|
96
|
-
- `bgRedBright`
|
|
97
|
-
- `bgGreenBright`
|
|
98
|
-
- `bgYellowBright`
|
|
99
|
-
- `bgBlueBright`
|
|
100
|
-
- `bgMagentaBright`
|
|
101
|
-
- `bgCyanBright`
|
|
102
|
-
- `bgWhiteBright`
|
|
103
|
-
|
|
104
|
-
## Prior art
|
|
105
|
-
|
|
106
|
-
Yes
|
|
107
|
-
|
|
108
|
-
## Benchmark
|
|
109
|
-
|
|
110
|
-
```sh
|
|
111
|
-
$ ./benchmark.js
|
|
112
|
-
┌─────────┬────────────────┬─────────────┐
|
|
113
|
-
│ (index) │ library │ ops/sec │
|
|
114
|
-
├─────────┼────────────────┼─────────────┤
|
|
115
|
-
│ 0 │ 'yoctocolors' │ '8,000,000' │
|
|
116
|
-
│ 1 │ 'colorette' │ '8,000,000' │
|
|
117
|
-
│ 2 │ 'picocolors' │ '8,000,000' │
|
|
118
|
-
│ 3 │ 'nanocolors' │ '5,988,024' │
|
|
119
|
-
│ 4 │ 'chalk' │ '4,807,692' │
|
|
120
|
-
│ 5 │ 'kleur/colors' │ '4,807,692' │
|
|
121
|
-
│ 6 │ 'kleur' │ '4,784,689' │
|
|
122
|
-
│ 7 │ 'ansi-colors' │ '2,178,649' │
|
|
123
|
-
│ 8 │ 'cli-color' │ '585,138' │
|
|
124
|
-
└─────────┴────────────────┴─────────────┘
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
*See [benchmark.js](benchmark.js).*
|
|
128
|
-
|
|
129
|
-
## FAQ
|
|
130
|
-
|
|
131
|
-
### What is yocto?
|
|
132
|
-
|
|
133
|
-
[It was the smallest official unit prefix in the metric system until 2022.](https://en.wikipedia.org/wiki/Yocto-) Much smaller than nano.
|
|
134
|
-
|
|
135
|
-
## Related
|
|
136
|
-
|
|
137
|
-
- [yoctodelay](https://github.com/sindresorhus/yoctodelay) - Delay a promise a given amount of time
|
|
138
|
-
- [chalk](https://github.com/chalk/chalk) - Terminal string styling
|