Gathering detailed insights and metrics for miniprogram-posthtml-render
Gathering detailed insights and metrics for miniprogram-posthtml-render
Gathering detailed insights and metrics for miniprogram-posthtml-render
Gathering detailed insights and metrics for miniprogram-posthtml-render
npm install miniprogram-posthtml-render
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (90.34%)
HTML (9.66%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
141 Commits
1 Watchers
1 Branches
14 Contributors
Updated on Dec 08, 2020
Latest Version
1.0.1
Package Id
miniprogram-posthtml-render@1.0.1
Unpacked Size
21.19 kB
Size
6.52 kB
File Count
6
NPM Version
6.14.2
Node Version
14.0.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Fork from posthtml/posthtml-render@1.3.0
对posthtml-render
做如下变更
1[ 2 'area', 3 'base', 4 'br', 5 'col', 6 'command', 7 'embed', 8 'hr', 9 'img', 10 'input', 11 'keygen', 12 'link', 13 'menuitem', 14 'meta', 15 'param', 16 'source', 17 'track', 18 'wbr' 19]
替换为适用于小程序的:
1[ 2 'wxs', 3 'input', 4 'textarea', 5 'audio', 6 'icon', 7 'progress', 8 'rich-text', 9 'checkbox', 10 'radio', 11 'slider', 12 'switch', 13 'live-player', 14 'live-pusher', 15 'voip-room', 16 'canvas', 17 'ad', 18 'ad-custom', 19 'official-account', 20 'open-data', 21 'web-view', 22] 23// image, video可以有内容
removeSpaceBetweenAttributes
选项用于压缩, quoteAllAttributes
同时为true
生效。1 <input class="phone" type="number" />
->
1<input class="phone"type="number"/>
1<input class="phone" type="number" disabled />
->
1<input class="phone"type="number" disabled/>
key
, 以支持<input disabled />
写法。posthtml-parser
会将disabled
解释为{ "disabled": "" }
closingSingleTag
且内容为空的标签视为单标签:<view></view>
=> <view />
1$ yarn add miniprogram-posthtml-render -D
1const render = require('miniprogram-posthtml-render'); 2 3render(true, options);
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
61 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More