copy-to-range
Copy a file to a range of directories.
Installation
npm install --save copy-to-range
Usage
const copyToRange = ; ;
$ tree
.
├── file.txt
├── 1
│ └── file.txt
├── 2
│ └── file.txt
├── 3
│ └── file.txt
├── 4
│ └── file.txt
│ ...
With options:
const copyToRange = ; ;
$ tree
.
├── file.txt
├── out
│ ├── p11a
│ │ └── file.txt
│ ├── p12a
│ │ └── file.txt
│ ├── p13a
│ │ └── file.txt
│ └── p20a
│ └── file.txt
│ ...
Options
Property | Description | Default |
---|---|---|
destination | Destination directory | "" |
append | String to append to directory names | "" |
prepend | String to prepend to directory names | "" |
Related
- copy-to-range-cli - CLI for this module
- make-dir-range - Make directories from a range of integers
- move-to-range - Move files to corresponding directories given a range
Authors
- Austin Gordon - Development - GitHub
License
This project is licensed under the MIT License - see the LICENSE file for details