Installations
npm install xp-loadjs
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.18.1
NPM Version
6.14.5
Score
71.1
Supply Chain
77.1
Quality
75.4
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (70.56%)
TypeScript (29.44%)
Developer
excaliburhan
Download Statistics
Total Downloads
3,698
Last Day
1
Last Week
3
Last Month
16
Last Year
332
GitHub Statistics
1 Stars
19 Commits
1 Watching
9 Branches
1 Contributors
Bundle Size
1.04 kB
Minified
610.00 B
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
3,698
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
25
xp-loadjs
动态导入js,支持promise
Usage
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
- Warn: project does not have a license file
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Reason
23 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-6fw4-hr69-g3rv
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-3f95-r44v-8mrg
- Warn: Project is vulnerable to: GHSA-28xr-mwxg-3qc8
- Warn: Project is vulnerable to: GHSA-9p95-fxvg-qgq2
- Warn: Project is vulnerable to: GHSA-9w5j-4mwv-2wj8
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
Score
1.3
/10
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