A Node.js package to execute shell commands synchronously. Current version 0.1.6, last updated in 2012. Designed for migration scripts and CLI tools, but explicitly warns against using in regular server code due to blocking the event loop. Provides a simple synchronous API for shell execution, but lacks error handling and has cross-platform issues. Not actively maintained.
npm install exec-syncNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of execSync to run shell commands synchronously and capture output.
Ensure you are using require('exec-sync') not destructuring or named import.Replace with const { execSync } = require('child_process'); (Node.js >=0.12)Do not use in production server code; use child_process.exec() or spawn() for async.
Check the return value or use child_process.execSync which throws on non-zero exit.
Use const execSync = require('exec-sync');Run 'npm install exec-sync --save'
Verify command exists and use absolute path if necessary.
No dependency data recorded yet.