1.1.1 • Published 6 years ago
idkgoodconsole v1.1.1
Better Console
##Screenshots
Commands
//Logs
igconsole.log('Normal log')
igconsole.error('Error, we noticed that cookies are gone. Therefor, we cannot proceed.')
igconsole.info('Some info here')
igconsole.warn('Potato.js should be lowercase.')
igconsole.comment('potato.js seems to be good')
igconsole.success('File Saved')
igconsole.ask('Do you want some cookies?')
//Colors
igconsole.clog('This is red', 'red')
igconsole.clog('This is blue', 'blue')
igconsole.clog('This is green', 'green')
igconsole.clog('This is yellow', 'yellow')
igconsole.clog('This is purple', 'purple')
igconsole.clog('This is cyan', 'cyan')
igconsole.clog('This is grey/gray', 'grey')
igconsole.clog('This is grey/gray', 'gray')
igconsole.clog('This is white', 'white')
igconsole.clog('This is black', 'black')
//With Bg
igconsole.clog('This is black on blue', 'black', 'blue')
//Other
igconsole.bold('Bold Text')
igconsole.dim('Dim Text')
igconsole.underline('Underline Text')
igconsole.blink('Blinking Text')
igconsole.reversed('Reversed Text')
igconsole.hidden('Hidden Text')
igconsole.linebreak()
igconsole.reset() //Resets console color
//Change Default color
igconsole.setFgColor('black')
igconsole.setBgColor('red')
console.log('Black text on red background')
console.log('Black text on red background')
//Conditions
console.log(igconsole.isBg('default')) // Expected output: false
if(igconsole.isBg('default')) { //False
console.log('Background is default')
}
else if(igconsole.isBg('red')) { //True
console.log('Background is red')
} else {
console.log('Background is not default, nor red.')
}
//Options
igconsole.set('type', 'browser')
igconsole.set('type', 'console')
Have fun!
Colors for browser will be added soon. Also other stuff such as tables, etc. will be also added.