nested-input.js
This file
Path
test/fixtures/nested-input.js
7 lines · 291 bytes · JavaScript
Last changed by
Fix using both `encoding: 'utf16le'` and `lines`/`verbose` options (#931)ehmickybefore adoptiona480e1d
History of this fileTake it
Fix using both `encoding: 'utf16le'` and `lines`/`verbose` options (#931)ehmickybefore adoptiona480e1d
lines 1–7why, one step back1#!/usr/bin/env node2import process from 'node:process';3import {execa} from '../../index.js';4import {foobarUtf16Uint8Array} from '../helpers/input.js';56const [options, file, ...args] = process.argv.slice(2);7await execa(file, args, {...JSON.parse(options), input: foobarUtf16Uint8Array});