Socket
Socket
Sign inDemoInstall

cli-status

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cli-status

Highly configurable status indicators for your node.js cli.


Version published
Weekly downloads
183
increased by48.78%
Maintainers
1
Install size
11.5 kB
Created
Weekly downloads
 

Changelog

Source

0.1.1

  • Now tests via $> npm test
  • All bars are now calculated the same way.
  • (!) Fixed bars with a progress of 1 showing a completed bar.

Readme

Source

cli-status

Highly configurable status indicators for your node.js cli.

Local Installation:

cli-status is an npm module. Once you have npm, you can run this to locally install cli-status into the current directory.

$> npm install cli-status

Or, add this as a dependency in your project's package.json

"dependencies": {
	"cli-status": "0.1.x"
}

How to use:

Configuration options

Manual stepping:
var status = require('cli-status');

status.configure({
	// See options
});

while (something) {
	status.step(progress);
}
Automatic polling:
var status = require('cli-status');
var files = [];

status.configure({
	// See options
	type: '/',
    total: server.numFiles()
}).start(function() {
	return files.length;
});

while (files.length < server.numFiles()) {
	var data = server.getNext();
	files.push(data);
}

status.end();
// Optional if files.length >= options.total is guaranteed.

Testing:

Install or clone the repo, then run:

$> npm test

Keywords

FAQs

Last updated on 22 May 2013

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc