console-write
v0.0.3
Published
Npm module with utils that may be useful for you 🎉
Downloads
2
Maintainers
Readme
Console Write
A facilitating tool to easily decorate your consoles.
Code Example (CommonJS)
const AdvancedLogs = require('./index.js');
const newConsole = new AdvancedLogs()
//Only print
newConsole.print({ text: `Print with hour.` })
//Styled messages
newConsole.print({ text: `Please ${newConsole.underline('do not')} this` })
newConsole.success({ text: `The console-write ${newConsole.bold('worked')}` })
newConsole.print({ text: `${newConsole.italic('Hello!')} <== is italic.` })
// Status messages
newConsole.error({ text: 'Error message.' })
newConsole.info({ text: 'Info message.' })
newConsole.success({ text: 'Succes message.' })
newConsole.warn({ text: 'Warn message.' })
Code Output:
Developer: Speste Contact