Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
hemera-plugin
Advanced tools
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 1,462 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.