Installations
npm install @rexxars/eventsource-polyfill
Releases
Unable to fetch releases
Developer
rexxars
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
12.6.0
NPM Version
6.9.0
Statistics
1 Stars
3 Commits
2 Watching
1 Branches
1 Contributors
Updated on 17 Apr 2020
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
9,036,104
Last day
33.2%
4,867
Compared to previous day
Last week
9.1%
21,606
Compared to previous week
Last month
11.1%
85,486
Compared to previous month
Last year
-33.8%
1,055,473
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
4
EventSource Polyfill
Forked from amvtek/EventSource. See fork modification for more details.
Provide polyfill to support EventSource in browser where it is not available.
- Used in production
- Tested in Internet Explorer 8 +
- Tested in Android browser 2.1 +
Installing
1$ npm install @rexxars/eventsource-polyfill
Usage (through bundler)
1const EventSource = 2 typeof window !== 'undefined' && window.EventSource 3 ? window.EventSource 4 : require('@rexxars/eventsource-polyfill') 5 6const es = new EventSource('/my-es-endpoint')
Usage (drop-in script)
1<script src="https://unpkg.com/@rexxars/eventsource-polyfill"></script> 2<script> 3 var es = new EventSource('/my-es-endpoint') 4</script>
Fork modifications
- New package name:
@rexxars/eventsource-polyfill
- UMD module definition - CommonJS, AMD and browser globals
- Fixed a few global variable leaks-
- Check for
window.location
before usage (fixes react native crashing) - Stop dispatching events after closed
License
MIT-licensed. See LICENSE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
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
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2024-11-18
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