projen 0.99.74 → 0.99.76
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/.jsii +854 -429
- package/lib/ai-instructions.js +2 -2
- package/lib/awscdk/auto-discover.js +6 -6
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +4 -4
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/internal.d.ts +2 -0
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/awscdk/private/feature-flags-v2.const.d.ts +3 -1
- package/lib/awscdk/private/feature-flags-v2.const.js +5 -3
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-build.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/auto-queue.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/dependency-review.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/merge-queue.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-backport.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow-job.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflow-steps.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +2 -2
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/biome/biome-config.d.ts +178 -6
- package/lib/javascript/biome/biome-config.js +46 -2
- package/lib/javascript/biome/biome.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/license-checker.js +1 -1
- package/lib/javascript/node-package.js +3 -5
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +2 -2
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/javascript/yarnrc.js +1 -1
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project-tree.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +3 -5
- package/lib/python/poetry.js +5 -7
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pyproject-toml-file.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/uv.js +4 -6
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/run-task.cjs +26 -21
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +28 -9
- package/lib/task.js +1 -1
- package/lib/tasks.d.ts +15 -0
- package/lib/tasks.js +17 -2
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +6 -6
- package/lib/version.js +2 -2
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/{shx → dax}/LICENSE +2 -2
- package/node_modules/dax/README.md +39 -0
- package/node_modules/dax/esm/_dnt.polyfills.d.ts +81 -0
- package/node_modules/dax/esm/_dnt.polyfills.d.ts.map +1 -0
- package/node_modules/dax/esm/_dnt.shims.d.ts +27 -0
- package/node_modules/dax/esm/_dnt.shims.d.ts.map +1 -0
- package/node_modules/dax/esm/_dnt.test_shims.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts +68 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts +112 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/_fs.d.ts +170 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/_fs.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/mod.d.ts +404 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/path.d.ts +12 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/path/0.3.2/path.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/internal.d.ts +8 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/internal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/mod.d.ts +16 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts +20 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts +677 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts +45 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts +7 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts +9 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts +25 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts +14 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts +10 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts +9 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts +12 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts +8 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts +4 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts +7 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts +85 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts +30 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts +62 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts +23 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts +19 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts +17 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts +396 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts +92 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts +210 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts +3 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts +21 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts +35 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/which/0.7.0/mod.d.ts +81 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/which/0.7.0/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/almost_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/array_includes.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/exists.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/fail.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/greater.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/instance_of.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/is_error.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/less.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/less_or_equal.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/match.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_instance_of.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_match.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/object_match.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/rejects.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/strict_equals.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/string_includes.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/throws.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/unimplemented.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts +700 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts +2 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/build_message.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/diff.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/diff_str.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/format.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/os.d.ts +3 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/os.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/styles.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/internal/1.0.14/types.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/_common.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/buffer.d.ts +321 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/buffer.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts +21 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/to_writable_stream.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/types.d.ts +146 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/write_all.d.ts +52 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/io/0.225.3/write_all.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts +35 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts +77 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts +72 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts +71 -0
- package/node_modules/dax/esm/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/esm/mod.d.ts +600 -0
- package/node_modules/dax/esm/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/mod.js +12187 -0
- package/node_modules/dax/esm/mod.test.d.ts.map +1 -0
- package/node_modules/dax/esm/package.json +3 -0
- package/node_modules/dax/esm/src/common.d.ts +15 -0
- package/node_modules/dax/esm/src/common.d.ts.map +1 -0
- package/node_modules/dax/esm/src/common.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/alert.d.ts +25 -0
- package/node_modules/dax/esm/src/console/alert.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/alert.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/confirm.d.ts +27 -0
- package/node_modules/dax/esm/src/console/confirm.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/confirm.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/logger.d.ts +13 -0
- package/node_modules/dax/esm/src/console/logger.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/mod.d.ts +14 -0
- package/node_modules/dax/esm/src/console/mod.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/multiSelect.d.ts +31 -0
- package/node_modules/dax/esm/src/console/multiSelect.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/multiSelect.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/progress.d.ts +57 -0
- package/node_modules/dax/esm/src/console/progress.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/progress.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/prompt.d.ts +46 -0
- package/node_modules/dax/esm/src/console/prompt.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/prompt.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/select.d.ts +26 -0
- package/node_modules/dax/esm/src/console/select.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/select.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/testUtils.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/ttyFallback.d.ts +19 -0
- package/node_modules/dax/esm/src/console/ttyFallback.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/utils.d.ts +47 -0
- package/node_modules/dax/esm/src/console/utils.d.ts.map +1 -0
- package/node_modules/dax/esm/src/console/utils.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/request.d.ts +306 -0
- package/node_modules/dax/esm/src/request.d.ts.map +1 -0
- package/node_modules/dax/esm/src/request.test.d.ts.map +1 -0
- package/node_modules/dax/esm/src/test/server.common.d.ts.map +1 -0
- package/node_modules/dax/esm/src/test/server.node.d.ts.map +1 -0
- package/node_modules/dax/esm/src/vendor/outdent.d.ts +34 -0
- package/node_modules/dax/esm/src/vendor/outdent.d.ts.map +1 -0
- package/node_modules/dax/package.json +39 -0
- package/node_modules/dax/script/_dnt.polyfills.d.ts +81 -0
- package/node_modules/dax/script/_dnt.polyfills.d.ts.map +1 -0
- package/node_modules/dax/script/_dnt.shims.d.ts +27 -0
- package/node_modules/dax/script/_dnt.shims.d.ts.map +1 -0
- package/node_modules/dax/script/_dnt.test_shims.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts +68 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts +112 -0
- package/node_modules/dax/script/deps/jsr.io/@david/console-static-text/0.3.4/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/_fs.d.ts +170 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/_fs.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/mod.d.ts +404 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/path.d.ts +12 -0
- package/node_modules/dax/script/deps/jsr.io/@david/path/0.3.2/path.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/internal.d.ts +8 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/internal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/mod.d.ts +16 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts +20 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/byteRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts +677 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/command.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts +45 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commandHandler.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts +7 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/args.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts +9 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cat.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cd.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts +25 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/cpMv.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/echo.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts +14 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/executable.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/exit.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/export.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts +10 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/mkdir.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/printenv.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts +9 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/pwd.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts +12 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/rm.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/set.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/shopt.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/sleep.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/test.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts +8 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/touch.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts +4 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/unset.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts +7 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/commands/which.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts +85 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/common.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts +30 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/dollar.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts +62 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/fsFile.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts +23 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/glob.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts +2 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts +19 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lib/rs_lib.internal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts +17 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/lineRingBuffer.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts +396 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/pipes.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts +92 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/result.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts +210 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/shell.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts +3 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/signal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts +21 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/spawn.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts +35 -0
- package/node_modules/dax/script/deps/jsr.io/@david/shell/0.5.2/src/streams.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/which/0.7.0/mod.d.ts +81 -0
- package/node_modules/dax/script/deps/jsr.io/@david/which/0.7.0/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/almost_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/array_includes.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/exists.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/fail.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/greater.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/instance_of.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/is_error.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/less.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/less_or_equal.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/match.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/mod.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_instance_of.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_match.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/object_match.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/rejects.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/strict_equals.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/string_includes.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/throws.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/unimplemented.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts +41 -0
- package/node_modules/dax/script/deps/jsr.io/@std/bytes/1.0.6/copy.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts +700 -0
- package/node_modules/dax/script/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts +2 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/build_message.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/diff.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/diff_str.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/format.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/os.d.ts +3 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/os.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/styles.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/internal/1.0.14/types.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/_common.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/buffer.d.ts +321 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/buffer.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts +21 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/reader_from_stream_reader.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/to_writable_stream.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/types.d.ts +146 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/types.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/write_all.d.ts +52 -0
- package/node_modules/dax/script/deps/jsr.io/@std/io/0.225.3/write_all.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts +35 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts +77 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts +72 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts +71 -0
- package/node_modules/dax/script/deps/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.d.ts.map +1 -0
- package/node_modules/dax/script/mod.d.ts +600 -0
- package/node_modules/dax/script/mod.d.ts.map +1 -0
- package/node_modules/dax/script/mod.js +14815 -0
- package/node_modules/dax/script/mod.test.d.ts.map +1 -0
- package/node_modules/dax/script/package.json +3 -0
- package/node_modules/dax/script/src/common.d.ts +15 -0
- package/node_modules/dax/script/src/common.d.ts.map +1 -0
- package/node_modules/dax/script/src/common.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/alert.d.ts +25 -0
- package/node_modules/dax/script/src/console/alert.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/alert.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/confirm.d.ts +27 -0
- package/node_modules/dax/script/src/console/confirm.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/confirm.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/logger.d.ts +13 -0
- package/node_modules/dax/script/src/console/logger.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/mod.d.ts +14 -0
- package/node_modules/dax/script/src/console/mod.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/multiSelect.d.ts +31 -0
- package/node_modules/dax/script/src/console/multiSelect.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/multiSelect.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/progress.d.ts +57 -0
- package/node_modules/dax/script/src/console/progress.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/progress.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/prompt.d.ts +46 -0
- package/node_modules/dax/script/src/console/prompt.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/prompt.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/select.d.ts +26 -0
- package/node_modules/dax/script/src/console/select.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/select.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/testUtils.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/ttyFallback.d.ts +19 -0
- package/node_modules/dax/script/src/console/ttyFallback.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/utils.d.ts +47 -0
- package/node_modules/dax/script/src/console/utils.d.ts.map +1 -0
- package/node_modules/dax/script/src/console/utils.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/request.d.ts +306 -0
- package/node_modules/dax/script/src/request.d.ts.map +1 -0
- package/node_modules/dax/script/src/request.test.d.ts.map +1 -0
- package/node_modules/dax/script/src/test/server.common.d.ts.map +1 -0
- package/node_modules/dax/script/src/test/server.node.d.ts.map +1 -0
- package/node_modules/dax/script/src/vendor/outdent.d.ts +34 -0
- package/node_modules/dax/script/src/vendor/outdent.d.ts.map +1 -0
- package/node_modules/{cross-spawn → undici-types}/LICENSE +6 -6
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +65 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +11 -11
- package/lib/util/tasks.d.ts +0 -7
- package/lib/util/tasks.js +0 -25
- 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/execa/index.d.ts +0 -564
- package/node_modules/execa/index.js +0 -268
- package/node_modules/execa/lib/command.js +0 -52
- package/node_modules/execa/lib/error.js +0 -88
- package/node_modules/execa/lib/kill.js +0 -115
- package/node_modules/execa/lib/promise.js +0 -46
- package/node_modules/execa/lib/stdio.js +0 -52
- package/node_modules/execa/lib/stream.js +0 -97
- package/node_modules/execa/license +0 -9
- package/node_modules/execa/package.json +0 -74
- package/node_modules/execa/readme.md +0 -663
- package/node_modules/get-stream/buffer-stream.js +0 -52
- package/node_modules/get-stream/index.d.ts +0 -105
- package/node_modules/get-stream/index.js +0 -61
- package/node_modules/get-stream/license +0 -9
- package/node_modules/get-stream/package.json +0 -47
- package/node_modules/get-stream/readme.md +0 -124
- package/node_modules/human-signals/LICENSE +0 -201
- package/node_modules/human-signals/README.md +0 -165
- package/node_modules/human-signals/build/src/core.js +0 -273
- package/node_modules/human-signals/build/src/core.js.map +0 -1
- package/node_modules/human-signals/build/src/main.d.ts +0 -52
- package/node_modules/human-signals/build/src/main.js +0 -71
- package/node_modules/human-signals/build/src/main.js.map +0 -1
- package/node_modules/human-signals/build/src/realtime.js +0 -19
- package/node_modules/human-signals/build/src/realtime.js.map +0 -1
- package/node_modules/human-signals/build/src/signals.js +0 -35
- package/node_modules/human-signals/build/src/signals.js.map +0 -1
- package/node_modules/human-signals/package.json +0 -64
- package/node_modules/is-stream/index.d.ts +0 -79
- package/node_modules/is-stream/index.js +0 -28
- package/node_modules/is-stream/license +0 -9
- package/node_modules/is-stream/package.json +0 -42
- package/node_modules/is-stream/readme.md +0 -60
- 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/merge-stream/LICENSE +0 -21
- package/node_modules/merge-stream/README.md +0 -78
- package/node_modules/merge-stream/index.js +0 -41
- package/node_modules/merge-stream/package.json +0 -19
- package/node_modules/mimic-fn/index.d.ts +0 -54
- package/node_modules/mimic-fn/index.js +0 -13
- package/node_modules/mimic-fn/license +0 -9
- package/node_modules/mimic-fn/package.json +0 -42
- package/node_modules/mimic-fn/readme.md +0 -69
- 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/npm-run-path/index.d.ts +0 -89
- package/node_modules/npm-run-path/index.js +0 -47
- package/node_modules/npm-run-path/license +0 -9
- package/node_modules/npm-run-path/package.json +0 -44
- package/node_modules/npm-run-path/readme.md +0 -115
- package/node_modules/onetime/index.d.ts +0 -64
- package/node_modules/onetime/index.js +0 -44
- package/node_modules/onetime/license +0 -9
- package/node_modules/onetime/package.json +0 -43
- package/node_modules/onetime/readme.md +0 -94
- 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/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/shelljs/LICENSE +0 -29
- package/node_modules/shelljs/README.md +0 -949
- package/node_modules/shelljs/global.js +0 -15
- package/node_modules/shelljs/make.js +0 -57
- package/node_modules/shelljs/package.json +0 -90
- package/node_modules/shelljs/plugin.js +0 -16
- package/node_modules/shelljs/shell.js +0 -216
- package/node_modules/shelljs/src/cat.js +0 -76
- package/node_modules/shelljs/src/cd.js +0 -40
- package/node_modules/shelljs/src/chmod.js +0 -222
- package/node_modules/shelljs/src/cmd.js +0 -138
- package/node_modules/shelljs/src/common.js +0 -545
- package/node_modules/shelljs/src/cp.js +0 -314
- package/node_modules/shelljs/src/dirs.js +0 -210
- package/node_modules/shelljs/src/echo.js +0 -62
- package/node_modules/shelljs/src/error.js +0 -15
- package/node_modules/shelljs/src/errorCode.js +0 -10
- package/node_modules/shelljs/src/exec-child.js +0 -71
- package/node_modules/shelljs/src/exec.js +0 -255
- package/node_modules/shelljs/src/find.js +0 -66
- package/node_modules/shelljs/src/grep.js +0 -198
- package/node_modules/shelljs/src/head.js +0 -107
- package/node_modules/shelljs/src/ln.js +0 -75
- package/node_modules/shelljs/src/ls.js +0 -155
- package/node_modules/shelljs/src/mkdir.js +0 -102
- package/node_modules/shelljs/src/mv.js +0 -119
- package/node_modules/shelljs/src/popd.js +0 -1
- package/node_modules/shelljs/src/pushd.js +0 -1
- package/node_modules/shelljs/src/pwd.js +0 -16
- package/node_modules/shelljs/src/rm.js +0 -201
- package/node_modules/shelljs/src/sed.js +0 -95
- package/node_modules/shelljs/src/set.js +0 -55
- package/node_modules/shelljs/src/sort.js +0 -98
- package/node_modules/shelljs/src/tail.js +0 -90
- package/node_modules/shelljs/src/tempdir.js +0 -75
- package/node_modules/shelljs/src/test.js +0 -86
- package/node_modules/shelljs/src/to.js +0 -38
- package/node_modules/shelljs/src/toEnd.js +0 -37
- package/node_modules/shelljs/src/touch.js +0 -117
- package/node_modules/shelljs/src/uniq.js +0 -93
- package/node_modules/shelljs/src/which.js +0 -119
- package/node_modules/shx/README.md +0 -160
- package/node_modules/shx/lib/cli.js +0 -40
- package/node_modules/shx/lib/config.js +0 -58
- package/node_modules/shx/lib/help.js +0 -37
- package/node_modules/shx/lib/plugin-true-false.js +0 -25
- package/node_modules/shx/lib/printCmdRet.js +0 -17
- package/node_modules/shx/lib/shx.js +0 -162
- package/node_modules/shx/package.json +0 -72
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -39
- package/node_modules/signal-exit/index.js +0 -202
- package/node_modules/signal-exit/package.json +0 -38
- package/node_modules/signal-exit/signals.js +0 -53
- package/node_modules/strip-final-newline/index.js +0 -16
- package/node_modules/strip-final-newline/license +0 -9
- package/node_modules/strip-final-newline/package.json +0 -40
- package/node_modules/strip-final-newline/readme.md +0 -30
- 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
|
@@ -1,949 +0,0 @@
|
|
|
1
|
-
# ShellJS - Unix shell commands for Node.js
|
|
2
|
-
|
|
3
|
-
[](https://github.com/shelljs/shelljs/actions/workflows/main.yml)
|
|
4
|
-
[](https://codecov.io/gh/shelljs/shelljs)
|
|
5
|
-
[](https://www.npmjs.com/package/shelljs)
|
|
6
|
-
[](https://www.npmjs.com/package/shelljs)
|
|
7
|
-
|
|
8
|
-
ShellJS is a portable **(Windows/Linux/macOS)** implementation of Unix shell
|
|
9
|
-
commands on top of the Node.js API. You can use it to eliminate your shell
|
|
10
|
-
script's dependency on Unix while still keeping its familiar and powerful
|
|
11
|
-
commands. You can also install it globally so you can run it from outside Node
|
|
12
|
-
projects - say goodbye to those gnarly Bash scripts!
|
|
13
|
-
|
|
14
|
-
ShellJS is proudly tested on every LTS node release since <!-- start minVersion -->`v18`<!-- stop minVersion -->!
|
|
15
|
-
|
|
16
|
-
The project is unit-tested and battle-tested in projects like:
|
|
17
|
-
|
|
18
|
-
+ [Firebug](http://getfirebug.com/) - Firefox's infamous debugger
|
|
19
|
-
+ [JSHint](http://jshint.com) & [ESLint](http://eslint.org/) - popular JavaScript linters
|
|
20
|
-
+ [Zepto](http://zeptojs.com) - jQuery-compatible JavaScript library for modern browsers
|
|
21
|
-
+ [Yeoman](http://yeoman.io/) - Web application stack and development tool
|
|
22
|
-
+ [Deployd.com](http://deployd.com) - Open source PaaS for quick API backend generation
|
|
23
|
-
+ And [many more](https://npmjs.org/browse/depended/shelljs).
|
|
24
|
-
|
|
25
|
-
If you have feedback, suggestions, or need help, feel free to post in our [issue
|
|
26
|
-
tracker](https://github.com/shelljs/shelljs/issues).
|
|
27
|
-
|
|
28
|
-
Think ShellJS is cool? Check out some related projects in our [Wiki
|
|
29
|
-
page](https://github.com/shelljs/shelljs/wiki)!
|
|
30
|
-
|
|
31
|
-
Upgrading from an older version? Check out our [breaking
|
|
32
|
-
changes](https://github.com/shelljs/shelljs/wiki/Breaking-Changes) page to see
|
|
33
|
-
what changes to watch out for while upgrading.
|
|
34
|
-
|
|
35
|
-
## Command line use
|
|
36
|
-
|
|
37
|
-
If you just want cross platform UNIX commands, checkout our new project
|
|
38
|
-
[shelljs/shx](https://github.com/shelljs/shx), a utility to expose `shelljs` to
|
|
39
|
-
the command line.
|
|
40
|
-
|
|
41
|
-
For example:
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
$ shx mkdir -p foo
|
|
45
|
-
$ shx touch foo/bar.txt
|
|
46
|
-
$ shx rm -rf foo
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Plugin API
|
|
50
|
-
|
|
51
|
-
ShellJS now supports third-party plugins! You can learn more about using plugins
|
|
52
|
-
and writing your own ShellJS commands in [the
|
|
53
|
-
wiki](https://github.com/shelljs/shelljs/wiki/Using-ShellJS-Plugins).
|
|
54
|
-
|
|
55
|
-
## A quick note about the docs
|
|
56
|
-
|
|
57
|
-
For documentation on all the latest features, check out our
|
|
58
|
-
[README](https://github.com/shelljs/shelljs). To read docs that are consistent
|
|
59
|
-
with the latest release, check out [the npm
|
|
60
|
-
page](https://www.npmjs.com/package/shelljs).
|
|
61
|
-
|
|
62
|
-
## Installing
|
|
63
|
-
|
|
64
|
-
Via npm:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
$ npm install [-g] shelljs
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## Examples
|
|
71
|
-
|
|
72
|
-
```javascript
|
|
73
|
-
var shell = require('shelljs');
|
|
74
|
-
|
|
75
|
-
if (!shell.which('git')) {
|
|
76
|
-
shell.echo('Sorry, this script requires git');
|
|
77
|
-
shell.exit(1);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Copy files to release dir
|
|
81
|
-
shell.rm('-rf', 'out/Release');
|
|
82
|
-
shell.cp('-R', 'stuff/', 'out/Release');
|
|
83
|
-
|
|
84
|
-
// Replace macros in each .js file
|
|
85
|
-
shell.cd('lib');
|
|
86
|
-
shell.ls('*.js').forEach(function (file) {
|
|
87
|
-
shell.sed('-i', 'BUILD_VERSION', 'v0.1.2', file);
|
|
88
|
-
shell.sed('-i', /^.*REMOVE_THIS_LINE.*$/, '', file);
|
|
89
|
-
shell.sed('-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, shell.cat('macro.js'), file);
|
|
90
|
-
});
|
|
91
|
-
shell.cd('..');
|
|
92
|
-
|
|
93
|
-
// Run external tool synchronously
|
|
94
|
-
if (shell.exec('git commit -am "Auto-commit"').code !== 0) {
|
|
95
|
-
shell.echo('Error: Git commit failed');
|
|
96
|
-
shell.exit(1);
|
|
97
|
-
}
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Exclude options
|
|
101
|
-
|
|
102
|
-
If you need to pass a parameter that looks like an option, you can do so like:
|
|
103
|
-
|
|
104
|
-
```js
|
|
105
|
-
shell.grep('--', '-v', 'path/to/file'); // Search for "-v", no grep options
|
|
106
|
-
|
|
107
|
-
shell.cp('-R', '-dir', 'outdir'); // If already using an option, you're done
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
## Global vs. Local
|
|
111
|
-
|
|
112
|
-
We no longer recommend using a global-import for ShellJS (i.e.
|
|
113
|
-
`require('shelljs/global')`). While still supported for convenience, this
|
|
114
|
-
pollutes the global namespace, and should therefore only be used with caution.
|
|
115
|
-
|
|
116
|
-
Instead, we recommend a local import (standard for npm packages):
|
|
117
|
-
|
|
118
|
-
```javascript
|
|
119
|
-
var shell = require('shelljs');
|
|
120
|
-
shell.echo('hello world');
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
Alternatively, we also support importing as a module with:
|
|
124
|
-
|
|
125
|
-
```javascript
|
|
126
|
-
import shell from 'shelljs';
|
|
127
|
-
shell.echo('hello world');
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
<!-- DO NOT MODIFY BEYOND THIS POINT - IT'S AUTOMATICALLY GENERATED -->
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
## Command reference
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
All commands run synchronously, unless otherwise stated.
|
|
137
|
-
All commands accept standard bash globbing characters (`*`, `?`, etc.),
|
|
138
|
-
compatible with [`fast-glob`](https://www.npmjs.com/package/fast-glob).
|
|
139
|
-
|
|
140
|
-
For less-commonly used commands and features, please check out our [wiki
|
|
141
|
-
page](https://github.com/shelljs/shelljs/wiki).
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
### cat([options,] file [, file ...])
|
|
145
|
-
### cat([options,] file_array)
|
|
146
|
-
|
|
147
|
-
Available options:
|
|
148
|
-
|
|
149
|
-
+ `-n`: number all output lines
|
|
150
|
-
|
|
151
|
-
Examples:
|
|
152
|
-
|
|
153
|
-
```javascript
|
|
154
|
-
var str = cat('file*.txt');
|
|
155
|
-
var str = cat('file1', 'file2');
|
|
156
|
-
var str = cat(['file1', 'file2']); // same as above
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
Returns a [ShellString](#shellstringstr) containing the given file, or a
|
|
160
|
-
concatenated string containing the files if more than one file is given (a
|
|
161
|
-
new line character is introduced between each file).
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
### cd([dir])
|
|
165
|
-
|
|
166
|
-
Changes to directory `dir` for the duration of the script. Changes to home
|
|
167
|
-
directory if no argument is supplied. Returns a
|
|
168
|
-
[ShellString](#shellstringstr) to indicate success or failure.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
### chmod([options,] octal_mode || octal_string, file)
|
|
172
|
-
### chmod([options,] symbolic_mode, file)
|
|
173
|
-
|
|
174
|
-
Available options:
|
|
175
|
-
|
|
176
|
-
+ `-v`: output a diagnostic for every file processed
|
|
177
|
-
+ `-c`: like verbose, but report only when a change is made
|
|
178
|
-
+ `-R`: change files and directories recursively
|
|
179
|
-
|
|
180
|
-
Examples:
|
|
181
|
-
|
|
182
|
-
```javascript
|
|
183
|
-
chmod(755, '/Users/brandon');
|
|
184
|
-
chmod('755', '/Users/brandon'); // same as above
|
|
185
|
-
chmod('u+x', '/Users/brandon');
|
|
186
|
-
chmod('-R', 'a-w', '/Users/brandon');
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
Alters the permissions of a file or directory by either specifying the
|
|
190
|
-
absolute permissions in octal form or expressing the changes in symbols.
|
|
191
|
-
This command tries to mimic the POSIX behavior as much as possible.
|
|
192
|
-
Notable exceptions:
|
|
193
|
-
|
|
194
|
-
+ In symbolic modes, `a-r` and `-r` are identical. No consideration is
|
|
195
|
-
given to the `umask`.
|
|
196
|
-
+ There is no "quiet" option, since default behavior is to run silent.
|
|
197
|
-
+ Windows OS uses a very different permission model than POSIX. `chmod()`
|
|
198
|
-
does its best on Windows, but there are limits to how file permissions can
|
|
199
|
-
be set. Note that WSL (Windows subsystem for Linux) **does** follow POSIX,
|
|
200
|
-
so cross-platform compatibility should not be a concern there.
|
|
201
|
-
|
|
202
|
-
Returns a [ShellString](#shellstringstr) indicating success or failure.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
### cmd(arg1[, arg2, ...] [, options])
|
|
206
|
-
|
|
207
|
-
Available options:
|
|
208
|
-
|
|
209
|
-
+ `cwd: directoryPath`: change the current working directory only for this
|
|
210
|
-
cmd() invocation.
|
|
211
|
-
+ `maxBuffer: num`: Raise or decrease the default buffer size for
|
|
212
|
-
stdout/stderr.
|
|
213
|
-
+ `timeout`: Change the default timeout.
|
|
214
|
-
|
|
215
|
-
Examples:
|
|
216
|
-
|
|
217
|
-
```javascript
|
|
218
|
-
var version = cmd('node', '--version').stdout;
|
|
219
|
-
cmd('git', 'commit', '-am', `Add suport for node ${version}`);
|
|
220
|
-
console.log(cmd('echo', '1st arg', '2nd arg', '3rd arg').stdout)
|
|
221
|
-
console.log(cmd('echo', 'this handles ;, |, &, etc. as literal characters').stdout)
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
Executes the given command synchronously. This is intended as an easier
|
|
225
|
-
alternative for [exec()](#execcommand--options--callback), with better
|
|
226
|
-
security around globbing, comamnd injection, and variable expansion. This is
|
|
227
|
-
guaranteed to only run one external command, and won't give special
|
|
228
|
-
treatment for any shell characters (ex. this treats `|` as a literal
|
|
229
|
-
character, not as a shell pipeline).
|
|
230
|
-
This returns a [ShellString](#shellstringstr).
|
|
231
|
-
|
|
232
|
-
By default, this performs globbing on all platforms, but you can disable
|
|
233
|
-
this with `set('-f')`.
|
|
234
|
-
|
|
235
|
-
This **does not** support asynchronous mode. If you need asynchronous
|
|
236
|
-
command execution, check out [execa](https://www.npmjs.com/package/execa) or
|
|
237
|
-
the node builtin `child_process.execFile()` instead.
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
### cp([options,] source [, source ...], dest)
|
|
241
|
-
### cp([options,] source_array, dest)
|
|
242
|
-
|
|
243
|
-
Available options:
|
|
244
|
-
|
|
245
|
-
+ `-f`: force (default behavior)
|
|
246
|
-
+ `-n`: no-clobber
|
|
247
|
-
+ `-u`: only copy if `source` is newer than `dest`
|
|
248
|
-
+ `-r`, `-R`: recursive
|
|
249
|
-
+ `-L`: follow symlinks
|
|
250
|
-
+ `-P`: don't follow symlinks
|
|
251
|
-
+ `-p`: preserve file mode, ownership, and timestamps
|
|
252
|
-
|
|
253
|
-
Examples:
|
|
254
|
-
|
|
255
|
-
```javascript
|
|
256
|
-
cp('file1', 'dir1');
|
|
257
|
-
cp('-R', 'path/to/dir/', '~/newCopy/');
|
|
258
|
-
cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp');
|
|
259
|
-
cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
Copies files. Returns a [ShellString](#shellstringstr) indicating success
|
|
263
|
-
or failure.
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
### pushd([options,] [dir | '-N' | '+N'])
|
|
267
|
-
|
|
268
|
-
Available options:
|
|
269
|
-
|
|
270
|
-
+ `-n`: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated.
|
|
271
|
-
+ `-q`: Suppresses output to the console.
|
|
272
|
-
|
|
273
|
-
Arguments:
|
|
274
|
-
|
|
275
|
-
+ `dir`: Sets the current working directory to the top of the stack, then executes the equivalent of `cd dir`.
|
|
276
|
-
+ `+N`: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
|
|
277
|
-
+ `-N`: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
|
|
278
|
-
|
|
279
|
-
Examples:
|
|
280
|
-
|
|
281
|
-
```javascript
|
|
282
|
-
// process.cwd() === '/usr'
|
|
283
|
-
pushd('/etc'); // Returns /etc /usr
|
|
284
|
-
pushd('+1'); // Returns /usr /etc
|
|
285
|
-
```
|
|
286
|
-
|
|
287
|
-
Save the current directory on the top of the directory stack and then `cd` to `dir`. With no arguments, `pushd` exchanges the top two directories. Returns an array of paths in the stack.
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
### popd([options,] ['-N' | '+N'])
|
|
291
|
-
|
|
292
|
-
Available options:
|
|
293
|
-
|
|
294
|
-
+ `-n`: Suppress the normal directory change when removing directories from the stack, so that only the stack is manipulated.
|
|
295
|
-
+ `-q`: Suppresses output to the console.
|
|
296
|
-
|
|
297
|
-
Arguments:
|
|
298
|
-
|
|
299
|
-
+ `+N`: Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero.
|
|
300
|
-
+ `-N`: Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero.
|
|
301
|
-
|
|
302
|
-
Examples:
|
|
303
|
-
|
|
304
|
-
```javascript
|
|
305
|
-
echo(process.cwd()); // '/usr'
|
|
306
|
-
pushd('/etc'); // '/etc /usr'
|
|
307
|
-
echo(process.cwd()); // '/etc'
|
|
308
|
-
popd(); // '/usr'
|
|
309
|
-
echo(process.cwd()); // '/usr'
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
When no arguments are given, `popd` removes the top directory from the stack and performs a `cd` to the new top directory. The elements are numbered from 0, starting at the first directory listed with dirs (i.e., `popd` is equivalent to `popd +0`). Returns an array of paths in the stack.
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
### dirs([options | '+N' | '-N'])
|
|
316
|
-
|
|
317
|
-
Available options:
|
|
318
|
-
|
|
319
|
-
+ `-c`: Clears the directory stack by deleting all of the elements.
|
|
320
|
-
+ `-q`: Suppresses output to the console.
|
|
321
|
-
|
|
322
|
-
Arguments:
|
|
323
|
-
|
|
324
|
-
+ `+N`: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero.
|
|
325
|
-
+ `-N`: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero.
|
|
326
|
-
|
|
327
|
-
Display the list of currently remembered directories. Returns an array of paths in the stack, or a single path if `+N` or `-N` was specified.
|
|
328
|
-
|
|
329
|
-
See also: `pushd`, `popd`
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
### echo([options,] string [, string ...])
|
|
333
|
-
|
|
334
|
-
Available options:
|
|
335
|
-
|
|
336
|
-
+ `-e`: interpret backslash escapes (default)
|
|
337
|
-
+ `-n`: remove trailing newline from output
|
|
338
|
-
|
|
339
|
-
Examples:
|
|
340
|
-
|
|
341
|
-
```javascript
|
|
342
|
-
echo('hello world');
|
|
343
|
-
var str = echo('hello world');
|
|
344
|
-
echo('-n', 'no newline at end');
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
Prints `string` to stdout, and returns a [ShellString](#shellstringstr).
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
### exec(command [, options] [, callback])
|
|
351
|
-
|
|
352
|
-
Available options:
|
|
353
|
-
|
|
354
|
-
+ `async`: Asynchronous execution. If a callback is provided, it will be set to
|
|
355
|
-
`true`, regardless of the passed value (default: `false`).
|
|
356
|
-
+ `fatal`: Exit upon error (default: `false`).
|
|
357
|
-
+ `silent`: Do not echo program output to console (default: `false`).
|
|
358
|
-
+ `encoding`: Character encoding to use. Affects the values returned to stdout and stderr, and
|
|
359
|
-
what is written to stdout and stderr when not in silent mode (default: `'utf8'`).
|
|
360
|
-
+ and any option available to Node.js's
|
|
361
|
-
[`child_process.exec()`](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback)
|
|
362
|
-
|
|
363
|
-
Examples:
|
|
364
|
-
|
|
365
|
-
```javascript
|
|
366
|
-
var version = exec('node --version', {silent:true}).stdout;
|
|
367
|
-
|
|
368
|
-
var child = exec('some_long_running_process', {async:true});
|
|
369
|
-
child.stdout.on('data', function(data) {
|
|
370
|
-
/* ... do something with data ... */
|
|
371
|
-
});
|
|
372
|
-
|
|
373
|
-
exec('some_long_running_process', function(code, stdout, stderr) {
|
|
374
|
-
console.log('Exit code:', code);
|
|
375
|
-
console.log('Program output:', stdout);
|
|
376
|
-
console.log('Program stderr:', stderr);
|
|
377
|
-
});
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
Executes the given `command` _synchronously_, unless otherwise specified.
|
|
381
|
-
When in synchronous mode, this returns a [ShellString](#shellstringstr).
|
|
382
|
-
Otherwise, this returns the child process object, and the `callback`
|
|
383
|
-
receives the arguments `(code, stdout, stderr)`.
|
|
384
|
-
|
|
385
|
-
Not seeing the behavior you want? `exec()` runs everything through `sh`
|
|
386
|
-
by default (or `cmd.exe` on Windows), which differs from `bash`. If you
|
|
387
|
-
need bash-specific behavior, try out the `{shell: 'path/to/bash'}` option.
|
|
388
|
-
|
|
389
|
-
**Security note:** as `shell.exec()` executes an arbitrary string in the
|
|
390
|
-
system shell, it is **critical** to properly sanitize user input to avoid
|
|
391
|
-
**command injection**. For more context, consult the [Security
|
|
392
|
-
Guidelines](https://github.com/shelljs/shelljs/wiki/Security-guidelines).
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
### find(path [, path ...])
|
|
396
|
-
### find(path_array)
|
|
397
|
-
|
|
398
|
-
Examples:
|
|
399
|
-
|
|
400
|
-
```javascript
|
|
401
|
-
find('src', 'lib');
|
|
402
|
-
find(['src', 'lib']); // same as above
|
|
403
|
-
find('.').filter(function(file) { return file.match(/\.js$/); });
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
Returns a [ShellString](#shellstringstr) (with array-like properties) of all
|
|
407
|
-
files (however deep) in the given paths.
|
|
408
|
-
|
|
409
|
-
The main difference from `ls('-R', path)` is that the resulting file names
|
|
410
|
-
include the base directories (e.g., `lib/resources/file1` instead of just `file1`).
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
### grep([options,] regex_filter, file [, file ...])
|
|
414
|
-
### grep([options,] regex_filter, file_array)
|
|
415
|
-
|
|
416
|
-
Available options:
|
|
417
|
-
|
|
418
|
-
+ `-v`: Invert `regex_filter` (only print non-matching lines).
|
|
419
|
-
+ `-l`: Print only filenames of matching files.
|
|
420
|
-
+ `-i`: Ignore case.
|
|
421
|
-
+ `-n`: Print line numbers.
|
|
422
|
-
+ `-B <num>`: Show `<num>` lines before each result.
|
|
423
|
-
+ `-A <num>`: Show `<num>` lines after each result.
|
|
424
|
-
+ `-C <num>`: Show `<num>` lines before and after each result. -B and -A override this option.
|
|
425
|
-
|
|
426
|
-
Examples:
|
|
427
|
-
|
|
428
|
-
```javascript
|
|
429
|
-
grep('-v', 'GLOBAL_VARIABLE', '*.js');
|
|
430
|
-
grep('GLOBAL_VARIABLE', '*.js');
|
|
431
|
-
grep('-B', 3, 'GLOBAL_VARIABLE', '*.js');
|
|
432
|
-
grep({ '-B': 3 }, 'GLOBAL_VARIABLE', '*.js');
|
|
433
|
-
grep({ '-B': 3, '-C': 2 }, 'GLOBAL_VARIABLE', '*.js');
|
|
434
|
-
```
|
|
435
|
-
|
|
436
|
-
Reads input string from given files and returns a
|
|
437
|
-
[ShellString](#shellstringstr) containing all lines of the @ file that match
|
|
438
|
-
the given `regex_filter`.
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
### head([{'-n': \<num\>},] file [, file ...])
|
|
442
|
-
### head([{'-n': \<num\>},] file_array)
|
|
443
|
-
|
|
444
|
-
Available options:
|
|
445
|
-
|
|
446
|
-
+ `-n <num>`: Show the first `<num>` lines of the files
|
|
447
|
-
|
|
448
|
-
Examples:
|
|
449
|
-
|
|
450
|
-
```javascript
|
|
451
|
-
var str = head({'-n': 1}, 'file*.txt');
|
|
452
|
-
var str = head('file1', 'file2');
|
|
453
|
-
var str = head(['file1', 'file2']); // same as above
|
|
454
|
-
```
|
|
455
|
-
|
|
456
|
-
Read the start of a `file`. Returns a [ShellString](#shellstringstr).
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
### ln([options,] source, dest)
|
|
460
|
-
|
|
461
|
-
Available options:
|
|
462
|
-
|
|
463
|
-
+ `-s`: symlink
|
|
464
|
-
+ `-f`: force
|
|
465
|
-
|
|
466
|
-
Examples:
|
|
467
|
-
|
|
468
|
-
```javascript
|
|
469
|
-
ln('file', 'newlink');
|
|
470
|
-
ln('-sf', 'file', 'existing');
|
|
471
|
-
```
|
|
472
|
-
|
|
473
|
-
Links `source` to `dest`. Use `-f` to force the link, should `dest` already
|
|
474
|
-
exist. Returns a [ShellString](#shellstringstr) indicating success or
|
|
475
|
-
failure.
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
### ls([options,] [path, ...])
|
|
479
|
-
### ls([options,] path_array)
|
|
480
|
-
|
|
481
|
-
Available options:
|
|
482
|
-
|
|
483
|
-
+ `-R`: recursive
|
|
484
|
-
+ `-A`: all files (include files beginning with `.`, except for `.` and `..`)
|
|
485
|
-
+ `-L`: follow symlinks
|
|
486
|
-
+ `-d`: list directories themselves, not their contents
|
|
487
|
-
+ `-l`: provides more details for each file. Specifically, each file is
|
|
488
|
-
represented by a structured object with separate fields for file
|
|
489
|
-
metadata (see
|
|
490
|
-
[`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats)). The
|
|
491
|
-
return value also overrides `.toString()` to resemble `ls -l`'s
|
|
492
|
-
output format for human readability, but programmatic usage should
|
|
493
|
-
depend on the stable object format rather than the `.toString()`
|
|
494
|
-
representation.
|
|
495
|
-
|
|
496
|
-
Examples:
|
|
497
|
-
|
|
498
|
-
```javascript
|
|
499
|
-
ls('projs/*.js');
|
|
500
|
-
ls('projs/**/*.js'); // Find all js files recursively in projs
|
|
501
|
-
ls('-R', '/users/me', '/tmp');
|
|
502
|
-
ls('-R', ['/users/me', '/tmp']); // same as above
|
|
503
|
-
ls('-l', 'file.txt'); // { name: 'file.txt', mode: 33188, nlink: 1, ...}
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
Returns a [ShellString](#shellstringstr) (with array-like properties) of all
|
|
507
|
-
the files in the given `path`, or files in the current directory if no
|
|
508
|
-
`path` is provided.
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
### mkdir([options,] dir [, dir ...])
|
|
512
|
-
### mkdir([options,] dir_array)
|
|
513
|
-
|
|
514
|
-
Available options:
|
|
515
|
-
|
|
516
|
-
+ `-p`: full path (and create intermediate directories, if necessary)
|
|
517
|
-
|
|
518
|
-
Examples:
|
|
519
|
-
|
|
520
|
-
```javascript
|
|
521
|
-
mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g');
|
|
522
|
-
mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above
|
|
523
|
-
```
|
|
524
|
-
|
|
525
|
-
Creates directories. Returns a [ShellString](#shellstringstr) indicating
|
|
526
|
-
success or failure.
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
### mv([options ,] source [, source ...], dest')
|
|
530
|
-
### mv([options ,] source_array, dest')
|
|
531
|
-
|
|
532
|
-
Available options:
|
|
533
|
-
|
|
534
|
-
+ `-f`: force (default behavior)
|
|
535
|
-
+ `-n`: no-clobber
|
|
536
|
-
|
|
537
|
-
Examples:
|
|
538
|
-
|
|
539
|
-
```javascript
|
|
540
|
-
mv('-n', 'file', 'dir/');
|
|
541
|
-
mv('file1', 'file2', 'dir/');
|
|
542
|
-
mv(['file1', 'file2'], 'dir/'); // same as above
|
|
543
|
-
```
|
|
544
|
-
|
|
545
|
-
Moves `source` file(s) to `dest`. Returns a [ShellString](#shellstringstr)
|
|
546
|
-
indicating success or failure.
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
### pwd()
|
|
550
|
-
|
|
551
|
-
Returns the current directory as a [ShellString](#shellstringstr).
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
### rm([options,] file [, file ...])
|
|
555
|
-
### rm([options,] file_array)
|
|
556
|
-
|
|
557
|
-
Available options:
|
|
558
|
-
|
|
559
|
-
+ `-f`: force
|
|
560
|
-
+ `-r, -R`: recursive
|
|
561
|
-
|
|
562
|
-
Examples:
|
|
563
|
-
|
|
564
|
-
```javascript
|
|
565
|
-
rm('-rf', '/tmp/*');
|
|
566
|
-
rm('some_file.txt', 'another_file.txt');
|
|
567
|
-
rm(['some_file.txt', 'another_file.txt']); // same as above
|
|
568
|
-
```
|
|
569
|
-
|
|
570
|
-
Removes files. Returns a [ShellString](#shellstringstr) indicating success
|
|
571
|
-
or failure.
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
### sed([options,] search_regex, replacement, file [, file ...])
|
|
575
|
-
### sed([options,] search_regex, replacement, file_array)
|
|
576
|
-
|
|
577
|
-
Available options:
|
|
578
|
-
|
|
579
|
-
+ `-i`: Replace contents of `file` in-place. _Note that no backups will be created!_
|
|
580
|
-
|
|
581
|
-
Examples:
|
|
582
|
-
|
|
583
|
-
```javascript
|
|
584
|
-
sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js');
|
|
585
|
-
```
|
|
586
|
-
|
|
587
|
-
Reads an input string from `file`s, line by line, and performs a JavaScript `replace()` on
|
|
588
|
-
each of the lines from the input string using the given `search_regex` and `replacement` string or
|
|
589
|
-
function. Returns the new [ShellString](#shellstringstr) after replacement.
|
|
590
|
-
|
|
591
|
-
Note:
|
|
592
|
-
|
|
593
|
-
Like unix `sed`, ShellJS `sed` supports capture groups. Capture groups are specified
|
|
594
|
-
using the `$n` syntax:
|
|
595
|
-
|
|
596
|
-
```javascript
|
|
597
|
-
sed(/(\w+)\s(\w+)/, '$2, $1', 'file.txt');
|
|
598
|
-
```
|
|
599
|
-
|
|
600
|
-
Also, like unix `sed`, ShellJS `sed` runs replacements on each line from the input file
|
|
601
|
-
(split by '\n') separately, so `search_regex`es that span more than one line (or include '\n')
|
|
602
|
-
will not match anything and nothing will be replaced.
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
### set(options)
|
|
606
|
-
|
|
607
|
-
Available options:
|
|
608
|
-
|
|
609
|
-
+ `+/-e`: exit upon error (`config.fatal`)
|
|
610
|
-
+ `+/-v`: verbose: show all commands (`config.verbose`)
|
|
611
|
-
+ `+/-f`: disable filename expansion (globbing)
|
|
612
|
-
|
|
613
|
-
Examples:
|
|
614
|
-
|
|
615
|
-
```javascript
|
|
616
|
-
set('-e'); // exit upon first error
|
|
617
|
-
set('+e'); // this undoes a "set('-e')"
|
|
618
|
-
```
|
|
619
|
-
|
|
620
|
-
Sets global configuration variables.
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
### sort([options,] file [, file ...])
|
|
624
|
-
### sort([options,] file_array)
|
|
625
|
-
|
|
626
|
-
Available options:
|
|
627
|
-
|
|
628
|
-
+ `-r`: Reverse the results
|
|
629
|
-
+ `-n`: Compare according to numerical value
|
|
630
|
-
|
|
631
|
-
Examples:
|
|
632
|
-
|
|
633
|
-
```javascript
|
|
634
|
-
sort('foo.txt', 'bar.txt');
|
|
635
|
-
sort('-r', 'foo.txt');
|
|
636
|
-
```
|
|
637
|
-
|
|
638
|
-
Return the contents of the `file`s, sorted line-by-line as a
|
|
639
|
-
[ShellString](#shellstringstr). Sorting multiple files mixes their content
|
|
640
|
-
(just as unix `sort` does).
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
### tail([{'-n': \<num\>},] file [, file ...])
|
|
644
|
-
### tail([{'-n': \<num\>},] file_array)
|
|
645
|
-
|
|
646
|
-
Available options:
|
|
647
|
-
|
|
648
|
-
+ `-n <num>`: Show the last `<num>` lines of `file`s
|
|
649
|
-
|
|
650
|
-
Examples:
|
|
651
|
-
|
|
652
|
-
```javascript
|
|
653
|
-
var str = tail({'-n': 1}, 'file*.txt');
|
|
654
|
-
var str = tail('file1', 'file2');
|
|
655
|
-
var str = tail(['file1', 'file2']); // same as above
|
|
656
|
-
```
|
|
657
|
-
|
|
658
|
-
Read the end of a `file`. Returns a [ShellString](#shellstringstr).
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
### tempdir()
|
|
662
|
-
|
|
663
|
-
Examples:
|
|
664
|
-
|
|
665
|
-
```javascript
|
|
666
|
-
var tmp = tempdir(); // "/tmp" for most *nix platforms
|
|
667
|
-
```
|
|
668
|
-
|
|
669
|
-
Searches and returns string containing a writeable, platform-dependent temporary directory.
|
|
670
|
-
Follows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir).
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
### test(expression)
|
|
674
|
-
|
|
675
|
-
Available expression primaries:
|
|
676
|
-
|
|
677
|
-
+ `'-b', 'path'`: true if path is a block device
|
|
678
|
-
+ `'-c', 'path'`: true if path is a character device
|
|
679
|
-
+ `'-d', 'path'`: true if path is a directory
|
|
680
|
-
+ `'-e', 'path'`: true if path exists
|
|
681
|
-
+ `'-f', 'path'`: true if path is a regular file
|
|
682
|
-
+ `'-L', 'path'`: true if path is a symbolic link
|
|
683
|
-
+ `'-p', 'path'`: true if path is a pipe (FIFO)
|
|
684
|
-
+ `'-S', 'path'`: true if path is a socket
|
|
685
|
-
|
|
686
|
-
Examples:
|
|
687
|
-
|
|
688
|
-
```javascript
|
|
689
|
-
if (test('-d', path)) { /* do something with dir */ };
|
|
690
|
-
if (!test('-f', path)) continue; // skip if it's not a regular file
|
|
691
|
-
```
|
|
692
|
-
|
|
693
|
-
Evaluates `expression` using the available primaries and returns
|
|
694
|
-
corresponding boolean value.
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
### ShellString.prototype.to(file)
|
|
698
|
-
|
|
699
|
-
Examples:
|
|
700
|
-
|
|
701
|
-
```javascript
|
|
702
|
-
cat('input.txt').to('output.txt');
|
|
703
|
-
```
|
|
704
|
-
|
|
705
|
-
Analogous to the redirection operator `>` in Unix, but works with
|
|
706
|
-
`ShellStrings` (such as those returned by `cat`, `grep`, etc.). _Like Unix
|
|
707
|
-
redirections, `to()` will overwrite any existing file!_ Returns the same
|
|
708
|
-
[ShellString](#shellstringstr) this operated on, to support chaining.
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
### ShellString.prototype.toEnd(file)
|
|
712
|
-
|
|
713
|
-
Examples:
|
|
714
|
-
|
|
715
|
-
```javascript
|
|
716
|
-
cat('input.txt').toEnd('output.txt');
|
|
717
|
-
```
|
|
718
|
-
|
|
719
|
-
Analogous to the redirect-and-append operator `>>` in Unix, but works with
|
|
720
|
-
`ShellStrings` (such as those returned by `cat`, `grep`, etc.). Returns the
|
|
721
|
-
same [ShellString](#shellstringstr) this operated on, to support chaining.
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
### touch([options,] file [, file ...])
|
|
725
|
-
### touch([options,] file_array)
|
|
726
|
-
|
|
727
|
-
Available options:
|
|
728
|
-
|
|
729
|
-
+ `-a`: Change only the access time
|
|
730
|
-
+ `-c`: Do not create any files
|
|
731
|
-
+ `-m`: Change only the modification time
|
|
732
|
-
+ `{'-d': someDate}`, `{date: someDate}`: Use a `Date` instance (ex. `someDate`)
|
|
733
|
-
instead of current time
|
|
734
|
-
+ `{'-r': file}`, `{reference: file}`: Use `file`'s times instead of current
|
|
735
|
-
time
|
|
736
|
-
|
|
737
|
-
Examples:
|
|
738
|
-
|
|
739
|
-
```javascript
|
|
740
|
-
touch('source.js');
|
|
741
|
-
touch('-c', 'path/to/file.js');
|
|
742
|
-
touch({ '-r': 'referenceFile.txt' }, 'path/to/file.js');
|
|
743
|
-
touch({ '-d': new Date('December 17, 1995 03:24:00'), '-m': true }, 'path/to/file.js');
|
|
744
|
-
touch({ date: new Date('December 17, 1995 03:24:00') }, 'path/to/file.js');
|
|
745
|
-
```
|
|
746
|
-
|
|
747
|
-
Update the access and modification times of each file to the current time.
|
|
748
|
-
A file argument that does not exist is created empty, unless `-c` is supplied.
|
|
749
|
-
This is a partial implementation of
|
|
750
|
-
[`touch(1)`](http://linux.die.net/man/1/touch). Returns a
|
|
751
|
-
[ShellString](#shellstringstr) indicating success or failure.
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
### uniq([options,] [input, [output]])
|
|
755
|
-
|
|
756
|
-
Available options:
|
|
757
|
-
|
|
758
|
-
+ `-i`: Ignore case while comparing
|
|
759
|
-
+ `-c`: Prefix lines by the number of occurrences
|
|
760
|
-
+ `-d`: Only print duplicate lines, one for each group of identical lines
|
|
761
|
-
|
|
762
|
-
Examples:
|
|
763
|
-
|
|
764
|
-
```javascript
|
|
765
|
-
uniq('foo.txt');
|
|
766
|
-
uniq('-i', 'foo.txt');
|
|
767
|
-
uniq('-cd', 'foo.txt', 'bar.txt');
|
|
768
|
-
```
|
|
769
|
-
|
|
770
|
-
Filter adjacent matching lines from `input`. Returns a
|
|
771
|
-
[ShellString](#shellstringstr).
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
### which(command)
|
|
775
|
-
|
|
776
|
-
Examples:
|
|
777
|
-
|
|
778
|
-
```javascript
|
|
779
|
-
var nodeExec = which('node');
|
|
780
|
-
```
|
|
781
|
-
|
|
782
|
-
Searches for `command` in the system's `PATH`. On Windows, this uses the
|
|
783
|
-
`PATHEXT` variable to append the extension if it's not already executable.
|
|
784
|
-
Returns a [ShellString](#shellstringstr) containing the absolute path to
|
|
785
|
-
`command`.
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
### exit(code)
|
|
789
|
-
|
|
790
|
-
Exits the current process with the given exit `code`.
|
|
791
|
-
|
|
792
|
-
### error()
|
|
793
|
-
|
|
794
|
-
Tests if error occurred in the last command. Returns a truthy value if an
|
|
795
|
-
error returned, or a falsy value otherwise.
|
|
796
|
-
|
|
797
|
-
**Note**: do not rely on the
|
|
798
|
-
return value to be an error message. If you need the last error message, use
|
|
799
|
-
the `.stderr` attribute from the last command's return value instead.
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
### errorCode()
|
|
803
|
-
|
|
804
|
-
Returns the error code from the last command.
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
### ShellString(str)
|
|
808
|
-
|
|
809
|
-
Examples:
|
|
810
|
-
|
|
811
|
-
```javascript
|
|
812
|
-
var foo = new ShellString('hello world');
|
|
813
|
-
```
|
|
814
|
-
|
|
815
|
-
This is a dedicated type returned by most ShellJS methods, which wraps a
|
|
816
|
-
string (or array) value. This has all the string (or array) methods, but
|
|
817
|
-
also exposes extra methods: [`.to()`](#shellstringprototypetofile),
|
|
818
|
-
[`.toEnd()`](#shellstringprototypetoendfile), and all the pipe-able methods
|
|
819
|
-
(ex. `.cat()`, `.grep()`, etc.). This can be easily converted into a string
|
|
820
|
-
by calling `.toString()`.
|
|
821
|
-
|
|
822
|
-
This type also exposes the corresponding command's stdout, stderr, and
|
|
823
|
-
return status code via the `.stdout` (string), `.stderr` (string), and
|
|
824
|
-
`.code` (number) properties respectively.
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
### env['VAR_NAME']
|
|
828
|
-
|
|
829
|
-
Object containing environment variables (both getter and setter). Shortcut
|
|
830
|
-
to `process.env`.
|
|
831
|
-
|
|
832
|
-
### Pipes
|
|
833
|
-
|
|
834
|
-
Examples:
|
|
835
|
-
|
|
836
|
-
```javascript
|
|
837
|
-
grep('foo', 'file1.txt', 'file2.txt').sed(/o/g, 'a').to('output.txt');
|
|
838
|
-
echo("files with o's in the name:\n" + ls().grep('o'));
|
|
839
|
-
cat('test.js').exec('node'); // pipe to exec() call
|
|
840
|
-
```
|
|
841
|
-
|
|
842
|
-
Commands can send their output to another command in a pipe-like fashion.
|
|
843
|
-
`sed`, `grep`, `cat`, `exec`, `to`, and `toEnd` can appear on the right-hand
|
|
844
|
-
side of a pipe. Pipes can be chained.
|
|
845
|
-
|
|
846
|
-
## Configuration
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
### config.silent
|
|
850
|
-
|
|
851
|
-
Example:
|
|
852
|
-
|
|
853
|
-
```javascript
|
|
854
|
-
var sh = require('shelljs');
|
|
855
|
-
var silentState = sh.config.silent; // save old silent state
|
|
856
|
-
sh.config.silent = true;
|
|
857
|
-
/* ... */
|
|
858
|
-
sh.config.silent = silentState; // restore old silent state
|
|
859
|
-
```
|
|
860
|
-
|
|
861
|
-
Suppresses all command output if `true`, except for `echo()` calls.
|
|
862
|
-
Default is `false`.
|
|
863
|
-
|
|
864
|
-
### config.fatal
|
|
865
|
-
|
|
866
|
-
Example:
|
|
867
|
-
|
|
868
|
-
```javascript
|
|
869
|
-
require('shelljs/global');
|
|
870
|
-
config.fatal = true; // or set('-e');
|
|
871
|
-
cp('this_file_does_not_exist', '/dev/null'); // throws Error here
|
|
872
|
-
/* more commands... */
|
|
873
|
-
```
|
|
874
|
-
|
|
875
|
-
If `true`, the script will throw a Javascript error when any shell.js
|
|
876
|
-
command encounters an error. Default is `false`. This is analogous to
|
|
877
|
-
Bash's `set -e`.
|
|
878
|
-
|
|
879
|
-
### config.verbose
|
|
880
|
-
|
|
881
|
-
Example:
|
|
882
|
-
|
|
883
|
-
```javascript
|
|
884
|
-
config.verbose = true; // or set('-v');
|
|
885
|
-
cd('dir/');
|
|
886
|
-
rm('-rf', 'foo.txt', 'bar.txt');
|
|
887
|
-
exec('echo hello');
|
|
888
|
-
```
|
|
889
|
-
|
|
890
|
-
Will print each command as follows:
|
|
891
|
-
|
|
892
|
-
```
|
|
893
|
-
cd dir/
|
|
894
|
-
rm -rf foo.txt bar.txt
|
|
895
|
-
exec echo hello
|
|
896
|
-
```
|
|
897
|
-
|
|
898
|
-
### config.globOptions (deprecated)
|
|
899
|
-
|
|
900
|
-
**Deprecated**: we recommend that you do not edit `config.globOptions`.
|
|
901
|
-
Support for this configuration option may be changed or removed in a future
|
|
902
|
-
ShellJS release.
|
|
903
|
-
|
|
904
|
-
**Breaking change**: ShellJS v0.8.x uses `node-glob`. Starting with ShellJS
|
|
905
|
-
v0.9.x, `config.globOptions` is compatible with `fast-glob`.
|
|
906
|
-
|
|
907
|
-
Example:
|
|
908
|
-
|
|
909
|
-
```javascript
|
|
910
|
-
config.globOptions = {nodir: true};
|
|
911
|
-
```
|
|
912
|
-
|
|
913
|
-
`config.globOptions` changes how ShellJS expands glob (wildcard)
|
|
914
|
-
expressions. See
|
|
915
|
-
[fast-glob](https://github.com/mrmlnc/fast-glob?tab=readme-ov-file#options-3)
|
|
916
|
-
for available options. Be aware that modifying `config.globOptions` **may
|
|
917
|
-
break ShellJS functionality.**
|
|
918
|
-
|
|
919
|
-
### config.reset()
|
|
920
|
-
|
|
921
|
-
Example:
|
|
922
|
-
|
|
923
|
-
```javascript
|
|
924
|
-
var shell = require('shelljs');
|
|
925
|
-
// Make changes to shell.config, and do stuff...
|
|
926
|
-
/* ... */
|
|
927
|
-
shell.config.reset(); // reset to original state
|
|
928
|
-
// Do more stuff, but with original settings
|
|
929
|
-
/* ... */
|
|
930
|
-
```
|
|
931
|
-
|
|
932
|
-
Reset `shell.config` to the defaults:
|
|
933
|
-
|
|
934
|
-
```javascript
|
|
935
|
-
{
|
|
936
|
-
fatal: false,
|
|
937
|
-
globOptions: {},
|
|
938
|
-
maxdepth: 255,
|
|
939
|
-
noglob: false,
|
|
940
|
-
silent: false,
|
|
941
|
-
verbose: false,
|
|
942
|
-
}
|
|
943
|
-
```
|
|
944
|
-
|
|
945
|
-
## Team
|
|
946
|
-
|
|
947
|
-
| [](https://github.com/nfischer) |
|
|
948
|
-
|:---:|
|
|
949
|
-
| [Nate Fischer](https://github.com/nfischer) |
|