Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

konsole

Kustom console logging with simple functions.

Debugging JavaScript can be painful and often means spending hours looking at boring console logs. I made my own console logger — but with customizable commands to give an interactive logging experience.

Getting Started

Simply include konsole.js in your project or copy/past/adapt the code.

const console = require('konsole');

Log App Events

console.startApp("Starting app");
console.closeApp("Closing app");

collect data during app session and display at exit

// Define array variable and give a dummy structure
var data = [['key', 'value']];

// Add data into array
data.push(['firstName', 'John']);
data.push(['lastName', 'Doe']);

// Pass array to `.closeApp` to display data at end
console.closeApp("Closing app", data);

console.enFx("Entering function"); console.exFx("Exiting function");

© 2019 Jass Bhamra

About

Kustom console logging with simple functions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages