runscript
Run script easy!
Last updated 10 months ago by fengmk2 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install runscript 
SYNC missed versions from official npm registry.

runscript

📢📢📢📢📢 You should use execa instead. 📢📢📢📢


NPM version Node.js CI Test coverage npm download

Run script easy!

Installation

$ npm install runscript

Quick start

const runScript = require('runscript');

runScript('node -v', { stdio: 'pipe' })
  .then(stdio => {
    console.log(stdio);
  })
  .catch(err => {
    console.error(err);
  });

run with timeout

Run user script for a maximum of 10 seconds.

const runScript = require('runscript');

runScript('node user-script.js', { stdio: 'pipe' }, { timeout: 10000 })
  .then(stdio => {
    console.log(stdio);
  })
  .catch(err => {
    console.error(err);
  });

License

MIT

Contributors


fengmk2


lusyn


walkthunder


popomore


ottomao


atian25


akitaSummer


lgtm-com[bot]


semantic-release-bot


whxaxes

This project follows the git-contributor spec, auto updated at Thu Jan 11 2024 16:25:27 GMT+0800.

Current Tags

  • 1.6.0                                ...           latest (10 months ago)

14 Versions

  • 1.6.0                                ...           10 months ago
  • 1.5.4                                ...           10 months ago
  • 1.5.3                                ...           2 years ago
  • 1.5.2                                ...           3 years ago
  • 1.5.1                                ...           4 years ago
  • 1.5.0                                ...           4 years ago
  • 1.4.0                                ...           5 years ago
  • 1.3.1                                ...           5 years ago
  • 1.3.0                                ...           7 years ago
  • 1.2.1                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.0.1                                ...           9 years ago
Downloads
Total 12
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (7)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE