1.0.3 • Published 8 years ago

add-subdirs v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

add-subdirs

Adds sub-directories to a user defined top level directory. An array of the sub-directory paths is returned.

Install

npm install --save add-subdirs

Usage

const addSubdirs = require('add-subdirs');
const dirs = addSubdirs('/path/to/directory');

API

addSubdirs(dirpath, num)


dirpath (required)

Type: string

The directory path you want to add your sub-directories to.


num (optional)

Type: number

Default: 1

The number of subdirectories you want to add.


name (optional)

Type: string

Default: 'subdir'

The name of your sub-directories. An underscore character and a number

will be appended to the end of the name to make it unique.


License

MIT

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago