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
12345678#!/usr/bin/env nodeimport process from 'node:process';import {$} from '../../index.js';
const [sourceOptions, sourceFile, sourceArg, destinationOptions, destinationFile, destinationArg] = process.argv.slice(2);await $(JSON.parse(sourceOptions))`${sourceFile} ${sourceArg}` .pipe(JSON.parse(destinationOptions))`${destinationFile} ${destinationArg === undefined ? [] : [destinationArg]}`;