Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
event-station
Advanced tools
A versatile and robust event emitter class.
emitAsync()
calling()
and using()
moveTo()
, addTo()
, and removeFrom()
off()
occur()
pause()
, resume()
, and isPaused()
race()
and all()
promisesclone()
toObservable()
stopPropagation()
and listenerCount
extend()
any objectconfig()
optionsimport EventStation from 'event-station';
class Spaceship extends EventStation {
launch(destination) {
this.emit('launch', destination);
}
}
let Normandy = new Spaceship();
let Tempest = new Spaceship();
// Add two listeners via a listener map
let listeners = Normandy.on({
launch: (dest) => console.log(`Spaceship launched! En route to ${dest}.`),
dock: () => console.log('Spaceship docking.'),
});
// Attach the same listeners to Tempest that are on Normandy
listeners.addTo(Tempest);
// Launch Tempest when Normandy launches
Tempest.hear(Normandy, 'launch')
.once((dest) => Tempest.launch(dest));
// Launch both ships to the Andromeda Galaxy
Normandy.launch('Messier 31');
// Stop listening to both ships
listeners.off();
Node.js via Yarn
yarn add event-station
Node.js via npm
npm install event-station --save
SystemJS via jspm
jspm install npm:event-station
Web browser via Bower
bower install event-station
Web browser via <script>
<script src="dist/event-station.min.js"></script>
<script>new EventStation();</script>
EventStation
global when not imported as a moduleCopyright © 2016 Morris Allison III.
Released under the MIT license.
Event-Station was influenced by EventEmitter2 and Backbone.Events.
1.1.4
Listeners.all()
and Listeners.race()
when a Promise implementation isn't available.FAQs
A versatile and robust event emitter class.
The npm package event-station receives a total of 11 weekly downloads. As such, event-station popularity was classified as not popular.
We found that event-station demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.