Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 968 Bytes

File metadata and controls

44 lines (30 loc) · 968 Bytes

concurrently

Allows running concurrent shell commands and supports multiple levels of nesting. Commands have alternating colors and are prefixed with their index.

Usage

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!'"]);

Installation

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.