Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 585 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 585 Bytes

Console.Star

Console.star is a helper function to call console.log with stars pre/post-appended to the log

Install:

npm install console.star --save-dev

Usage:

console.star('Hello %s', 'World');

// Result:
// ***************
// ***************
// Hello World
// ***************
// ***************

Updating Defaults:

console.starOptions = {
	'starString': '***************', // Update the stars 
	'lines': 2, // Update the number of lines the stars appear
	'logType': 'log' // Update the console logger type (log, warn, error, etc.)
};