1.0.6 • Published 3 months ago

generate-files-batch v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

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

NameDescriptionDefaultRequirement
-b, --batchName of the files batch.Required
-t, --targetTarget directory path where the files are stored.Required
-s, --sizeThe number of files for the batch.Required
-p, --pairSet the number of files in a pair.1Optional
-o, --outputOutput directory path where the files batch will be stored.outputOptional

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
1.0.6

3 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago