PlainNotebook
Usage
Setup
const Nodebook = require('nodejs-notebook');
const gitignore = new Nodebook.PlainNotebook('.gitignore');gitignore.fileName({ lower: false });
// returns ".gitignore"Last updated
const Nodebook = require('nodejs-notebook');
const gitignore = new Nodebook.PlainNotebook('.gitignore');gitignore.fileName({ lower: false });
// returns ".gitignore"Last updated
gitignore.resetFile();
// resets .gitignoregitignore.deleteFile();
// Deletes the file instantly
gitignore.deleteFile(10);
// Deletes the file in 10 secondsgitignore.fetchLine(3);
// fetches the third line
gitignore.fetchLine(10);
// fetches the tenth linegitignore.deleteLine(15);
// sets the fifteenth line emptygitignore.editLine(1, 'node_modules/');
// sets the first line to 'node_modules/'gitignore.addLine('package-lock.json');
// adds 'Yippi Ki Yay!' to the next lineconsole.log(gitignore.content());
// should log the file's content