HeaderNotebook

extends Nodebook

"HeaderNotebook" is used for .h or .hpp files.

Usage

Setup

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

const cheader = new Nodebook.HeaderNotebook('kihei');
const cheaderClone = new Nodebook.HeaderNotebook('kihei2', 'c');
// Creates a .h used for C and C++ files

const cppheader = new Nodebook.HeaderNotebook('maloi', 'c++');
// Creates a .hpp used for C++ files

/*
Header defaults to .h when not provided or is not a 
valid language
*/

include(module)

string module: The module to include.

cheader.include('stdio.h');

cppheader.include('iostream');

Last updated