Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@devly/devly-coremetrics
Advanced tools
Coremetrics plugin for @devly
.
To add devly-coremetrics plugin to your project, first make sure your project is set-up to consume Devly plugins (see https://github.com/aorinevo/devly-example#introduction).
Next, install @devly/devly-coremetrics
:
npm i @devly/devly-coremetrics
Use addCoremetricsConfig
action creator to update the hosts state in the devly-store. It is recommneded to place the initialState for hosts in a manifests/hosts.js
file and requiring that file within the file that dispatches the action.
// mainfests/hosts.js
const ORIGIN = 'https://my-api.origin.com';
const PATH = '/api/v1/coremtrics';
const URL = `${ORIGIN}${PATH}`;
module.exports = {
origin: ORIGIN,
path: PATH,
url: URL
};
It is recommended that the consumer create a plugins/index.js
barrel file for the devly plugins it consumes.
// plugins/index.js
require('./coremetrics.js');
// plugins/hosts.js
const {store} = require('@devly/devly-store');
const {addCoremetricsConfig, addCoremetricsCommands} = require('@devly/devly-coremetrics/actions');
const {dispatch} = store;
require('@devly/devly-coremetrics');
dispatch(addCoremetricsConfig(require('./manifests/coremetrics')));
dispatch(addCoremetricsCommands());
All devly plugins assume that the consumer has the following directory structure somewhere in their working directory:
├── cli.js
├── actions
└── index.js
├── reducers
└── index.js
└── index.js
Dynamically add reducers to the store using devly's reducerRegistry
method.
const {store, reducerRegistry} = require('@devly/devly-store');
reducerRegistry.register('hosts', require('./reducers'));
Actions and reducers are the same actions and reducers from redux. For more information on either, visit
cli.js
const store = require('../scripts/reapps/store');
const yargs = require('yargs');
const {addCoremetricsConfig, addCoremetricsCommands} = require('@devly/devly-hosts/actions');
const Coremetrics = require('@devly/devly-hosts/scripts/hosts');
store.dispatch(addCoremetricsConfig(require('../manifests/hosts')));
store.dispatch(addCoremetricsCommands(yargs, new Coremetrics(store)));
module.exports = yargs;
FAQs
Coremetrics plugin for `@devly`.
The npm package @devly/devly-coremetrics receives a total of 8 weekly downloads. As such, @devly/devly-coremetrics popularity was classified as not popular.
We found that @devly/devly-coremetrics 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.