Evented JavaScript for the browser
Installations
npm install wolfy87-eventemitter
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
13.5.0
NPM Version
6.13.2
Score
99.9
Supply Chain
93.8
Quality
76.2
Maintenance
100
Vulnerability
100
License
Releases
Swapped to The Unlicense
Published on 08 Dec 2014
README improvements and merging PRs
Published on 01 Dec 2014
v4.2.9
Published on 30 Sept 2014
v4.2.8
Published on 30 Sept 2014
Fixing Android 2.2 RegExp type check
Published on 29 Dec 2013
Adding component support.
Published on 08 Nov 2013
Contributors
Unable to fetch Contributors
Languages
JavaScript (98.07%)
HTML (1.18%)
Shell (0.75%)
Developer
Olical
Download Statistics
Total Downloads
51,757,047
Last Day
30,064
Last Week
156,643
Last Month
517,400
Last Year
8,166,056
GitHub Statistics
3,123 Stars
733 Commits
388 Forks
58 Watching
1 Branches
29 Contributors
Bundle Size
3.09 kB
Minified
1.13 kB
Minified + Gzipped
Package Meta Information
Latest Version
5.2.9
Package Id
wolfy87-eventemitter@5.2.9
Size
19.78 kB
NPM Version
6.13.2
Node Version
13.5.0
Publised On
18 Jan 2020
Total Downloads
Cumulative downloads
Total Downloads
51,757,047
Last day
12.4%
30,064
Compared to previous day
Last week
53.4%
156,643
Compared to previous week
Last month
-30%
517,400
Compared to previous month
Last year
-22%
8,166,056
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
6
EventEmitter
Event based JavaScript for the browser
As the subtitle suggests, this script brings the power of events from platforms such as node.js to your browser. Although it can be used on any other platform, I just built it with browsers in mind.
This is actually the fourth full rewrite of EventEmitter, my aim is for it to be faster and lighter than ever before. It also has a remapped API which just makes a lot more sense. Because the methods now have more descriptive names it is friendlier to extend EventEmitter into other classes. You will be able to distinguish event methods from your own methods.
I have been working on it for over a year two three years so far and in that time my skills in JavaScript have come a long way. This script is a culmination of my learnings which you can hopefully find very useful.
Dependencies
There are no hard dependencies. The only reason you will want to run npm install
to grab the development dependencies is to build the documentation or minify the source code. No other scripts are required to actually use EventEmitter.
Documentation
Examples
Testing
Tests are performed using Mocha and Chai, just serve up the directory using your local HTTP server of choice (http-server is probably a good choice) and open up tests/index.html
. You can also use the server scripts in the tools
directory.
Building the documentation
You can run tools/doc.sh
to build from the JSDoc comments found within the source code. The built documentation will be placed in docs/api.md
. I actually keep this inside the repository so each version will have it's documentation stored with it.
Minifying
You can grab minified versions of EventEmitter from inside this repository, every version is tagged. If you need to build a custom version then you can run tools/dist.sh
.
Cloning
You can clone the repository with your generic clone commands as a standalone repository or submodule.
1# Full repository 2git clone git://github.com/Olical/EventEmitter.git 3 4# Or submodule 5git submodule add git://github.com/Olical/EventEmitter.git assets/js/EventEmitter
Package managers
You can also get a copy of EventEmitter through the following package managers:
Unlicense
This project used to be released under MIT, but I release everything under the Unlicense now. Here's the gist of it but you can find the full thing in the UNLICENSE
file.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
I gave people the chance to object in issue #84, which also explains my reasoning.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: UNLICENSE:0
- Info: FSF or OSI recognized license: The Unlicense: UNLICENSE:0
Reason
Found 4/20 approved changesets -- score normalized to 2
Reason
project is archived
Details
- Warn: Repository is archived.
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'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 15 are checked with a SAST tool
Reason
31 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx
- Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-c6rq-rjc2-86v2
- Warn: Project is vulnerable to: GHSA-6cpc-mj5c-m9rq
- Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9
- Warn: Project is vulnerable to: GHSA-c6rp-wrp9-qr4q
- Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3
- Warn: Project is vulnerable to: MAL-2023-462
- Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq
- Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37
- Warn: Project is vulnerable to: GHSA-7px7-7xjx-hxm8
- Warn: Project is vulnerable to: GHSA-x5pg-88wf-qq4p
- Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj
- Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m / GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f
- Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m
- Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9
- Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw
- Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc
- Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh
- Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
Score
2
/10
Last Scanned on 2025-01-13
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 MoreOther packages similar to wolfy87-eventemitter
@yydounai/wolfy87-eventemitter
esm TypeScript typings for wolfy87-eventemitter
@types/wolfy87-eventemitter
Type definitions for wolfy87-eventemitter v4.2.9 from https://www.github.com/DefinitelyTyped/DefinitelyTyped
retyped-wolfy87-eventemitter-tsd-ambient
TypeScript typings for wolfy87-eventemitter
@ryancavanaugh/wolfy87-eventemitter
Type definitions for wolfy87-eventemitter v4.2.9 from https://www.github.com/DefinitelyTyped/DefinitelyTyped