gulp-html-to-object

1.1.7 • Public • Published

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

Package Sidebar

Install

npm i gulp-html-to-object

Weekly Downloads

1

Version

1.1.7

License

MIT

Last publish

Collaborators

  • themaxsandelin