Systemcluster / cross-run

Utility to run commands with cross-platform environment variable expansion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cross-run

Utility to run commands with cross-platform environment variable expansion and more.

Combines the utility of cross-env, cross-var, dotenv-cli, concurrently and more in one simple command.

Examples

# Run a command with environment variables
cross-run echo $ENV_VAR
# Set environment variables for a command
cross-run NEW_ENV_VAR=bar echo $NEW_ENV_VAR
# Run a command with environment variables from .env
cross-run -e echo $ENV_VAR_FROM_DOTENV
# Run multiple package scripts with pnpm, yarn or npm in parallel
cross-run -p NODE_ENV=production npm:test npm:build
# Run multiple package scripts with pnpm, yarn or npm with wildcard expansion
cross-run -m npm:check:* npm:build "echo done!"

About

Utility to run commands with cross-platform environment variable expansion

License:BSD 2-Clause "Simplified" License


Languages

Language:TypeScript 79.4%Language:JavaScript 20.6%