Socket
Socket
Sign inDemoInstall

gulp-pug

Package Overview
Dependencies
111
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 2.0.0

7

index.js

@@ -25,4 +25,4 @@ 'use strict';

// Locals
opts.data = opts.data || {};
var data = opts.data;

@@ -33,2 +33,7 @@ if (file.data) {

// Custom pug module
if (opts.pug) {
pug = opts.pug;
}
// Replace contents

@@ -35,0 +40,0 @@ if (html.isBuffer()) {

7

package.json
{
"name": "gulp-pug",
"version": "1.3.1",
"version": "2.0.0",
"description": "Gulp plugin for compiling Pug templates.",

@@ -38,9 +38,6 @@ "main": "index.js",

"gulp-util": "^3.0.7",
"pug": "latest",
"through2": "^2.0.1",
"util-extend": "^1.0.3"
},
"peerDependencies": {
"pug": "*",
"gulp": "*"
}
}

@@ -5,9 +5,6 @@ gulp-pug

A Gulp plugin for compiling Pug templates. In order to use, you must install a version of `pug` alongside `gulp-pug`... This is so `gulp-pug` can rely on the version of `pug` that you want.
## Installation
```shell
$ npm install --save-dev gulp-pug pug@latest
$ npm install --save-dev gulp-pug
```
Make sure you are using the latest version of `pug` if you are experiencing any strange problems.

@@ -30,2 +27,3 @@ ## Usage

- `options.data` (`Object`): Locals to use in template. (Also see [`gulp-data`][gulp-data])
- `options.pug`: Custom `pug` module for `gulp-pug` to override default of `latest`.

@@ -32,0 +30,0 @@ Example:

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc