New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flex-plugins-utils-spawn

Package Overview
Dependencies
Maintainers
6
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

  • 0.17.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
46
decreased by-63.78%
Maintainers
6
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

FAQs

Package last updated on 29 Oct 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc