Comments (4)
Nevermind, this is dependent on first implementing events.on
. See: #76
from events.
@feross would it help if Node just vendored events
independently (like readable stream)?
It looks like events.js doesn't actually have any non-constant dependencies (other than event_target which is also pretty easy to fix)
from events.
@benjamingr Part of the goal of this package is also to be compatible with old browsers (except for the Promise functions). If events
could be vendored independently and compiled down for browsers just like readable-stream is, I think that would be amazing :)
from events.
Opened nodejs/node#37435 - let me know if this is something you'd like to collaborate on.
It's basically a script that "rips out" events
from Node's lib folder and shims core-related things (not many)
from events.
Related Issues (20)
- Support for engines without console? HOT 1
- Maintainer Needed HOT 15
- ?? HOT 2
- Error in handler should be thrown HOT 1
- off is not a function HOT 2
- unbind events HOT 2
- Backport off to v2 as non-breaking change HOT 1
- Add events.once HOT 9
- TypeError: Cannot read property 'EventEmitter' of undefined typescript nodejs HOT 1
- Function.prototype.apply can be undefined HOT 2
- unhandled 'error' events should throw the error on next tick (setTimeout or setImmediate) HOT 2
- Not working in child process to parent process HOT 1
- spliceOne performance HOT 1
- Implement `events.on` HOT 2
- Implement `EventTarget` and `Event` HOT 1
- why 'on' function implement two times? HOT 1
- Events.js has unhandled errors and errors regarding ports
- Question: why do not use events.forEach in emit() function? HOT 7
- how do I load this with vite/sveltekit? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from events.