Download tsdx/src/createProgressEstimator.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tsdx/src/createProgressEstimator.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tsdx/src/createProgressEstimator.ts
-
curl -L -o createProgressEstimator.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tsdx/src/createProgressEstimator.ts
406 Bytes
| 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, | |
| }); | |
| } | |