# unwrap-dir

> remove top-level wrapping directories

Latest version **1.0.1** (published 2015-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install unwrap-dir
pnpm add unwrap-dir
yarn add unwrap-dir
bun add unwrap-dir
```

## 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.1 |
| Published | 2015-02-03 |
| First published | 2015-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael Rhodes |
| Maintainers | michaelrhodes |
| Keywords | unwrap, dir, wrapping, directory |

## Links

- npm: https://www.npmjs.com/package/unwrap-dir
- Repository: git@github.com:michaelrhodes/unwrap-dir
- Homepage: https://github.com/michaelrhodes/unwrap-dir
- Issues: https://github.com/michaelrhodes/unwrap-dir/issues
- npm.io page: https://npm.io/package/unwrap-dir

## Dependencies (5)

- [mv](https://npm.io/package/mv.md) ~2.0.3
- [is-dir](https://npm.io/package/is-dir.md) ~1.0.0
- [rimraf](https://npm.io/package/rimraf.md) ~2.2.8
- [run-parallel](https://npm.io/package/run-parallel.md) ~1.0.0
- [run-waterfall](https://npm.io/package/run-waterfall.md) ~1.0.2

## Recent versions

- 1.0.1 (latest) — 2015-02-03
- 1.0.0 — 2015-02-03

## README

# unwrap-dir
unwrap-dir removes top-level wrapping directories.

[![Build status](https://travis-ci.org/michaelrhodes/unwrap-dir.svg?branch=master)](https://travis-ci.org/michaelrhodes/unwrap-dir)

## install
```sh
$ npm install unwrap-dir
```

## example
It’s often the case that you extract an archive and find its contents wrapped in a single directory. unwrap-dir can be used to rectify this annoyance.

```sh
some-folder
└─┬ wrapping-folder
  ├── one
  ├── two
  └── three
```

```js
var unwrap = require('unwrap-dir')

unwrap('./some-folder', function (err, unwrapped) {
  console.log(unwrapped)
  > true
})
```

```sh
some-folder
├── one
├── two
└── three
```

## license
[MIT](http://opensource.org/licenses/MIT)

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