Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

extremelogger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extremelogger

a bunch of silly logging animations

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 01 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc