Skip to content
Myr

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 file

Take it

Improve `verbose` option (#883)ehmickybefore adoption7d0943f

lines 1–7why, one step back
1#!/usr/bin/env node
2import 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]}`;