Nighttime Possum Meandering

    node-progress-bar

    1.3.0 • Public • Published

    Coverage Status Build Status npm version

    Ever wanted to print the progress of a loop you are running, but not clutter up your console?

    Maybe you are updating a large batch of documents in your database, that requires you to iterate over them?

    Printing the progress has never been easier! Node-progress-bar makes this easy!

    How to use:

     npm install --save-dev node-progress-bar 
    

    or

     yarn add node-progress-bar --dev 
    

    at the top of your node file, add: const progressBar = require('node-progress-bar');

    then call the function in your operation!

    const test = (i) => {
      if (i <= 100) {
        setTimeout(() => {
          print(i, 100);
          test(i += 1);
        }, 50);
      }
    }
    test(0);
    

    It's that simple!

    Coming soon...

    1. custom print messages
    2. progress animations
    3. progress bar customizations
    4. your suggestions!

    Thanks for checking out node-progress-bar!

    Install

    npm i node-progress-bar

    DownloadsWeekly Downloads

    12

    Version

    1.3.0

    License

    ISC

    Unpacked Size

    10.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • davidcsally