项目作者: stackr23

项目描述 :
logging helper with custom chalk extension
高级语言: JavaScript
项目地址: git://github.com/stackr23/logger.git
创建时间: 2018-11-15T21:38:49Z
项目社区:https://github.com/stackr23/logger

开源协议:MIT License

下载


@stackr23/logger

beautyful console output helper with chalk extension

Build Status
Greenkeeper badge
Maintenance
PRs Welcome

@stackr23/logger">npm version
Conventional Commits
Semantic Versioning
GitMoji

  1. import Logger from '@stackr23/logger';
  2. Logger.success('logger running!');
  3. Logger.error('unexpected bahavior');
  4. Logger.debug('casual debug info');
  5. Logger.log('{reset.magenta custom {bgBlackBright.yellow output style}}');

gitbash-output

custom style

for custom strings you can use chalks tagged template literal syntax

TBD - CLI/bash usage

not implemented yet

npx @stackr23/logger "{yellow.bold my outout string}"

TBD

  • init options
  • log levels
  • input validation
  • CLI usage for BASH