Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-output

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-output

My take on simple output for Node.js command-line apps

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
Maintainers
1
Weekly downloads
 
Created
Source

cli-output

My take on simple output for Node.js command-line apps!

node npm Travis Gemnasium Coveralls

installation:

⇒ npm install cli-output

API:

var out = require("cli-output");

out.debug()

For debugging purposes. Expects same arguments as console.log().

This output is only shown if the environment variable ${DEBUG} is set.

out.error()

For error messages. Expects same arguments as console.error().

out.log()

For normal messages. Expects same arguments as console.log().

out.success()

For success messages. Expects same arguments as console.log().

out.prettyJSON(json)

Outputs json in terminal-friendly manner, without the braces, double quotes, etc. Identical to out.pjson(json).

out.rawJSON(json)

Outputs json in its normal format but with indentations. Identical to out.rjson(json).

license:

The MIT License (MIT)

Copyright (c) 2015 GochoMugo mugo@forfuture.co.ke

Keywords

FAQs

Package last updated on 25 Jul 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc