tagol

    1.0.0 • Public • Published

    tagol

    Another logger using template literals for nodejs and browsers

    WIP !

    Load

    Browsers

    <script src="//unpckg.org/tagol/tagol.js"></script>
    or
    <script type="module">
    import log from '//unpckg.org/tagol/tagol.js'
    </script> 

    Nodejs

    require('tagol')
    or
    import 'tagol'
    or
    import log from 'tagol'
    or
    import { Iinfo, Eerror } from 'tagol'

    Usage

    log `Some simple output`
     
    log.S `Success`
    log.W `Warning`
    log.I `Info`
    log.E `Error`
     
    log `Some
    multiline
    text`
     
    let substitution = { text: 'foo', obj: {some: 42} }
    log.E `Error with ${substitution.text}s on object ${substitution.obj}o !`

    Install

    npm i tagol

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    GPL-3.0

    Unpacked Size

    38.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar