# gulp-split

> A gulp plugin for extract view, scripts, styles, etc. files from template file

Latest version **1.1.1** (published 2017-11-12) · MIT license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2017-11-12 |
| First published | 2016-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jahirul Islam Bhuiyan |
| Maintainers | rajumjib |
| Keywords | gulpplugin, split |

## Links

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

## Dependencies (2)

- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7

## Recent versions

- 1.1.1 (latest) — 2017-11-12
- 1.1.0 — 2017-11-09
- 1.0.0 — 2016-07-13

## README

# gulp-split
A gulp plugin for extract view, scripts, styles, etc. files from template file

Installation
----------

Install via [npm](http://npmjs.org/)

    npm install gulp-split --save


Usage overview
----------

Import the module and call it into gulp task
  
    var htmlextract = require('gulp-split');
    
### Extract Content

Extract one or more block of content from a file to multiple files.

    htmlextract({quiet: false,relative: true});

Options
    
* **transform**: Optional.
* **read**: Optional.
* **quiet**: Optional.
* **relative**: Optional.

* **addRootSlash**: Optional.
* **keepTags**: Optional.
* **donotChange**: Optional.

* **name**: Optional.
* **transform**: Optional.
* **selfClosingTag**: Optional.
    
*Example*: Process all HTML files to saperate css and js from html

    var paths = {
        samples: [
            'samples/*/*.html',
            '!samples/results/*.html'
        ],
        results: './samples/results'
    };
    gulp.task('processAllSamples', function () {
        'use strict';
        gulp.src(paths.samples)
            .pipe(htmlextract({
                quiet: false,
                relative: true
            }))
            .pipe(gulp.dest(paths.results));
    });

  
# To Contribute

Please fork and send pull request, welcome!

# TODO List
* Add tests
* Changelog

# Author

Maintained by [Jahirul Islam Bhuiyan](http://www.online4help.com).

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