🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

verboser

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

verboser

Simple verbose console logger

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

VERBOSER

Simple, predictable and chainable verbose logging for Node modules

Version NPM Downloads LICENSE

If you ever need a repeatable predictable way to send information to the users of your Node Package and don't want to write out a check for --verbose or -v

API

Currently all assumptions are that you are sending either a String or Array. Hoping to add support for Key:Value pairs in the near future. All parts of the API and be chained for high functionality

.force()

Forces verbose output -- this is useful for CLI type modules where you don't want the user to have to pass -v or --verbose

.linebreak()

Inserts a new line wherever this function is called.

.log('Hello World')

Prints a cyan message to the user.

.warn('Hello World')

Prints a yellow message to the user.

.error('Hello World')

Prints a red message to the user.

Example:

var verbose = require('verboser');

// Sends a cyan log statement
verbose.log('Something to the user');

// Sends a yellow warning statement
verbose.warn('Something a little less scary.');

// Sends a red error statement
verbose.error('Something alarming!');

// Sends a red error with line break and then an array with yellow copy.
verbose.error('Something went wrong').linebreak().warn(array).

Keywords

log

FAQs

Package last updated on 24 Feb 2015

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