1.0.3 • Published 5 years ago

make-dir-range v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

make-dir-range

Build Status Current npm package version

Make directories from ranges of integers.

Installation

npm install --save make-dir-range

Usage

const makeDirRange = require('make-dir-range');

makeDirRange('1-3,5,9-10');
$ tree
.
├── 1
├── 2
├── 3
├── 5
├── 9
├── 10
│ ...

With options:

const makeDirRange = require('make-dir-range');

makeDirRange('11-13,15', {
    destination: 'out',
    append: 'a',
    prepend: 'p'
});
$ tree
.
├── out
│   ├── p11a
│   ├── p12a
│   ├── p13a
│   └── p15a
│ ...

Options

PropertyDescriptionDefault
destinationDestination directory""
appendString to append to directory names""
prependString to prepend to directory names""

Related

Authors

  • Austin Gordon - Development - GitHub

License

This project is licensed under the MIT License - see the LICENSE file for details