
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
JMessenger is no longer maintained. Please, use @mobilabs/messenger now. |
---|
JMessenger
is a tiny Javascript library to handle messages that carry a payload. It is designed to be embedded in another library.
// Creates the messenger object:
var mess = Messenger('mycustomevent');
// Listens for an event:
mess.on('mycustomevent', function(payload) {
console.log('fired mycustomevent: ' + payload);
});
// Fires an event:
mess.fire('mycustomevent', 'this is the payload for mycustomevent');
JMessenger provides a set of static methods. You can use by typing:
JMessenger.noConflict();
Static Methods | Description |
---|---|
noConflict | returns the JMessenger variable to its previous owner, |
Constructor | Description |
---|---|
JMessenger('messagename') | creates the JMessenger object that handles 'messagename' messages, |
Methods | Description |
---|---|
addEvents | adds events/messages, |
addEventListener | adds an event listener, |
removeEventListener | removes an event listener, |
fire | fires an event/message, |
on | alias on addEventListener, |
off | alias on removeEventListener, |
trigger | alias on fire, |
MIT.
FAQs
A tiny Javascript library to handle messages that carry a payload
The npm package jmessenger receives a total of 1 weekly downloads. As such, jmessenger popularity was classified as not popular.
We found that jmessenger 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.