max-buffer.js
This file
Path
test/fixtures/max-buffer.js
13 lines · 331 bytes · JavaScript
Last changed by
Add `result.stdio` and `error.stdio` (#676)ehmickybefore adoption62a5207
History of this fileTake it
1234567891011121314#!/usr/bin/env nodeimport process from 'node:process';import {writeSync} from 'node:fs';
const index = Number(process.argv[2]);const bytes = '.'.repeat(Number(process.argv[3] || 1e7));if (index === 1) { process.stdout.write(bytes);} else if (index === 2) { process.stderr.write(bytes);} else { writeSync(index, bytes);}