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.
vodoun
Advanced tools
Readme
= Vodoun
image:https://travis-ci.org/aetheric/vodoun.svg?branch=master["Build Status", link="https://travis-ci.org/aetheric/vodoun"] image:https://coveralls.io/repos/github/aetheric/vodoun/badge.svg?branch=master["Coverage Status", link="https://coveralls.io/github/aetheric/vodoun"] image:https://badge.fury.io/js/vodoun.svg["npm version", link="https://badge.fury.io/js/vodoun"]
A dependency injection framework for server-side node apps.
== Installation
npm install vodoun --save
== Usage
import vodoun from 'vodoun';
vodoun.register('service_a', [], (service) => {
let stateChanged = false;
service.blergh = () => {
console.log('BLERGH!!!');
stateChanged = true;
});
import vodoun from 'vodoun'; import dbLib from 'db-lib';
vodoun.register('service_b', [ 'service_a' ], (service) => {
const serviceA = this.service_a;
return dbLib.connect('prot://localhost:8260/dbname').then((conn) => {
service.query = (query, params) => conn.query(query, params);
service.close = () => conn.close().then(serviceA.blergh);
});
import vodoun from 'vodoun';
vodoun.register('service_c', { bloopyWibble: 'service_a', wibbledyBloob: 'service_b'
}, (service) => {
const serviceA = this.bloopyWibble;
const serviceB = this.wibbledyBloop;
service.argh = (query, params) => {
serviceA.blergh();
return serviceB.query(query, params).then((result) => serviceB.close());
});
import vodoun from 'vodoun';
vodoun.scan('src/main', '**/*.js').then((files) => {
console.log(Vodoun scan complete. ${files.length} files loaded.
);
return vodoun.resolve('service_c');
}).then((serviceC) => { return serviceC.argh('get stuff from somewhere when something = :param', { param: 'value' });
FAQs
A dependency injection framework for server-side node apps.
The npm package vodoun receives a total of 0 weekly downloads. As such, vodoun popularity was classified as not popular.
We found that vodoun 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.