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

cli-status

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-status

Highly configurable status indicators for your node.js cli.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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:

Clone the repo, then run:

$> node test.js

Keywords

FAQs

Package last updated on 21 May 2013

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