Gathering detailed insights and metrics for xp-loadjs
Gathering detailed insights and metrics for xp-loadjs
Gathering detailed insights and metrics for xp-loadjs
Gathering detailed insights and metrics for xp-loadjs
npm install xp-loadjs
Typescript
Module System
Node Version
NPM Version
71.1
Supply Chain
77.1
Quality
75.4
Maintenance
100
Vulnerability
100
License
JavaScript (70.56%)
TypeScript (29.44%)
Total Downloads
3,698
Last Day
1
Last Week
3
Last Month
16
Last Year
332
1 Stars
19 Commits
1 Watching
9 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.5
Package Id
xp-loadjs@1.0.5
Unpacked Size
14.42 kB
Size
4.64 kB
File Count
13
NPM Version
6.14.5
Node Version
12.18.1
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-62.5%
3
Compared to previous week
Last month
-59%
16
Compared to previous month
Last year
-31.7%
332
Compared to previous year
25
动态导入js,支持promise
1import loadjs from 'xp-loadjs' 2 3// single file 4loadjs('https://cdn.bootcss.com/jquery/3.3.1/jquery.js') 5 .then(() => { 6 console.log('load success') 7 }) 8 .catch(() => { 9 console.log('load error') 10 }) 11 12// custom dataset 13// <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js" id="1"></script> 14loadjs({ 15 url: 'https://cdn.bootcss.com/jquery/3.3.1/jquery.js', 16 extraPropMap: { 17 id: 1 18 } 19}) 20 21// multiple files 22loadjs(['https://cdn.bootcss.com/jquery/3.3.1/jquery.js', 'https://cdn.bootcss.com/lodash.js/4.17.4/lodash.js']) 23 .then(() => { 24 console.log('load success') 25 }) 26 .catch(() => { 27 console.log('load error') 28 })
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/15 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
23 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
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