# gulp-rm

> Gulp Plugin: Removes files and directories

Latest version **2.0.0** (published 2018-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-rm
pnpm add gulp-rm
yarn add gulp-rm
bun add gulp-rm
```

## 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 | 2.0.0 |
| Published | 2018-12-25 |
| First published | 2014-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jonas Hermsmeier |
| Maintainers | jhermsmeier |
| Keywords | gulpplugin, rm, rmdir, clean, remove, delete |

## Links

- npm: https://www.npmjs.com/package/gulp-rm
- Repository: https://github.com/jhermsmeier/gulp-rm
- Issues: https://github.com/jhermsmeier/gulp-rm/issues
- npm.io page: https://npm.io/package/gulp-rm

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2018-12-25
- 1.0.5 — 2018-01-30
- 1.0.4 — 2017-05-30
- 1.0.3 — 2017-05-15
- 1.0.2 — 2016-10-30
- 1.0.1 — 2016-04-26
- 1.0.0 — 2014-12-31
- 0.2.0 — 2014-03-12
- 0.1.0 — 2014-03-12

## README

# gulp-rm
[![npm](http://img.shields.io/npm/v/gulp-rm.svg?style=flat-square)](https://npmjs.com/gulp-rm)
[![npm](http://img.shields.io/npm/l/gulp-rm.svg?style=flat-square)](https://npmjs.com/gulp-rm)
[![npm downloads](http://img.shields.io/npm/dm/gulp-rm.svg?style=flat-square)](https://npmjs.com/gulp-rm)
[![build status](http://img.shields.io/travis/jhermsmeier/gulp-rm.svg?style=flat-square)](https://travis-ci.org/jhermsmeier/gulp-rm)

## Install with [npm](https://npmjs.org)
```sh
$ npm install --save-dev gulp-rm
```

## Usage

Passing `{ read: false }` to `gulp.src()` prevents gulp from
reading in the contents of files and thus speeds up the whole process.

**NOTE:** Deleting directories with dotfiles (i.e. `.DS_Store`) in them will fail, unless
a glob pattern matching them (i.e. `app/tmp/**/.*`) is also supplied to `gulp.src()`,
as they're considered hidden files and ignored by default by `gulp.src()`.

```javascript
var gulp = require( 'gulp' )
var rm = require( 'gulp-rm' )

gulp.task( 'clean:tmp', function() {
  return gulp.src( 'app/tmp/**/*', { read: false })
    .pipe( rm() )
})
```

To force sync `fs` operations, pass `async: false` to `rm()`:

```javascript
gulp.task( 'clean:tmp', function() {
  return gulp.src( 'app/tmp/**/*', { read: false })
    .pipe( rm({ async: false }) )
})
```

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