1.0.6 • Published 2 years ago

nv-facutil-tlog v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

nv-facutil-tlog

  • simple terminal log with color

install

  • npm install nv-facutil-tlog

usage

  const log = require("nv-facutil-tlog")

example

    > log.err(3)("abc")
    abc
    > var s = log.err(3,true)("abc")
    > s
    '\x1B[38;5;200m\x1B[48;5;0mabc\x1B[0m'
    >
    > log.parse(s)
    'abc'
    >
    >

APIS

    {
      err: [Function: err],
      warn: [Function: warn],
      info: [Function: info],
      succ: [Function: succ],
      fail: [Function: fail],
      typ: [Function: typ],
      parse: [Function: parse],
      _: [Function: underscore],
      fg: [Function: fg],
      bg: [Function: bg],
      list_clr: [Function: list_all]
    }

LICENSE

  • ISC