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.
Powerful application events and event handling, made easy.
Download the minified version or the development version.
Eventi("group:kind#label('val')")
-> { category:'group', type:'kind', tags:['label'], label:true, detail:'val' }
this
as target
param to copied functions): Eventi.fy(foo)
-> foo.fire('type')
Eventi.on([target, ]'type', fn)
Eventi.on([target, ]'first second third', fn)
Eventi.on([target, ]"category:type#tag", fn)
Eventi.on([target, ]'type', fn, data)
Eventi.on([target, ]'type', function(e, arg, arg){})
Eventi.fire(Node|object, 'type')
Eventi.fire('type')
=== `Eventi.fire(document || this, 'type')Eventi.fire(Array|NodeList, 'type')
Eventi.fire([target, ]'type', data)
Eventi.on([target, ]'type<.selector>', fn)
data-eventi="submit /beforeunload=quit"
on a root or container elementsubmit="validate>save" quit="Utils.persist"
click="..."
is globally supported by default using trigger.js' intelligent click/enter logicEventi.on([target, ]'^type', fn)
Eventi.fire([target, ]'^type', fn)
Eventi.on([target, ]'keyup[shift-a]', fn)
Eventi.on('location@?view={view}', function(e, url, params){ console.log(params.view); })
Eventi.fire('location@?view={0}', ['foo'])
Eventi.on('location', function(e){ console.log(e.location, e.oldLocation, e.srcEvent); })
Eventi.off([target, ]['type', ][fn])
Eventi.off([target, ]['first second third', ][fn])
Eventi.off([target, ]['category:type#tag', ][fn])
Eventi.on([target, ]'type$3', fn)
Eventi.on([target, ]'type$reference', fn)
Eventi.on([target, ]'type$test.fn', fn)
Eventi.fire([target, ]'first,second'[, data...])
e.pauseSequence([promise])
,e.resumeSequence()
, e.isSequencePaused()
Eventi.on([target, ]'foo+bar', fn)
Eventi.on([target, ]'one,two,three', fn...)
Eventi.on([target, ]'one,two', fn, 1000)
Eventi.alias('type');
-> Eventi.on.type([target, ]handler)
Eventi.alias(o, 'type', 'type2')
-> target.until.type2(1, handler)
group:{type#tag other$1}#tag2
but probably don't bother due to incompatibility w/aliasing and current parsingFAQs
Powerful application events and event handling, made easy.
The npm package eventi receives a total of 28 weekly downloads. As such, eventi popularity was classified as not popular.
We found that eventi 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.