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

run-pty

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

run-pty

Run several commands concurrently. Show output for one command at a time. Kill all at once.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.3K
decreased by-7.18%
Maintainers
1
Weekly downloads
 
Created
Source

run-pty

In bash you can use fg, bg, jobs and ctrl+z to run several commands at the same time in the same terminal. But it’s not very user friendly.

run-pty is a command line tool that lets you run several commands concurrently. Show output for one command at a time. Kill all at once. Nothing more, nothing less.

ctrl+z shows the dashboard, which gives you an overview of all your running commands and lets you switch between them.

ctrl+c exits current/all commands.

A use case is running several watchers. Maybe one or two for frontend (webpack, Parcel, Sass), and one for backend (nodemon, TypeScript, or even some watcher for another programming language).

{
  "scripts": {
    "watch:frontend": "webpack-dev-server",
    "watch:backend": "nodemon server/index.ts",
    "watch:all": "run-pty % npm run watch:frontend % npm run watch:backend"
  }
}
 1   🟢 pid 78147  npm run 'watch:frontend'
 2   🔴 exit 1     npm run 'watch:backend'

1-2    switch command
ctrl+c exit current/all
ctrl+z this dashboard

Installation

npm install --save-dev run-pty

npx run-pty --help

Credits

  • microsoft/node-pty does all the heavy lifting of running the commands.
  • apiel/run-screen was the inspiration for this tool.

License

MIT.

Keywords

FAQs

Package last updated on 06 Jul 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