Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
gulp-emblem
Advanced tools
Emblem.js plugin for gulp ...a concise, beautiful, and fully compatible templating alternative for Handlebars.js.
First, install gulp-emblem and gulp-define-module as development dependencies:
npm install --save-dev gulp-emblem gulp-define-module
Then, add it to your gulpfile.js
:
var emblem = require('gulp-emblem');
var defineModule = require('gulp-define-module');
gulp.task('templates', function(){
gulp.src(['client/templates/*.em'])
.pipe(emblem())
.pipe(defineModule('node'))
.pipe(gulp.dest('build/templates/'));
});
gulp-emblem outputs a raw handlebars function, so it is likely that you will want to use gulp-define-module to make the handlebars template available via a specific namespace or for use with a module system. For additional usage examples, we recommend that you visit gulp-handlebars and gulp-define-module.
gulp-define-module can be used to prepare the output for use with common module systems such as AMD, Node, and CommonJS. Please see the documentation for more details on how to use that in a gulp chain.
gulp-emblem makes the following available for use in the define-module wrapper:
handlebars
: The handlebars template fully wrapped (Handlebars.template(<%= contents %>)
).Type: Object
Compiler options to pass to Emblem.precompile()
.
This project is a fork of gulp-handlebars
by lazd.
Emblem.js is a concise, beautiful, and fully compatible templating alternative for Handlebars.js.
FAQs
Emblem.js plugin for gulp
The npm package gulp-emblem receives a total of 0 weekly downloads. As such, gulp-emblem popularity was classified as not popular.
We found that gulp-emblem demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.