# add-subdirs

> Adds sub-directories to a user defined top level directory

Latest version **1.0.3** (published 2017-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install add-subdirs
pnpm add add-subdirs
yarn add add-subdirs
bun add add-subdirs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-05-11 |
| First published | 2017-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ryan Davison |
| Maintainers | ryandavison |
| Keywords | directory |

## Links

- npm: https://www.npmjs.com/package/add-subdirs
- Repository: https://github.com/RyanDavison/add-subdirs
- Homepage: https://github.com/RyanDavison/add-subdirs#readme
- Issues: https://github.com/RyanDavison/add-subdirs/issues
- npm.io page: https://npm.io/package/add-subdirs

## Dependencies (1)

- [fs-extra](https://npm.io/package/fs-extra.md) ^3.0.1

## Recent versions

- 1.0.3 (latest) — 2017-05-11
- 1.0.2 — 2017-05-11
- 1.0.1 — 2017-05-11
- 1.0.0 — 2017-05-11

## README

# 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][, name])**

***
**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

---
_Source: https://npm.io/package/add-subdirs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
