strict-event-emitter
npmv0.5.1TypeScriptType-safe implementation of EventEmitter for browser and Node.js
Adopt with care
strict-event-emitter is usable, with caveats. Last published 1084 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- DMaintenance: grade D, Poor — a real concern.
Last published 1084 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 45 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- 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 strict-event-emitter to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the strict-event-emitter README.
// index.js
const emitter = new EventEmitter()
// Let's say our application expects a "ping"
// event with the number payload.
emitter.on('ping', (n: number) => {})
// We can, however, emit a different event by mistake.
emitter.emit('pong', 1)
// Or even the correct event with the wrong data.
emitter.emit('ping', 'wait, not a number')Dependencies
Declared by strict-event-emitter v0.5.1. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (10)
Used by
Popular packages that depend on strict-event-emitter.
Relationship graph
Dependencies (left) and dependents (right) of strict-event-emitter.
Frequently installed together
An HTTP/1.1 client, written from scratch for Node.js
Promise based HTTP client for the browser and node.js
Fast, unopinionated, minimalist web framework
Next generation testing framework powered by Vite
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
A high-level API to automate web browsers
Type-safe implementation of invariant with positionals.
A Promise-compatible abstraction that defers resolving/rejecting promises to another closure.
TypeScript definitions for node
A JavaScript implementation of many web standards
Reliably determines if the code is running in Node.js
A collection of essential TypeScript types
Release history
No releases in the last two years, typically about 1 day apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.5.1latest | 3 years ago | 45 KB | MIT |
| 0.5.0 | 3 years ago | 43 KB | MIT |
| 0.4.6 | 3 years ago | 14 KB | MIT |
| 0.4.5 | 3 years ago | 14 KB | MIT |
| 0.4.4 | 3 years ago | 14 KB | MIT |
| 0.4.3 | 3 years ago | 14 KB | MIT |
| 0.4.2 | 3 years ago | 14 KB | MIT |
| 0.4.1 | 3 years ago | 14 KB | MIT |
| 0.4.0 | 3 years ago | 14 KB | MIT |
| 0.3.2 | 3 years ago | 19 KB | MIT |
| 0.3.1 | 3 years ago | 8.6 KB | MIT |
| 0.3.0 | 3 years ago | 8.5 KB | MIT |
| 0.2.8 | 3 years ago | 8.4 KB | MIT |
| 0.2.7 | 3 years ago | 8.4 KB | MIT |
| 0.2.6 | 3 years ago | 8.4 KB | MIT |
Overview
strict-event-emitter is an npm package that type-safe implementation of EventEmitter for browser and Node.js. It has 2 known dependents in the graph. The latest version is 0.5.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need type-safe implementation of EventEmitter for browser and Node.js and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use strict-event-emitter?
strict-event-emitter is usable, with caveats. Last published 1084 days ago.
How do I install strict-event-emitter?
Run `npm install strict-event-emitter` to add strict-event-emitter to your npm project.
What license is strict-event-emitter released under?
strict-event-emitter is distributed under the MIT license.
How popular is strict-event-emitter?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on strict-event-emitter.
Is strict-event-emitter still maintained?
The most recent release of strict-event-emitter (v0.5.1) was published 3 years ago.
Does strict-event-emitter run install scripts?
No. strict-event-emitter does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.