Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
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 0 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.