# unwrap-dir **Repository Path**: mirrors_michaelrhodes/unwrap-dir ## Basic Information - **Project Name**: unwrap-dir - **Description**: remove top-level wrapping directories - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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)