2.2.0 • Published 3 years ago

tn-consoler v2.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Usage

import { consoler } from 'tn-consoler'
consoler.log(`Wow {bgcyan+b:text}`, options, ...others)

Methods

  • consoler.log()
  • consoler.warn()
  • consoler.error()
  • consoler.trace()
  • consoler.group()
  • consoler.groupCollapsed()
  • consoler.groupEnd()

Syntax

;`{tag:text}``{tag+tag+tag:text}``{tag:with \\{\\:\\} scapes}`

Tags

  • Colors : dark, light, red, cyan, green, white, orange, purple, yellow, grey
  • Background Colors : bgdark, bglight, bgred, bgcyan, bggreen, bgwhite, bgorange, bgpurple, bgyellow, bggrey
  • Others : b, nb, i, ni, u, nu

Options

const options = {
  $global: ['tag', 'tag', { fontSize: '25px' }],
  custom: { fontWeight: 'bold' },
  custom2: ['bgred', 'b', {...}]
}
2.2.0

3 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago