Socket
Socket
Sign inDemoInstall

gulp-html2txt

Package Overview
Dependencies
4
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-html2txt

gulp plugin to convert html to text


Version published
Weekly downloads
8.2K
decreased by-15.39%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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(150)) // optional wordwrap value.
    .pipe(gulp.dest('dist'));
});

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

Keywords

FAQs

Last updated on 05 Jan 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc