Execa Versions Save

Process execution for humans

v8.0.1

8 months ago

Fixes

https://github.com/sindresorhus/execa/compare/v8.0.0...v8.0.1

v8.0.0

9 months ago

Breaking

  • Require Node.js 16.17.0 and later (#569)

https://github.com/sindresorhus/execa/compare/v7.2.0...v8.0.0

v7.2.0

9 months ago

v7.1.1

1 year ago

Features

Bug fixes

v7.1.0

1 year ago

Features

import {$} from 'execa';

const branch = await $`git branch --show-current`;
await $`dep deploy --branch=${branch}`;
// Similar to `echo unicorns > stdout.txt` in Bash
await execa('echo', ['unicorns']).pipeStdout('stdout.txt');

// Similar to `echo unicorns 2> stdout.txt` in Bash
await execa('echo', ['unicorns']).pipeStderr('stderr.txt');

// Similar to `echo unicorns &> stdout.txt` in Bash
await execa('echo', ['unicorns'], {all: true}).pipeAll('all.txt');
// Similar to `cat < stdin.txt` in Bash
const {stdout} = await execa('cat', {inputFile: 'stdin.txt'});
console.log(stdout);
//=> 'unicorns'
  • Add verbose option to print each command on stderr before executing it. This can also be enabled by setting the NODE_DEBUG=execa environment variable in the current process.
> node file.js
unicorns
rainbows

> NODE_DEBUG=execa node file.js
[16:50:03.305] echo unicorns
unicorns
[16:50:03.308] echo rainbows
rainbows

v7.0.0

1 year ago

Breaking

  • Require Node.js 14 and later (#497) a09cbc0

Fixes

  • Emit end event on streams when process fails (#518) 30c7a7a
  • Fix incorrect execaNode signature in index.d.ts (#506) 1f7677c

https://github.com/sindresorhus/execa/compare/v6.1.0...v7.0.0

v6.1.0

2 years ago
  • Support AbortController (#490) c6e791a
  • Allow cwd and localDir options to be URLs (#492) 93ab929

https://github.com/sindresorhus/execa/compare/v6.0.0...v6.1.0

v6.0.0

2 years ago

Breaking

  • Require Node.js 12.20 (#478) 7707880
  • This package is now pure ESM. Please read this.
  • Moved from a default export to named exports.
    • require('execa')import {execa} from 'execa'
    • require('execa').syncimport {execaSync} from 'execa'
    • require('execa').commandimport {execaCommand} from 'execa'
    • require('execa').commandSyncimport {execaCommandSync} from 'execa'
    • require('execa').nodeimport {execaNode} from 'execa'

https://github.com/sindresorhus/execa/compare/v5.1.1...v6.0.0

v5.1.1

2 years ago
  • Fix error message when user passes a single array argument (#468) 2b9c0e1

https://github.com/sindresorhus/execa/compare/v5.1.0...v5.1.1

v5.1.0

2 years ago