Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
whevent
Advanced tools
A lite event system
Weekly downloads
Readme
Just a simple singleton event system used by myself :)
var whevent = require('whevent');
// Bind the signal with the event function: whevent.bind(signal, func, context);
whevent.on('SPEAK', function1, this);
// Bind the signal with another event function, but this function will always get called first!
whevent.onPriority('SPEAK', function2, this);
// Bind the signal with a 3rd event function
// But once the function3 get called, the binding of this function with this signal will be destroyed
whevent.onOnce('SPEAK', function3, this);
// Call the event: whevent.call(signal, data);
// Calls order: function2, function1, function3
whevent.emit('SPEAK', 'Hello!');
// Unbind the binded function with the signal
whevent.off('SPEAK', function1);
// Unbind all the binded functions associated with the listener
whevent.offBy(listener);
// Destory the signal, all bindings will be destroyed
whevent.destroy('SPEAK');
FAQs
security holding package
The npm package whevent receives a total of 0 weekly downloads. As such, whevent popularity was classified as not popular.
We found that whevent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.