4.2.1 • Published 3 years ago

flex-plugins-utils-spawn v4.2.1

Weekly downloads
1,068
License
MIT
Repository
github
Last release
3 years ago

npm npm NpmLicense

Flex Plugin Utils Spawn

A simple wrapper for the execa library.

Usage

This library returns 4 methods:

spawn

The default spawn export is for spawning any process.

import spawn from 'flex-plugins-utils-spawn';

const { stdout, exitCode, stderr, stdout } = await spawn('node', ['index.js', '--name', 'test'], options);

node

This is a wrapper that spawns a node process.

import { node } from 'flex-plugins-utils-spawn';

const { stdout, exitCode, stderr, stdout } = await node(['index.js', '--name', 'test'], options);

// This is just a wrapper and is identical to
const { stdout, exitCode, stderr, stdout } = await spawn('node', ['index.js', '--name', 'test'], options);

npm

This is a wrapper that spawns a npm process.

import { npm } from 'flex-plugins-utils-spawn';

const { stdout, exitCode, stderr, stdout } = await npm(['index.js', '--name', 'test'], options);

// This is just a wrapper and is identical to
const { stdout, exitCode, stderr, stdout } = await spawn('npm', ['index.js', '--name', 'test'], options);

yarn

This is a wrapper that spawns a yarn process.

import { yarn } from 'flex-plugins-utils-spawn';

const { stdout, exitCode, stderr, stdout } = await yarn(['index.js', '--name', 'test'], options);

// This is just a wrapper and is identical to
const { stdout, exitCode, stderr, stdout } = await spawn('yarn', ['index.js', '--name', 'test'], options);
4.2.1

3 years ago

4.2.0

3 years ago

4.1.4-rc.0

3 years ago

4.1.3

3 years ago

4.1.3-rc.0

3 years ago

4.1.2

3 years ago

4.1.1

3 years ago

4.0.2-rc.0

3 years ago

4.1.0

3 years ago

4.0.4-alpha.0

3 years ago

4.0.1-rc.0

3 years ago

4.0.1

3 years ago

4.0.3-alpha.0

3 years ago

4.0.5-alpha.0

3 years ago

4.0.1-alpha.0

3 years ago

4.9.0-beta.0

3 years ago

4.7.3-betabeta.0

3 years ago

4.8.0-beta.0

3 years ago

4.0.0

3 years ago

4.7.4-beta.0

3 years ago

4.7.7-beta.0

3 years ago

4.7.5-beta.0

3 years ago

4.9.1-beta.0

3 years ago

4.7.0-beta.0

3 years ago

4.10.0-alpha.0

3 years ago

4.6.0-beta.0

3 years ago

0.19.0

3 years ago

0.18.1

3 years ago

0.18.2

3 years ago

0.18.0

3 years ago

0.17.2

4 years ago

0.17.1

4 years ago

0.17.0

4 years ago

0.16.3-alpha.0

4 years ago

0.16.2

4 years ago

0.16.1

4 years ago

0.16.0

4 years ago

0.15.1

4 years ago

0.15.0

4 years ago

0.14.0

4 years ago

0.13.1

4 years ago

0.13.0

4 years ago

0.12.1

4 years ago

0.12.0

4 years ago