New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

scripy

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scripy

Run in child process.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
2
Created
Source

scripy NPM version NPM downloads Build Status

Run scripts in child process.

preview

Install

$ npm install --save scripy

Usage

const scripy = require('scripy')

const build = scripy('npm run build')
const start = scripy('npm start')

// if you want to kill each other
build.on('close', () => start.kill())
start.on('close', () => build.kill())

API

scripy(command, [options])

command

Type: string

The command to excute, it's passed as args to child_process.spawn.

options

displayName

Type: string

The name to display while loggin messages into the console, default is the parsed script name from command. eg: npm run build's scriptName and displayName both are npm.

scripy.sync(command, [options])

Same as scripy() but using spawn.sync.

License

MIT © EGOIST

Keywords

spawn

FAQs

Package last updated on 29 Sep 2016

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