</>PackageGraphPackageGraph

events

npmv3.3.0

Node's event emitter for all engines.

Not recommended for new projects

No — events should not be adopted for new projects. Last published 2020 days ago.

  • AAdoption: grade A, Excellent.

    92.2M downloads per week and 2 known dependents.

  • FMaintenance: grade F, Failing.

    Last published 2020 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 81 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding events to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

81 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=0.8.x
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the events README.

javascriptFull README ↗
var EventEmitter = require('events')

var ee = new EventEmitter()
ee.on('message', function (text) {
  console.log(text)
})
ee.emit('message', 'hello world')

events vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
eventsthis page92.2M2MIT5 years ago
socket.io18M1MIT10 days ago
why-is-node-running01MIT11 days ago
abort-controller04MIT11 days ago
event-target-shim02MIT11 days ago

Dependencies

Declared by events v3.3.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (6)

airtap ^1.0.0functions-have-names ^1.2.1has ^1.0.3has-symbols ^1.0.1isarray ^2.0.5tape ^5.0.0

Used by

Popular packages that depend on events.

Relationship graph

Dependencies (left) and dependents (right) of events.

webpackasapevents
events dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 196 days apart.

Recent versions of events
VersionPublishedSizeLicense
3.3.0latest5 years ago81 KBMIT
3.2.06 years ago76 KBMIT
3.1.06 years ago72 KBMIT
3.0.08 years ago70 KBMIT
2.1.08 years ago63 KBMIT
2.0.08 years agoMIT
1.1.110 years agoMIT
1.1.011 years agoMIT
1.0.212 years agoMIT
1.0.112 years agoMIT
1.0.012 years agoMIT
0.5.014 years agoMIT
0.4.015 years agoMIT
0.3.015 years agoMIT
0.2.015 years agoMIT

Overview

events is an npm package that node's event emitter for all engines. It is extremely widely used, with about 92.2M downloads per week and 2 known dependents in the graph. The latest version is 3.3.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need node's event emitter for all engines and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (92.2M weekly downloads).
  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use events?

No — events should not be adopted for new projects. Last published 2020 days ago.

How do I install events?

Run `npm install events` to add events to your npm project.

What license is events released under?

events is distributed under the MIT license.

How popular is events?

events has approximately 92,220,526 downloads per week and 2 known dependent packages.

Is events still maintained?

The most recent release of events (v3.3.0) was published 5 years ago.

Does events run install scripts?

No. events does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.