1.0.6 • Published 3 months ago
generate-files-batch v1.0.6
generate-files-batch
A tiny script to generate a batch of files.
Installation
npm install -g generate-files-batch
OR
yarn add global generate-files-batch
OR
npx generate-files-batch --target=<target> --batch=<batch-name> --size=<batch-size> --pair=<pair-size> --output=<output-directory>
Usage
npx generate-files-batch --target=./files --batch=demo --size=50 --pair=2 --output=./custom-output
OR
npx generate-files-batch -t "./files" -b demo -s 50 -p 2 -o "./custom-output"
Options
Name | Description | Default | Requirement |
---|---|---|---|
-b , --batch | Name of the files batch. | Required | |
-t , --target | Target directory path where the files are stored. | Required | |
-s , --size | The number of files for the batch. | Required | |
-p , --pair | Set the number of files in a pair. | 1 | Optional |
-o , --output | Output directory path where the files batch will be stored. | output | Optional |
Output structure
npx generate-files-batch --target=./files --batch=batchname --size=3 --pair=2
This will generate following structure:
|- output
|----batch-name
|------file_a_batchname.csv
|------file_a_batchname.wav
|------file_b_batchname.csv
|------file_b_batchname.wav
|------file_c_batchname.csv
|------file_c_batchname.wav