Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Gulp plugin for compiling Pug templates. Enabling you to compile your Pug templates into HTML or JS, with support for template locals, custom Pug filters, AMD wrapping, and others.
const { src, dest } = require('gulp');
const pug = require('gulp-pug');
exports.views = () => {
return src('./src/*.pug')
.pipe(
pug({
// Your options in here.
})
)
.pipe(dest('./dist'));
};
pug([opts])
opts
(Object
): Any options from Pug's API in addition to pug
's own options.opts.locals
(Object
): Locals to compile the Pug with. You can also provide locals through the data
field of the file object, e.g. with gulp-data
. They will be merged with opts.locals
.opts.data
(Object
): Same as opts.locals
.opts.client
(Boolean
): Compile Pug to JavaScript code.opts.pug
: A custom instance of Pug for gulp-pug
to use.opts.verbose
: display name of file from stream that is being compiled.To change opts.filename
use gulp-rename
before gulp-pug
.
Returns a stream that compiles Vinyl files as Pug.
pug
gulp-data
: Using locals in your Pug templates easier.gulp-rename
: Change opts.filename
passed into Pug.gulp-wrap-amd
: Wrap your Pug in an AMD wrapper.gulp-frontmatter-wrangler
: Useful if you need YAML frontmatter at the top of your Pug file.MIT
FAQs
Gulp plugin for compiling Pug templates
We found that gulp-pug demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.