komatsu

1.3.0 • Public • Published

🌲 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

Readme

Keywords

none

Package Sidebar

Install

npm i komatsu

Weekly Downloads

45

Version

1.3.0

License

ISC

Unpacked Size

361 kB

Total Files

9

Last publish

Collaborators

  • quarterto