zx icon indicating copy to clipboard operation
zx copied to clipboard

A tool for writing better scripts

Results 124 zx issues
Sort by recently updated
recently updated
newest added

I'm struggling to use zx when installed locally. It seems I have to install it globally if I want to run it directly with `./pre-commit.mjs`. Or if I add `node_modules/.bin`...

The [open](https://www.npmjs.com/package/open) package is quite useful in cross-platform scripts. Currently I don't think there is a simple way to open a link in the user default browser.

Fixes #491 - [x] Tests pass - [x] Appropriate changes to README are included in PR - [x] Types updated

```js async function each(ps) { for (let p of ps) { p.halt() } for (let p of ps) { await p.run() } } await each([$`say Hello`, $`say World`]) ```

Why does the log function default to writing to stderr? Using a custom log function isn't hard, but my ezpz version just involved me copy-pasta-ing your `formatCmd` function. IMO the...

feature

For better Windows support.

feature

## Expected Behavior Support for dotenv files ## Actual Behavior Do not support dotenv files ## Motivation These files are specially useful in order to avoid to type same environment...

feature

## Expected Behavior Importing in an otherwise empty vitest test file yields: ``` ReferenceError: Cannot access '$' before initialization at AsyncHook.syncCwd (file:///Users/n8/tamagui/node_modules/zx/build/core.js:301:5) at emitHook (node:internal/async_hooks:233:38) at promiseResolveHook (node:internal/async_hooks:365:3) at ModuleJob.run...

## Expected Behavior The 'TypeScript' section of the README file would provide accurate, complete, and up to date information of how to use `zx` with TypeScript. ## Actual Behavior The...