
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Event delegation library on plain JavaScript.
Simple, small only 1.2kb compressed and about 620 bytes gzipped.
Tested on latest Chrome, Firefox, Safari.
You can use Dega as global object, AMD or CommonJS module.
bower install dega --save
npm install dega --save
Dega = require('dega');
var handler = function(e) {
e.preventDefault();
console.log('event');
};
// Subscribe
Dega(document).on('click', '.link', handler);
// Unsubscribe
Dega(document).off('click', '.link', handler);
Dega is a self-invoking constructor, that means you shouldn't call it with new
keyword.
Dega constructor accepts 2 kind of arguments:
Dega(document)
Dega('.class')
Dega('#id')
Dega('tag')
0.1.3 — 18.01.2015
FAQs
Plain JavaScript Event Delegation Library
The npm package dega receives a total of 9 weekly downloads. As such, dega popularity was classified as not popular.
We found that dega 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
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.