> For the complete documentation index, see [llms.txt](https://nodebook.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nodebook.js.org/other/bash.md).

# BashNotebook

"BashNotebook" is used for `.sh` (Bash/Shell) files.

## Usage

### Setup

```javascript
const Nodebook = require('nodejs-notebook');

const main = new Nodebook.BashNotebook('main');
```

**note(code)**

Similar to `addLine()` but it does not automatically make an indent.

string `code`:\
The code to put in.

```javascript
main.note('echo Hi!');
// Adds 'echo Hi!'
```

**runFile()**

Executes the file.

```javascript
main.runFile();
// Should output "Hi!"
```

**runCMD(command)**

Execute a bash command.

string `command`:\
The command to execute.

```javascript
main.runCMD('git status');
// Runs 'git status'
```
