nested.js
This file
Path
test/fixtures/nested.js
11 lines · 312 bytes · JavaScript
Last changed by
Upgrade xo (#980)ehmickybefore adoptionccfa412
History of this fileTake it
123456789101112#!/usr/bin/env nodeimport process from 'node:process';import {execa} from '../../index.js';
const [options, file, ...commandArguments] = process.argv.slice(2);try { const result = await execa(file, commandArguments, JSON.parse(options)); process.send({result});} catch (error) { process.send({error});}