Package Exports
- extremelogger
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (extremelogger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
EXTREME LOGGER
THE EXTREME LOGGER IS HERE FOR ALL YOUR EXTREME LOGGING NEEDS
- ANNOUNCE THINGS IN STYLE
- USE IT TO UNNECESSARILY SLOW DOWN YOUR SCRIPTS
- SNEAK IT INTO YOUR PROFESSIONAL PROJECTS TO SEE IF YOUR BOSS IS PAYING ATTENTION
- SHOW IT TO YOUR FRIENDS AND THEN CRY BECAUSE 99% OF WHAT WE DO WILL NEVER IMPRESS NON-PROGRAMMERS
- TRY IT WITHOUT ASYNC/AWAIT AND TELL ME HOW IT IS, BECAUSE I DON'T FEEL LIKE TRYING IT MYSELF
THE POSSIBILITIES ARE ENDLESS, BUT THE PROBABILITIES START AT 0 AND END AT 1, BY DEFINITION
NOW GET LOGGING!
const xlog = require('extremelogger')
const run = async () => {
/*
* CLASSES, WOW
*/
// THE SPINNINGBAR CLASS IS GOOD FOR LOADING MESSAGES
const spinningBar = new xlog.SpinningBar()
spinningBar.start("SPINNING THINGS...", 5000, "DONE SPINNING")
await xlog.pause(1500) // XLOG.PAUSE IS JUST A PROMISE RESOLVED ON TIMEOUT, IGNORE IT IF YOU WANT
await spinningBar.stop()
// THE ROLLINGBAR CLASS IS MUCH THE SAME BUT MORE LIKE A SHURIKEN / KUNAI / THROWN AXE
// ROLL FOR STRENGTH OR DEXTERITY, YOUR CHOICE
const rollingBar = new xlog.RollingBar()
rollingBar.start("TOSSING THINGS...", 5000, "DONE TOSSING")
await xlog.pause(1500)
await rollingBar.stop()
/*
* NOW CHECK OUT THESE HANDY FUNCTIONS
*/
// xlog.tickertape(text <string>, reverse <boolean>, timeInMs <number>, completionText <string>)
await xlog.tickertape("THIS TEXT SHALL NOT PASS!", false, 1500)
await xlog.tickertape("THIS TOO SHALL PASS!!!!", true, 1500, "This text has indeed passed.")
// xlog.build(text <string>, timeInMs <number>)
await xlog.build("THIS IS THE DAWNING OF THE AGE OF AQUARIUS", 1500)
// xlog.buildByWord(text <string>, delimiter <string> (defaults to " "))
await xlog.buildByWord("I am become Death, destroyer of worlds")
await xlog.buildByWord("I_am_become_split_by_underscores,_separator_of_words", "_")
// xlog.expand(text <string>, timeInMs <number>)
await xlog.expand("Th-th-th-th-that's all, folks!", 1500)
// xlog.closeIn(text <string>, timeInMs <number>)
await xlog.closeIn("||||||(I AM A CURTAIN)||||||", 1500)
}