File size: 406 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import fs from 'fs-extra';
import { paths } from './constants';
const progressEstimator = require('progress-estimator');
export async function createProgressEstimator() {
await fs.ensureDir(paths.progressEstimatorCache);
return progressEstimator({
// All configuration keys are optional, but it's recommended to specify a storage location.
storagePath: paths.progressEstimatorCache,
});
}
|