# @ravindu01manoj/bash-js

> exec shell commands and scripts

Latest version **1.0.4** (published 2022-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ravindu01manoj/bash-js
pnpm add @ravindu01manoj/bash-js
yarn add @ravindu01manoj/bash-js
bun add @ravindu01manoj/bash-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2022-07-03 |
| First published | 2022-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 10.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ravindu Manoj |
| Maintainers | ravindu01manoj |
| Keywords | exec, shell, shelljs, bash, bashjs, bash-js, script, commands |

## Links

- npm: https://www.npmjs.com/package/@ravindu01manoj/bash-js
- Repository: https://github.com/ravindu01manoj/bash-js
- Homepage: https://github.com/bash-js/Sinhala-Unicode#readme
- Issues: https://github.com/ravindu01manoj/bash-js/issues
- npm.io page: https://npm.io/package/@ravindu01manoj/bash-js

## Dependencies (3)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [util](https://npm.io/package/util.md) 0.12.4
- [child_process](https://npm.io/package/child_process.md) 1.0.2

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2022-07-03
- 1.0.3 — 2022-07-03
- 1.0.2 — 2022-07-03
- 1.0.1 — 2022-07-03
- 1.0.0 — 2022-07-03

## README

# SHELL SCRIPT AND COMMANDS RUN WITH NODEJS

***

- [Ravindu Manoj](https://github.com/ravindu01manoj/)

***

## Installation 
```sh
npm i @ravindu01manoj/bash-js
## or
yarn add @ravindu01manoj/bash-js
```

***

## Example
```ts
const bash = require("@ravindu01manoj/bash-js")

async function run() {

//for single command
const out = await bash.command("ls")
console.log(out)

//for script
const script = `
mkdir a
cd a
touch hello.txt
ls
cd ..
`
const output = await bash.script(script)
console.log(output)
}
run()

```

***

---
_Source: https://npm.io/package/@ravindu01manoj/bash-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
