
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@breautek/bash-wrapper
Advanced tools
Module for executing bash commands from a Node environment.
Module for executing bash commands from within Node.
For Linux/Mac there are no special requirements.
For Windows, this depends on the Linux Subsystem for Windows, and Windows 10 Creators Update. Previous versions of Windows 10 will not work.
npm install @breautek/bash-wrapper
Note: bash-wrapper is deprecated and will no longer receive updates. Use the organization's @breautek/bash-wrapper instead.
Returns the current working directory.
Sets the current working directory to string.
Asynchronously executes the commandString. The callback parameters are: (error, stdout, stderr)
Note: Never pass unsanitised user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.
Synchronously executes the commandString and returns a buffer containing the stdout.
Note: Never pass unsanitised user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.
Checks for bash support on the running platform. For Mac/Linux, it is assumed to be true. For windows, support will be true if bash.exe from WSL is findable.
Callback contains 1 parameter: (boolean supported)
FAQs
Module for executing bash commands from a Node environment.
The npm package @breautek/bash-wrapper receives a total of 0 weekly downloads. As such, @breautek/bash-wrapper popularity was classified as not popular.
We found that @breautek/bash-wrapper 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.