2.4.1 • Published 2 years ago

@touno-io/debuger v2.4.1

Weekly downloads
19
License
MIT
Repository
github
Last release
2 years ago

@touno-io/debuger

debuger beautiful message logs and insert log to mongodb.

version downloads status activity DUB

Installation

npm i @touno-io/debuger
// or
yarn i @touno-io/debuger

Preview

Alt text

Logger

object debuger
  • log function(...msg) message log normal
  • start function(...msg) start log and color green.
  • success function(...msg) start log and color green.
  • warn function(...msg) start log and color green.
  • info function(...msg) info log and color blue.
  • error function(...msg) error log and color red.
object progress cli
  • wait function(msg, max = 100, sizeBar = 25) message and progress bar.
  • increment function(value) add value.
  • update function(value) set value.
  • stop function() start log and color green.
  • info function(...msg) info log and color blue.
  • error function(...msg) error log and color red.

sample

// es6
import debuger from '@touno.io/debuger'
const logger = await debuger('test')

// javascript
const logger = require('@touno.io/debuger')('test')

logger.log('message')
logger.info('message')
logger.start('begin')
logger.success('end')
logger.warn('error type warning.')
logger.error(new Error('Error'))

// progress
logger.wait('begin', 100)
logger.update(50)
logger.stop()

License

MIT © 2018 Touno™

2.4.1

2 years ago

2.4.0

3 years ago

2.3.3

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.0.2

5 years ago

1.4.5

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago