gulp-html-to-object

The gulp plugin for the HTML parser html-to-object.


Keywords
html parser, javascript parser, javascript, html, parser
License
MIT
Install
npm install gulp-html-to-object@1.1.7

Documentation

gulp-html-to-object

The gulp plugin of the lightweight HTML parser html-to-object.

Install

$ npm install --save-dev gulp-html-to-object

Usage

// source file
const modal = h2o('./src/file.html');
console.log(modal);
// gulpfile.js
const gulp = require('gulp');
const h2o = require('gulp-html-to-object');

gulp.task('javascript', () => {
  return gulp.src('./src/*.js')
    .pipe(h2o([options]))
    .pipe(gulp.dest('./dist'));
});

License

MIT © Max Sandelin