# gulp-xconcat

> Concatenates files

Latest version **1.0.0** (published 2016-01-09) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2016-01-09 |
| First published | 2016-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | onbing |
| Keywords | gulpplugin |

## Links

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

## Dependencies (3)

- [through2](https://npm.io/package/through2.md) ^0.6.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.1
- [concat-with-sourcemaps](https://npm.io/package/concat-with-sourcemaps.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2016-01-09

## README

## Installation

`npm install --save-dev gulp-xconcat`

## Usage

### Normal

```js
var concat = require('gulp-xconcat');

gulp.task('scripts', function() {
  return gulp.src('./lib/*.js')
    .pipe(concat('all.js', {
      newLine: ';',
      prefix: '// prefix...',
      suffix: '// suffix...'
    }))
    .pipe(gulp.dest('./dist/'));
});
```

### With Source maps

```js
var gulp = require('gulp');
var concat = require('gulp-xconcat');
var sourcemaps = require('gulp-sourcemaps');

gulp.task('javascript', function() {
  return gulp.src('src/**/*.js')
    .pipe(sourcemaps.init())
      .pipe(concat('all.js'))
    .pipe(sourcemaps.write())
    .pipe(gulp.dest('dist'));
});
```

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