
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
consus-flux
Advanced tools
Flux modules for the Consus project
npm install consus-flux --save
import { Dispatcher } from 'consus-flux';
Dispatcher.handleAction('INCREMENT', {
amount: 5
});
import { Store } from 'consus-flux';
let count = 0;
class CounterStore extends Store {
getCount() {
return count;
}
}
const store = new CounterStore();
store.registerHandler('INCREMENT', data => {
count += data.amount;
store.emitChange();
});
store.registerHandler('DECREMENT', data => {
count -= data.amount;
store.emitChange();
});
export default store;
import CounterStore from './counter-store';
function handleChange() {
console.log('The count is now: ' + CounterStore.getCount());
}
CounterStore.addChangeListener(handleChange);
setTimeout(() {
CounterStore.removeChangeListener(handleChange);
}, 10000);
# Clone the repository
git clone git@github.com:TheFourFifths/consus-flux.git
# Enter the project directory
cd consus-flux
# Install dependencies
npm install
# Build the project
npm run build
# Run the test suite
npm test
npm test
: Run the test suitenpm run lint
: Run the linternpm run build
: Build the usable .dist
directorynpm run coverage
: Generate a code coverage reportsrc
: The project's source codetest
: The project's tests
lib
: Miscellaneous library modulesunit
: Unit testsFAQs
Flux modules for the Consus project
The npm package consus-flux receives a total of 1 weekly downloads. As such, consus-flux popularity was classified as not popular.
We found that consus-flux demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.