New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

status-logger

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

status-logger

print updating progress to console and stdout

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
862
increased by19.23%
Maintainers
1
Weekly downloads
 
Created
Source

Status Logger

Log a progress status while also queuing messages.

  • Messages are added to queue and printed above status lines.
  • Status can be multi-line, specify line with each message.

Usage

var statusLogger = require('status-logger')

var log = statusLogger(opts)

log.message('Send a regular console log message') // queue message for next interval

log.status('Print to stdout line 0', 0) // print to stdout line 0 in next interval
log.status('Print to stdout line 1', 1)

var percentage = 0
log.status('Percentage' + percentage, 2)

// update percentage & will print updated info with interval

log.status('Last line', -1) // print to last status line
log.status('Overwrite line 1', 1)

setInterval(function () {
    log.print() // print on interval
}, 500)

log.print(): print status + messages

log.message(msg): log a message

log.status(msg, lineNum): print to stdout line

Options

  • quiet: do not print anything
  • debug: print everything to console.log or console.error

FAQs

Package last updated on 08 Jul 2016

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