# gulp-using

> Lists all files used

Latest version **0.1.1** (published 2016-05-12) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2016-05-12 |
| First published | 2014-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | jeromedecoster |
| Maintainers | jeromedecoster |
| Keywords | gulpplugin, log, file, using |

## Links

- npm: https://www.npmjs.com/package/gulp-using
- Repository: https://github.com/jeromedecoster/gulp-using
- Homepage: https://github.com/jeromedecoster/gulp-using#readme
- Issues: https://github.com/jeromedecoster/gulp-using/issues
- npm.io page: https://npm.io/package/gulp-using

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ~0.4.0
- [map-stream](https://npm.io/package/map-stream.md) ~0.1.0
- [pretty-bytes](https://npm.io/package/pretty-bytes.md) ^3.0.1

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-05-12
- 0.1.0 — 2015-12-11
- 0.0.1 — 2014-01-30

## README

# gulp-using

Gulp filter. Lists all files used. Helps you to verify what your patterns catch

## Install

```
npm install --save-dev gulp-using
```

## Example

After some complex `src` patterns, and some added filter plugins, it helps you to list all files catched

```js
const using = require('gulp-using')

var jsfiles = ['./src/js/**/*.js', '!./src/js/vendor/**']

gulp.task('default', function() {
  gulp.watch(jsfiles, function() {
    gulp.src(jsfiles)
      // action or filter...
      .pipe(using())
      // ...
  })
})
```

Output:

```
[12:18:43] Running 'default'...
[12:18:43] Finished 'default' in 14 ms
[12:18:43] Using ./src/js/index.js
[12:18:43] Using ./src/js/multiply.js
[12:18:43] Using ./src/js/square.js
```

## Options

#### path

How the file path is displayed

* Type: `String`
* Default: `cwd`
* Values: `cwd`, `path`, `relative`

#### color

How the file path is colored

* Type: `String`
* Default: `magenta`
* Values: `black`, `blue`, `cyan`, `gray`, `green`, `magenta`, `red`, `white`, `yellow`

#### prefix

Message shown before the file path

* Type: `String`
* Default: `Using`

#### filesize

Filesize shown after the file path

* Type: `Boolean`
* Default: `false`


```js
// ...
.pipe(using({prefix:'Using file', path:'relative', color:'blue', filesize:true}))
```

Output:

```
[12:18:43] Running 'default'...
[12:18:43] Finished 'default' in 14 ms
[12:18:43] Using file index.js
[12:18:43] Using file multiply.js
[12:18:43] Using file square.js
```

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