Attach an EventEmitter listener that emits before all other existing listeners
for that event.
Note: it's also worth checking out timoxley's
API offers more flexibility, and unlike on-first only uses the public
require('on-first')(emitter, event, listener)
MIT. See LICENSE.md for details.
Selectively mirror the npm registry inside your firewall. Filter packages based on security, licensing, code quality and more. Build awesome stuff faster. Try npm Enterprise for free…
how? learn more