JSPM

@compositor/log

1.0.0-0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 220
    • Score
      100M100P100Q68187F
    • License MIT

    Logging utility for CLIs

    Package Exports

    • @compositor/log

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@compositor/log) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @compositor/log

    Logging utility for CLIs

    npm i @compositor/log
    const log = require('@compositor/log')
    
    log.name = 'app'
    
    log('hello')
    
    log.error('whoops!')
    
    log.start('processing something...')
    
    setTimeout(() => {
      log.stop('bye bye')
    }, 1000)

    MIT License