Socket
Book a DemoInstallSign in
Socket

flex-plugins-utils-spawn

Package Overview
Dependencies
Maintainers
8
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-plugins-utils-spawn

Flex Plugins Spawns

latest
Source
npmnpm
Version
4.2.1
Version published
Weekly downloads
396
760.87%
Maintainers
8
Weekly downloads
 
Created
Source

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);

Keywords

flex

FAQs

Package last updated on 18 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts