# gulp-exclude-gitignore

> Gulp plugin to exclude file contained in .gitignore from the stream

Latest version **1.2.0** (published 2017-09-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-exclude-gitignore
pnpm add gulp-exclude-gitignore
yarn add gulp-exclude-gitignore
bun add gulp-exclude-gitignore
```

## 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.2.0 |
| Published | 2017-09-02 |
| First published | 2015-07-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 27 |
| Author | Simon Boudrias |
| Maintainers | sboudrias, silvenon, arthurvr, sindresorhus, addyosmani |
| Keywords | gulp, gulpplugin, git, gitignore, exclude, stream |

## Links

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

## Dependencies (1)

- [gulp-ignore](https://npm.io/package/gulp-ignore.md) ^2.0.2

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2017-09-02
- 1.1.1 — 2016-11-23
- 1.1.0 — 2016-11-20
- 1.0.0 — 2015-07-14

## README

# gulp-exclude-gitignore [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]

Ever find yourself in a situation where you want to run a gulp plugin against every JavaScript file in your project? You do so, but then it start throwing at all your `node_modules`?

The usual fix is to add negative glob patterns to your `gulp.src()` call. Doesn't this feel verbose and tedious? There is a better way! You already have this list inside your `.gitignore` file, let's just use it.

## Install

```sh
$ npm install --save-dev gulp-exclude-gitignore
```


## Usage

```js
var excludeGitignore = require('gulp-exclude-gitignore');

gulp.src('**/*.js')
  .pipe(excludeGitignore())
  .pipe(jshint());
```


## License

ISC © [Simon Boudrias](http://simonboudrias.com)


[npm-image]: https://badge.fury.io/js/gulp-exclude-gitignore.svg
[npm-url]: https://npmjs.org/package/gulp-exclude-gitignore
[travis-image]: https://travis-ci.org/SBoudrias/gulp-exclude-gitignore.svg?branch=master
[travis-url]: https://travis-ci.org/SBoudrias/gulp-exclude-gitignore
[daviddm-image]: https://david-dm.org/SBoudrias/gulp-exclude-gitignore.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/SBoudrias/gulp-exclude-gitignore
[coveralls-image]: https://coveralls.io/repos/SBoudrias/gulp-exclude-gitignore/badge.svg
[coveralls-url]: https://coveralls.io/r/SBoudrias/gulp-exclude-gitignore

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