Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Run several commands concurrently. Show output for one command at a time. Kill all at once.
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
npm install --save-dev run-pty
npx run-pty --help
MIT.
Version 1.0.1 (2020-07-06)
Fixed: <kbd>ctrl+z</kbd> is no longer leaked to the command, potentially causing it to suspend.
FAQs
Run several commands concurrently. Show output for one command at a time. Kill all at once.
The npm package run-pty receives a total of 3,831 weekly downloads. As such, run-pty popularity was classified as popular.
We found that run-pty demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.