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.
blueimp-tmpl-loader
Advanced tools
blueimp template loader for webpack. Compile templates and allows minification
npm install blueimp-tmpl-loader --save-dev
var template = require("blueimp-tmpl!./file.html");
// => returns the template function compiled with the tmpl templating engine.
// And then use it somewhere in your code
template(data) // Pass object with data
Alternatively you can also define blueimp-tmpl in your webpack.config file:
{
module: {
loaders: [
{ test: "\.tpl.html$", loader: "blueimp-tmpl" },
]}
}
var template = require('./file.tpl.html');
The blueimp-tmpl loader allows you to minify the html before compiling by setting a loader query string
{
module: {
loaders: [
{ test: "\.tpl.html$", loader: "html-tpl?minimize=true" }
]
}
Run unit tests:
npm install
npm test
http://jantimon.github.io/blueimp-tmpl-loader/
FAQs
blueimp templates loader for webpack
The npm package blueimp-tmpl-loader receives a total of 2 weekly downloads. As such, blueimp-tmpl-loader popularity was classified as not popular.
We found that blueimp-tmpl-loader 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.