Allows running concurrent shell commands and supports multiple levels of nesting. Commands have alternating colors and are prefixed with their index.
CLI:
# Run multiple commands concurrently
concurrently "deno lint" "deno fmt" "sleep 1 && echo 'it worked!'"
# Nested concurrent commands
concurrently \
"concurrently 'deno lint' 'deno fmt'" \
"sleep 1 && echo 'it worked!'"
Code:
import concurrently from "jsr:@orgsoft/concurrently";
await concurrently(["deno lint", "deno fmt", "sleep 1 && echo 'it worked!'"]);
Recommended:
deno install -frAg -n concurrently jsr:@orgsoft/concurrently
More restrictive:
deno install -frg --allow-env=SHELL -n concurrently jsr:@orgsoft/concurrently
deno
is required to install and use concurrently
. You can change
the name of the globally installed command by changing -n concurrently
to
-n mycommandname
.