Socket
Socket
Sign inDemoInstall

caba

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    caba

Simple counter in console


Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Install size
2.30 kB
Created
Weekly downloads
 

Readme

Source

caba

Simple counter in console.

This package is deprecated and not supported any more. I recomend to use it's successor - cllc.

Install

npm install caba

No dependences.

Usage

// Create counter:
var caba = require('caba')();
// //or//
// var caba = require('caba')('%s tasks done.', 0);

// Start counter
caba.start();
// //or//
// caba.start('%s tasks done.', 0);

// Increment counter
caba.step();
// //or//
// caba.step(5);

// Safe replacement to console.log
caba.log('TEST', 'TEST2');

// Stop counter
caba.stop(); // stop and clear
// //or//
// caba.finish(); // stop and save last string
// //or//
// caba.finish('Well done %s tasks!', 100); // stop with special string

License

MIT

FAQs

Last updated on 11 Feb 2016

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