Skip to content
Myr

sub-process-exit

This file

Path

fixtures/sub-process-exit

7 lines · 210 bytes

Last changed by

Improve `cleanup` option (code quality, tests, documentation) (#225)ehmickybefore adoption659f444

History of this file

Take it

Improve `cleanup` option (code quality, tests, documentation) (#225)ehmickybefore adoption659f444

lines 1–7why, one step back
1#!/usr/bin/env node
2'use strict';3const execa = require('..');45const cleanup = process.argv[2] === 'true';6const detached = process.argv[3] === 'true';7execa('node', ['./fixtures/noop'], {cleanup, detached});