Skip to content
/ konsole Public

Kustom console logging with simple functions.

Notifications You must be signed in to change notification settings

BXAMRA/konsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published