Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
broccoli-vulcanize-html-imports
Advanced tools
Broccoli plugin for vulcanizing HTML imports with Polymer Vulcanize tool
Broccoli plugin for vulcanizing HTML imports with Polymer vulcanize tool. It strips out HTML imports from files and then vulcanizes the import files. This is useful for preprocessing templates before compiling them.
npm install --save-dev broccoli-vulcanize-html-imports
var vulcanize = require('broccoli-vulcanize-html-imports');
var inputTree = 'templates';
var options = {
extensions: ['html', 'hbs'],
outputFile: 'assets/components.html',
overwrite: true,
excludes: [/^data:/, /^http[s]?:/, /^\//],
abspath: '/webroot/',
stripExcludes: false,
stripComments: false,
inlineScripts: false,
inlineCss: false,
implicitStrip: false
};
module.exports = vulcanize(inputTree, options);
Input Tree
templates
+ - components
| + - component.hbs
+ - page.html
Output Tree
.
+ - assets
| + - components.html
| + - components.js
+ - components
| + - component.hbs
+ - page.html
The assets\components.html
and assets\components.js
are vulcanized import files and components\component.hbs
and page.html
are stripped out of HTML imports except the ones that are specified in excludes
option.
See polymer vulcanize for details on options
.
FAQs
Broccoli plugin for vulcanizing HTML imports with Polymer Vulcanize tool
We found that broccoli-vulcanize-html-imports 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.