gulp-html2txt

1.2.1 • Public • Published

gulp-html2txt NPM version Build Status

Converts HTML to txt using html-to-text

Usage

First, install gulp-html2txt as a development dependency:

npm install --save-dev gulp-html2txt

Then, add it to your gulpfile.js:

var html2txt = require('gulp-html2txt');
 
gulp.task('default', function(){
  gulp.src('index.html')
    .pipe(html2txt(options)) // options as in `html-to-text`
    .pipe(gulp.dest('dist'));
});

The above will convert index.html to index.txt.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.1
    10,926
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.1
    10,926
  • 1.2.0
    2
  • 1.1.0
    1
  • 1.0.0
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i gulp-html2txt

Weekly Downloads

9,575

Version

1.2.1

License

BSD-2-Clause

Unpacked Size

2.72 kB

Total Files

6

Last publish

Collaborators

  • hemanth