An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

English|简体中文

# bshell

[![Download](https://img.shields.io/npm/dw/bshell)](https://www.npmjs.com/package/bshell)
[![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)](https://github.com/avennn/bshell)
[![Npm](https://img.shields.io/npm/v/bshell)](https://github.com/avennn/bshell)
[![Node](https://img.shields.io/node/v/bshell)](./package.json)
[![License](https://img.shields.io/npm/l/bshell)](./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' }, ...]
});
```