Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

@perl/qx

1.0.2 • Public • Published

@perl/qx

Run a command and capture it's return status.

const system = require('@perl/qx')
 
// capture the output from `ls -l`
const output = await qx`ls -l`
 
// with promises
qx`ls -l`.then(output => console.log(output))
 
// also available in synchronous version
const output = system.sync`ls -l`
 

Origins

This is intended to provide the same functionality as the Perl qx syntax.

Keywords

none

install

npm i @perl/qx

Downloadsweekly downloads

10

version

1.0.2

license

ISC

homepage

perl

repository

Gitgithub

last publish

collaborators

  • avatar