Progress bar and estimation for Promise compilation.
progress-estimator logs a progress bar and estimation for how long a Promise will take to complete.
It tracks previous durations in order to provide more accurate estimates over time!
Get it:npm install progress-estimator
Sample usage:
123456789101112131415161718
constcreateLogger=require('progress-estimator');// All configuration keys are optional, but it's recommended to specify a storage location.// Learn more about configuration options below.constlogger=createLogger({storagePath:join(__dirname,'.progress-estimator'),});asyncfunctionrun(){awaitlogger(promiseOne,"This is a promise");awaitlogger(promiseTwo,"This is another promise. I think it will take about 1 second",{estimate:1000});}