1.6.0 ā€¢ Published 4 months ago

runscript v1.6.0

Weekly downloads
53,253
License
MIT
Repository
github
Last release
4 months ago

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

fengmk2lusynwalkthunderpopomoreottomaoatian25
akitaSummerlgtm-com[bot]semantic-release-botwhxaxes

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

1.5.4

4 months ago

1.6.0

4 months ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

3 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

7 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago