Skip to content

hemanth/gulp-html2txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

gulp plugin to convert html file to txt.

Resources

Stars

Watchers

Forks

Packages