Socket
Socket
Sign inDemoInstall

gulp-html2pug

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-html2pug

Gulp plugin to convert html files to pug


Version published
Weekly downloads
59
decreased by-48.25%
Maintainers
2
Weekly downloads
 
Created
Source

gulp-html2pug

Travis npm package Coverage Status Dependency Status devDependency Status

Convert html files to pug

Install

$ npm install --save-dev gulp-html2pug

Usage

Convert index.html to pug/index.pug:

const gulp = require('gulp');
const html2pug = require('gulp-html2pug');

gulp.task('pug', function() {
  // Backend locales
  return gulp.src('index.html')
  .pipe(html2pug(/* options for html2pug such as { fragment: true } */))
  .pipe(gulp.dest('pug'));
});

License

See the LICENSE file for license rights and limitations (MIT).

Keywords

FAQs

Package last updated on 31 Oct 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc