Skip to content
Myr

expose `.spawn`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sindre Sorhus · committed by Sindre Sorhus · parent a0c035c · Browse files · 3 files+12 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+12 added−0 removed

  • other:+12 added−0 removed

3 files+12 added−0 removed

modified:index.js+2 added
modified:readme.md+6 added
modified:test.js+4 added
24 unmodified lines
25 const {stdout} = await fn.shell('echo foo');26 t.is(stdout, 'foo');27});2829test('execa.spawn()', t => {30 t.is(typeof fn.spawn('echo').pid, 'number');31});3233test('stripEof option', async t => {34 const {stdout} = await fn('echo', ['foo'], {stripEof: false});35 t.is(stdout, 'foo\n');36});
10 unmodified lines