nested-big-array.js
This file
Path
test/fixtures/nested-big-array.js
8 lines · 371 bytes · JavaScript
Last changed by
Print output with `verbose` option (#884)ehmickybefore adoption6fda30f
History of this fileTake it
Print output with `verbose` option (#884)ehmickybefore adoption6fda30f
lines 1–8why, one step back1#!/usr/bin/env node2import process from 'node:process';3import {execa} from '../../index.js';4import {getOutputGenerator} from '../helpers/generator.js';56const bigArray = Array.from({length: 100}, (_, index) => index);7const [options, file, ...args] = process.argv.slice(2);8await execa(file, args, {stdout: getOutputGenerator(bigArray, true), ...JSON.parse(options)});