Exciting news!Announcing our $4.6M Series Seed. Learn more →
Socket
LoveBlogFAQ
Install
Log in

komatsu

Package Overview
Dependencies
5
Maintainers
1
Versions
10
Issues
File Explorer

Advanced tools

komatsu

the parallel spinner logger with the fresh pine scent

    1.3.0latest

Version published
Maintainers
1
Yearly downloads
2,372
increased by225.82%

Weekly downloads

Readme

Source

🌲 komatsu

the parallel spinner logger with the fresh pine scent

komatsu screencast

usage

npm install komatsu

const Komatsu = require('komatsu') const logger = new Komatsu() // a unique label. logging again with the same label overwrites the line logger.log('label', { status: 'pending', // the default. or, 'done', 'info' or 'fail' message: 'a nice message', error: new Error(`i'll print the stack trace`), })

while any logger is pending, new loggers (with a label that hasn't been seen yet) will appear on the next line. once all current loggers are no longer pending, i'll clear a line. if i'm the only thing that's running timers, node will exit. otherwise, any loggers will appear after the empty line (even if their label was used before).

the name

小松 ko-matsu means "small pine tree". it's also a city in Ishikawa prefecture and the name of a company that makes forestry equipment.

licence

ISC. © Bren Brightwell

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc