spawn-proxy
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

spawn-proxy

A simple wrapper over child_process.spawn()

Example usage

TypeScript

import { spawnProxy: $ } from 'spawn-proxy';

$.ls['-al']({
  stdio: ['ignore', process.stdout, process.stderr],
}).then(
  () => console.log('done'),
  error => console.log({ error })
);

JavaScript

const { spawnProxy: $ } = require('spawn-proxy');

$.ls['-al']({
  stdio: ['ignore', process.stdout, process.stderr],
}).then(
  () => console.log('done'),
  error => console.log({ error })
);

Readme

Keywords

none

Package Sidebar

Install

npm i spawn-proxy

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • apatryda