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'Last updated
Was this helpful?