Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
hemera-plugin
Advanced tools
Readme
hemera-plugin
is a plugin helper for Hemera.
hemera-plugin
can do some things for you:
const hp = require('hemera-plugin')
module.exports = hp(function(hemera, opts, next) {
next()
})
If you need to set a bare-minimum version of Hemera for your plugin, just add the semver range that you need:
const hp = require('hemera-plugin')
module.exports = hp(function(hemera, opts, next) {
next()
}, '0.x')
You can check here how to define a semver
range.
const hp = require('hemera-plugin')
module.exports = hp(async function(hemera, opts) {
// your plugin code
}, '0.x')
You can also pass some metadata that will be handled by Hemera, such as the dependencies, default options and the name of your plugin.
const hp = require('hemera-plugin')
function plugin(hemera, opts, next) {
// your plugin code
next()
}
module.exports = hp(plugin, {
hemera: '0.x', // bare-minimum version of Hemera
name: 'my-plugin', // name of your plugin, will be used e.g for logging purposes
scoped: false, // when false no hemera plugin is created. This is useful if you want to extend the core but don't need a seperate plugin scope.
options: { host: 'localhost', port: 8003 }, // default options for your plugin
// Plugin dependencies
decorators: ['joi'],
dependencies: ['plugin2']
})
FAQs
This is a plugin helper for hemera
The npm package hemera-plugin receives a total of 3,849 weekly downloads. As such, hemera-plugin popularity was classified as popular.
We found that hemera-plugin 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.