Contains a bit of information about JSLib.
jsl.info -> ObjectThis object looks like this:
{ "version": "1.2.3", "intVersion": [1, 2, 3], "name": "JSLib", "desc": "A multi-purpose, lightweight and dependency-free JavaScript library that makes coding a bit faster by providing many easy to use functions and classes", "author": "Sv443", "authorLong": "Sv443 <sven.fehler@web.de> (https://sv443.net/)", "contributors": ["none yet :("], "license": "MIT (https://sv443.net/LICENSE)", "documentation": "https://github.com/Sv443/JSLib-npm/wiki" }Example
console.log(`Powered by ${jsl.info.name} by ${jsl.info.author}`);
Used to color the text in the console.
Don't forget to usejsl.colors.rst
at the end of the console log message, else all following console messages will also be colored.
I recommend you assign thejsl.colors.fg
to a shorter named variable so you don't have to type so much stuff (see example below).jsl.colors -> Object
Object Color jsl.colors.rst Resets the color back to default jsl.colors.reset Resets the color back to default jsl.colors.fat Fat font jsl.colors.fg.black Black text color jsl.colors.fg.red Red text color jsl.colors.fg.green Green text color jsl.colors.fg.yellow Yellow text color jsl.colors.fg.blue Blue text color jsl.colors.fg.magenta Magenta text color jsl.colors.fg.cyan Cyan text color jsl.colors.fg.white White text color jsl.colors.bg.black Black background color jsl.colors.bg.red Red background color jsl.colors.bg.green Green background color jsl.colors.bg.yellow Yellow background color jsl.colors.bg.blue Blue background color jsl.colors.bg.magenta Magenta background color jsl.colors.bg.cyan Cyan background color jsl.colors.bg.white White background color