Package Exports
- fliplog
- fliplog/debugFor
- fliplog/debugFor.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fliplog) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fliplog
chained logging with verbose insight, colors, & presets
usage
npm i fliplog --save
const log = require('fliplog')
errors
log.preset('error').data(new Error('prettyfull!')).echo()
verbose & tosource
log.text('eh').data({some: 'data'}).echo()
log.data('twoooo').verbose().echo()
log.text('text').data({some: 'data!'}).verbose().echo()
log.text('tosource').data({some: 'data!'}).tosource().echo()
log.preset('warning').data(' this message will self destruct').echo()
colors
log
.text('\n========================================\n')
.color('bold').time(false).echo()
timestamps
log
.color('cyan')
.text('🕳 so deep, so colorful, so meta 🎨 ')
.data(log)
.time(true)
.verbose()
.echo()
xterm
log.time(true).xterm(202, 236).text(' orange!!! ').echo()