
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
postxml-import
Advanced tools
PostXML to import html files.
npm i postxml-import --save-dev
Query selector.
Type: String
Default: import[src]
Attribute that contains path.
Type: String
Default: src
Function that get value of attr and returns absolute path to file.
Type: Function
Default:
function (attr) {
return attr;
}
<import src="block.htm"></import>
(block.htm)<div class="b-block">
<div class="b-block__element"></div>
</div>
<div class="b-block">
<div class="b-block__element"></div>
</div>
<import src="block.htm">
<p>Content</p>
</import>
(block.htm)<div class="b-block">
<div class="b-block__element"></div>
<content></content>
</div>
<div class="b-block">
<div class="b-block__element"></div>
<p>Content</p>
</div>
<import component="componentName"></import>
{
selector: 'import[component]',
attr: 'component',
path: function (componentName) {
return 'blocks/' + componentName + '/' + componentName + '.htm'
}
}
<img src="image.svg">
{
selector: 'img[src$=".svg"]',
path: function (src) {
return 'cwd/' + src
}
}
<svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>
MIT
FAQs
Postxml plugin enables import files.
We found that postxml-import 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.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.