New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

colur

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colur

A kool colur logger

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

colur: a kool logger

license wercker status npm version

All right, it is not that kool, but it is a stylized logger with colors! I needed a simple stylized colur logger for my test’s and other command console activity. PS. This is a node thang.

Parameters

  • colur(<log-string>, <option>)
  • colur(<log-string>)
  • return -> always returns the stylized logger string

Arguments

  • <log-string> -> String
    • The string you with to log.
  • <option> -> Object
  • <option>.color -> String
    • Can specify a custom color from the colors library. If you mess up and specify a color that does not exist, then it defaults to the default Green/White color.
  • <option>.stringCaps -> Boolean => true
    • Includes |> and <| start and end caps.
  • <option>.endColor -> Boolean => true
    • Use the end color which is bgBlue.white.bold.
    • Alias: end
  • <option>.startColor -> Boolean => true
    • Use the start color which is also the default color of bgGreen.white.bold.
  • <option>.consoleType -> String
    • Can specify the console type, the default is info.
    • Omit the console part, just include the modifier like error.
  • <option>.strReturn -> Boolean => true
    • Does not invoke console and just returns the stylized logger string.
  • <option>.error -> Boolean => true
    • A preset that sets the console to error and uses the color of bgRed.white.bold

Preview

Colur Preview

Keywords

logger

FAQs

Package last updated on 30 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts