
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Have you ever wanted to exec things asyncly? Now you can!
npm install -S async-exec
Then in your code
import exec from 'async-exec';
await exec(`osascript -e "set volume ${scaledVolume}"`);
const tsFiles = await exec(`find . -name "*.ts"`);
For tee-style logging, where the output is both sent to stdout as it arrives, and captured in the return value, set the second argument to true
.
exec('ls', true);
Go ahead and send me PRs. I love them. Especially if they contain tests and don't check in generated files.
Not sure how to fix it yourself? Submit an issue and we'll get it done eventually!
Mostly for my own recollection, publishing goes like this.
<commit changes>
git push origin master
npm version <major|minor|patch>
npm publish
FAQs
Promise based exec
The npm package async-exec receives a total of 344 weekly downloads. As such, async-exec popularity was classified as not popular.
We found that async-exec demonstrated a not healthy version release cadence and project activity because the last version was released 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.