Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 - npm Package Compare versions

Comparing version 4.1.1 to 5.0.0

9

dist/index.js

@@ -1,2 +0,2 @@

import { callbackify } from 'util';
import { callbackify } from 'node:util';
import through from 'through2';

@@ -6,3 +6,2 @@ import html2pug from 'html2pug';

import PluginError from 'plugin-error';
const PLUGIN_NAME = 'gulp-html2pug';

@@ -25,5 +24,3 @@

var index = ((options = {}) => through.obj(transform(options)));
export { index as default };
//# sourceMappingURL=index.js.map
export default ((options = {}) => through.obj(transform(options)));
//# sourceMappingURL=index.js.map
{
"name": "gulp-html2pug",
"version": "4.1.1",
"version": "5.0.0",
"description": "Gulp plugin to convert html files to pug",
"main": "dist/index.cjs",
"main": "dist/index.js",
"type": "module",
"engines": {
"node": ">=12.2"
"node": ">=14.0"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
".": "./dist/index.js",
"./package.json": "./package.json"
},
"scripts": {
"build": "rollup -c",
"build": "babel src -s -d dist",
"lint": "eslint --cache .",

@@ -47,24 +45,23 @@ "test": "mocha",

"through2": "^4.0.2",
"vinyl-contents-tostring": "^4.1.1"
"vinyl-contents-tostring": "^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.0",
"@babel/plugin-proposal-partial-application": "^7.16.0",
"@babel/plugin-proposal-throw-expressions": "^7.16.0",
"@rollup/plugin-babel": "^5.3.0",
"builtin-modules": "^3.2.0",
"c8": "^7.10.0",
"chai": "^4.3.4",
"@babel/cli": "^7.17.10",
"@babel/core": "^7.18.2",
"@babel/eslint-parser": "^7.18.2",
"@babel/plugin-proposal-partial-application": "^7.17.12",
"@babel/plugin-proposal-throw-expressions": "^7.16.7",
"c8": "^7.11.3",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"dirty-chai": "^2.0.1",
"eslint": "^8.1.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-node": "^11.1.0",
"mocha": "^9.1.3",
"eslint": "^8.16.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-mocha": "^10.0.5",
"eslint-plugin-n": "^15.2.0",
"eslint-plugin-unicorn": "^42.0.0",
"mocha": "^10.0.0",
"p-event": "^5.0.1",
"rollup": "^2.59.0",
"sinon": "^12.0.0",
"sinon": "^14.0.0",
"sinon-chai": "^3.7.0",

@@ -71,0 +68,0 @@ "vinyl": "^2.2.1"

# gulp-html2pug
[![Travis][build-badge]][build]
[![Build Status][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coverage Status][coveralls-badge]][coveralls]
[![Dependency Status][dependency-status-badge]][dependency-status]
[![devDependency Status][dev-dependency-status-badge]][dev-dependency-status]

@@ -22,11 +20,10 @@ > Convert html files to pug

```js
const gulp = require('gulp');
const html2pug = require('gulp-html2pug');
import gulp from 'gulp';
import html2pug from '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'));
});
gulp.task('pug', () =>
gulp.src('index.html')
.pipe(html2pug(/* options for html2pug such as { fragment: true } */))
.pipe(gulp.dest('pug'))
);
```

@@ -46,7 +43,1 @@

[coveralls]: https://coveralls.io/r/dotcore64/gulp-html2pug
[dependency-status-badge]: https://david-dm.org/dotcore64/gulp-html2pug.svg?style=flat-square
[dependency-status]: https://david-dm.org/dotcore64/gulp-html2pug
[dev-dependency-status-badge]: https://david-dm.org/dotcore64/gulp-html2pug/dev-status.svg?style=flat-square
[dev-dependency-status]: https://david-dm.org/dotcore64/gulp-html2pug#info=devDependencies

Sorry, the diff of this file is not supported yet

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