console-message-v2

Rich text console logging

Dit script moet niet direct worden geïnstalleerd - het is een bibliotheek voor andere scripts om op te nemen met de meta-richtlijn // @require https://updategreasyfork.deno.dev/scripts/389748/730537/console-message-v2.js

Maker
spiralx
Versie
2.0.0
Gemaakt op
04-09-2019
Bijgewerkt op
04-09-2019
Grootte
13,3 KB
Licentie
N.v.t.

console-message-v2.js - rich-text console logging

Revamped version of library written using ES6 and with some added functionality.

Based on the original console.message library (the old version can be @required as a library from here still).

Example
console.message()
  .span({ color: 'red' })
    .text('this is red! ')
    .text('this is green! ', { color: 'green' })
    .text('this is again red!')
  .line('info')
  .object(console)
  .trace()
  .line()
  .element(document.body)
  .print()