https://github.com/avennn/bshell
🔨Provide portable Unix shell commands out of shelljs for Node.js
https://github.com/avennn/bshell
bash bshell javascript node nodejs shell shelljs unix
Last synced: 3 months ago
JSON representation
🔨Provide portable Unix shell commands out of shelljs for Node.js
- Host: GitHub
- URL: https://github.com/avennn/bshell
- Owner: avennn
- License: mit
- Created: 2023-05-01T14:17:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-02T02:06:46.000Z (over 2 years ago)
- Last Synced: 2025-08-09T02:46:47.837Z (8 months ago)
- Topics: bash, bshell, javascript, node, nodejs, shell, shelljs, unix
- Language: TypeScript
- Homepage:
- Size: 118 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bshell
[](https://www.npmjs.com/package/bshell)
[](https://github.com/avennn/bshell)
[](https://github.com/avennn/bshell)
[](./package.json)
[](./LICENSE)
Provide portable Unix shell commands out of [shelljs](https://github.com/shelljs/shelljs) for Node.js.
bshell means "better shell".
## Install
With npm
```bash
npm i bshell
```
With yarn
```bash
yarn add bshell
```
With pnpm
```bash
pnpm add bshell
```
## Usage
### ps
```js
import { Ps } from 'bshell';
const ps = new Ps();
ps.execute().then((res) => {
console.log(res); // [{ pid: 123, tty: 'ttys001' }, ...]
});
```