
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
miniprogram-posthtml-render
Advanced tools
Fork from posthtml/posthtml-render@1.3.0
对posthtml-render做如下变更
[
'area',
'base',
'br',
'col',
'command',
'embed',
'hr',
'img',
'input',
'keygen',
'link',
'menuitem',
'meta',
'param',
'source',
'track',
'wbr'
]
替换为适用于小程序的:
[
'wxs',
'input',
'textarea',
'audio',
'icon',
'progress',
'rich-text',
'checkbox',
'radio',
'slider',
'switch',
'live-player',
'live-pusher',
'voip-room',
'canvas',
'ad',
'ad-custom',
'official-account',
'open-data',
'web-view',
]
// image, video可以有内容
removeSpaceBetweenAttributes选项用于压缩, quoteAllAttributes同时为true生效。 <input class="phone" type="number" />
->
<input class="phone"type="number"/>
<input class="phone" type="number" disabled />
->
<input class="phone"type="number" disabled/>
key, 以支持<input disabled />写法。posthtml-parser会将disabled解释为{ "disabled": "" }closingSingleTag且内容为空的标签视为单标签:<view></view> => <view />$ yarn add miniprogram-posthtml-render -D
const render = require('miniprogram-posthtml-render');
render(true, options);
FAQs
Renders PostHTML Tree to HTML/XML
We found that miniprogram-posthtml-render 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.