↩︎

async-execute

🦅 Execute command in a child process

const execute = require('async-execute');

const commit_message = await execute('git log -1 --pretty=%B'); // Committed some changes

Options

Pipe stdout and stderr (default: false)

await execute('npm t', {pipe: true});

Exit process with child's exit code (default: false)

await execute('npm t', {pipe: true, exit: true});