Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

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

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.