
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
A concise JavaScript dependency injector
import { provide } from 'di-helper';
provide('logger').as(console.log);
// ...
import { using } from 'di-helper';
const greet = using((['logger'], (log, name) => {
log(`Hello ${name}!`);
});
greet('world');
di-heper
is built into UMD package, which supports both ESM, CommonJS, etc..
// Default instance and its methods
import { context, provide, resolve, resolveAll, using } from 'di-helper';
const { context, provide, resolve, resolveAll, using } = require('di-helper');
// Context class
import { Context } from 'di-helper';
const { Context } = require('di-helper');
See API documentation.
FAQs
A concise JavaScript dependency injector
The npm package di-helper receives a total of 18 weekly downloads. As such, di-helper popularity was classified as not popular.
We found that di-helper 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.