logws

    0.3.2 • Public • Published

    Log

    Console.log with style

    THIS REPO IS FORKED FROM git://github.com/adamswartz/log.git THANKS @copyright adamswartz!

    Features

    • Safely call log (instead of console.log) in any browser.
    • Use markdown syntax for quick formatting:
      • italiclog('this is *italic*')
      • boldlog('this word _bold_')
      • codelog('this word `code`')
      • * - italic
      • _ - bold
      • - - bold & italic
      • <B> - blue
      • <C> - cyan
      • <G> - green
      • <R> - rad
      • <Y> - yellow
      • <*B> - blue & italic
      • <*C> - cyan & italic
      • <*G> - green & italic
      • <*R> - rad & italic
      • <*Y> - yellow & italic
      • <_B> - blue & bold
      • <_C> - cyan & bold
      • <_G> - green & bold
      • <_R> - rad & bold
      • <_Y> - yellow & bold
      • <-B> - blue & bold & italic
      • <-C> - cyan & bold & italic
      • <-G> - green & bold & italic
      • <-R> - rad & bold & italic
      • <-Y> - yellow & bold & italic
    • Use a custom syntax to style text however you want: log('this is [c="color: red"]red[c]').

    Can not be used nested

    Support

    Stylized logs are supported in the following browsers:

    • Chrome 26+
    • Firefox 31+ or with Firebug 1.11 beta 2 or later
    • Opera with Blink (15+)
    • Safari Nightly (537.38+)

    Screenshot

    Implementations

    Keywords

    none

    Install

    npm i logws

    DownloadsWeekly Downloads

    1

    Version

    0.3.2

    License

    MIT

    Last publish

    Collaborators

    • ow