npm.io
0.0.1 • Published 12 years ago

console.star

Licence
BSD-2-Clause
Version
0.0.1
Deps
0
Vulns
0
Weekly
0
Stars
2

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.)
};

Keywords