nested-pipe-script.js
This file
Path
test/fixtures/nested-pipe-script.js
7 lines · 393 bytes · JavaScript
Last changed by
Improve `verbose` option (#883)ehmickybefore adoption7d0943f
History of this fileTake it
Improve `verbose` option (#883)ehmickybefore adoption7d0943f
lines 1–7why, one step back1#!/usr/bin/env node2import process from 'node:process';3import {$} from '../../index.js';45const [sourceOptions, sourceFile, sourceArg, destinationOptions, destinationFile, destinationArg] = process.argv.slice(2);6await $(JSON.parse(sourceOptions))`${sourceFile} ${sourceArg}`7 .pipe(JSON.parse(destinationOptions))`${destinationFile} ${destinationArg === undefined ? [] : [destinationArg]}`;