# fs-extra-enhancer

> `fs-extra-enhancer` is for enhancing `fs-extra`.

Latest version **1.0.4** (published 2017-06-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install fs-extra-enhancer
pnpm add fs-extra-enhancer
yarn add fs-extra-enhancer
bun add fs-extra-enhancer
```

## 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.4 |
| Published | 2017-06-02 |
| First published | 2017-05-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | antfoot |

## Links

- npm: https://www.npmjs.com/package/fs-extra-enhancer
- npm.io page: https://npm.io/package/fs-extra-enhancer

## Dependencies (3)

- [fs-extra](https://npm.io/package/fs-extra.md) ^3.0.1
- [is-relative](https://npm.io/package/is-relative.md) ^0.2.1
- [recursive-readdir-sync](https://npm.io/package/recursive-readdir-sync.md) ^1.0.6

## Recent versions

- 1.0.4 (latest) — 2017-06-02
- 1.0.3 — 2017-06-02
- 1.0.2 — 2017-06-02
- 1.0.1 — 2017-05-31
- 1.0.0 — 2017-05-31

## README

## what is `fs-extra-enhancer`

`fs-extra-enhancer` is for enhancing `fs-extra`. 

```
const fsee = require('fs-extra-enhancer');
```

## how to use

### async

+   `fsee.emptyDir(dir[, filter], callback)` 

    `filter` is added for `fse.emptyDir(dir, callback)`.

    Sometimes we don't want to empty all files in dir to avoid errors like `EACCESS`, then we can use this function.

    example:

    ```
    fsee.emptyDir(dir, {
        ignored: /\.DS_Store/
    }, function(err) {
        if (err) {
            throw err;
        }

        console.log('done');
    })
    ``` 

    It won't remove `.DS_Store` when empty dir, which won't cause `EACCESS` errors when `emptyDir` tried to remove files like `.idea/.DS_Store/...`(`sudo` is needed).

+   others

    same as `fs-extra`.

### sync 

+   `fsee.emptyDirSync(dir[, filter])`

+   others

    same as `fs-extra`.

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