# gulp-extract-text

> By Ralph Crisostomo - 2016/04/05

Latest version **1.0.1** (published 2018-01-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-extract-text
pnpm add gulp-extract-text
yarn add gulp-extract-text
bun add gulp-extract-text
```

## 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.1 |
| Published | 2018-01-07 |
| First published | 2018-01-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 9.2.1 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ralph Crisostomo |
| Maintainers | ralphcrisostomo |
| Keywords | gulp, javascript, plugin, extract, text |

## Links

- npm: https://www.npmjs.com/package/gulp-extract-text
- Repository: https://github.com/ralphcrisostomo/gulp-extract-text
- Issues: https://github.com/ralphcrisostomogulp-extract-text/issues
- npm.io page: https://npm.io/package/gulp-extract-text

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) ^2.0.3
- [gulp-mocha](https://npm.io/package/gulp-mocha.md) ^5.0.0

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-01-07
- 1.0.0 — 2018-01-07

## README

# gulp-extract-text
By Ralph Crisostomo - 2018/01/07

## Description
A Gulp plugin for extracting text from a file.

## Install
```bash
npm install --save-dev gulp-extract-text
```

## Extract files
Extract text from different files like `.txt`, `.html`, `.css`, `.js` and etc.

## Parameters
```javascript
let extract_text_params = {
    pattern_start       : "<pattern start>",
    pattern_end         : "<pattern end>"
}
```

## Basic Usage
Let say we want to extract all the text inside `<head>` tag and export it to `dist` directory.

```javascript
const gulp              = require('gulp');
const extract_text      = require('gulp-extract-text');

let extract_text_params = {
    pattern_start       : "<head>",
    pattern_end         : "</head>"
}

gulp.task('deploy',function(){
    gulp.src(['src/index.html'])
    .pipe(extract_text(extract_text_params))
    .pipe(gulp.dist('./dist'))
});

```

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