# broccoli-file-remover

> Broccoli plugin to move a single file.

Latest version **0.3.1** (published 2014-10-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install broccoli-file-remover
pnpm add broccoli-file-remover
yarn add broccoli-file-remover
bun add broccoli-file-remover
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2014-10-05 |
| First published | 2014-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Robert Jackson |
| Maintainers | rwjblue |
| Keywords | broccoli-plugin, javascript |

## Links

- npm: https://www.npmjs.com/package/broccoli-file-remover
- Repository: https://github.com/rjackson/broccoli-file-remover
- Issues: https://github.com/rjackson/broccoli-file-remover/issues
- npm.io page: https://npm.io/package/broccoli-file-remover

## Dependencies (5)

- [mkdirp](https://npm.io/package/mkdirp.md) ~0.5.0
- [rimraf](https://npm.io/package/rimraf.md) ~2.2.8
- [walk-sync](https://npm.io/package/walk-sync.md) ^0.1.3
- [broccoli-writer](https://npm.io/package/broccoli-writer.md) ~0.1.1
- [symlink-or-copy](https://npm.io/package/symlink-or-copy.md) ^1.0.0

## Recent versions

- 0.3.1 (latest) — 2014-10-05
- 0.3.0 — 2014-09-29
- 0.2.3 — 2014-08-28
- 0.2.2 — 2014-06-29
- 0.2.1 — 2014-05-30
- 0.2.0 — 2014-04-26
- 0.1.0 — 2014-04-22

## README

# Broccoli's File Remover

[![Build Status](https://travis-ci.org/rjackson/broccoli-file-remover.svg?branch=master)](https://travis-ci.org/rjackson/broccoli-file-remover)

## Installation

```bash
npm install --save-dev broccoli-file-remover
```

## Usage

### Files

Removing a single file from `app/main`:

```javascript
var removeFile = require('broccoli-file-remover');

var tree = removeFile('app', {
  srcFile: 'app/main.js'
});
```

Removing `app/main` and `test/main`:

```javacript
var removeFile = require('broccoli-file-remover');

var tree = removeFile('app', {
  files: ['app/main.js', 'test/main.js']
});
```

### Directories

Removing a directory (`tests/dummy`):

```javascript
var removeFile = require('broccoli-file-remover');

var tree = removeFile('app', {
  path: 'tests/dummy'
});
```

Removing a number of directories:

```javascript
var removeFile = require('broccoli-file-remover');

var tree = removeFile('app', {
  paths: ['directory1', 'directory2']
});
```

## Documentation

### `removeFile(inputTree, options)`

---

`options.srcFile` *{String}* (also aliased as `options.path`)

The path of the file to remove.

---

`options.files` *{Array}* (also aliased as `options.paths`)

This allows specifying more than one remove operation at a time (and reduced the total number of trees/steps
needed if you need to move many files or directories). Each file listed in the array will be removed.

## ZOMG!!! TESTS?!?!!?

I know, right?

Running the tests:

```javascript
npm install
npm test
```

## License

This project is distributed under the MIT license.

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