Nodebook
  • Introduction
  • Methods
  • Default Classes
    • Nodebook
  • JS
    • JSONotebook
    • JSNotebook
    • TSNotebook
  • Java
    • JavaNotebook
  • C/C++
    • CPPNotebook
    • CNotebook
    • HeaderNotebook
  • Text
    • TXTNotebook
    • MDNotebook
    • PlainNotebook
  • Web
    • HTMLNotebook
    • CSSNotebook
      • CSSStyle
  • Other
    • YMLNotebook
    • BashNotebook
  • Python
    • PYNotebook
Powered by GitBook
On this page
  • Usage
  • Setup

Was this helpful?

  1. Other

BashNotebook

extends Nodebook

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

Usage

Setup

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.

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

runFile()

Executes the file.

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

runCMD(command)

Execute a bash command.

string command: The command to execute.

main.runCMD('git status');
// Runs 'git status'
PreviousYMLNotebookNextPYNotebook

Last updated 4 years ago

Was this helpful?