
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.
With capulet, you parse a configuration object from an array of required fields followed by any number of object sources.
With capulet, you parse a configuration object from an array of required fields followed by any number of object sources.
If any key is missing after merging the object sources, capulet will throw. If you want a key to be optional, you should supply a default value object somewhere in the chain (that value can be undefined or null).
The new config object is populated by merging in objects left to right (like
Object.assign
or _.merge
).
const capulet = require('capulet');
const config = capulet([
'db',
'templateDirectory',
], process.env, {
'db': 'mongodb://localhost:27017/mydb',
});
const db = config.get('db');
The config exposes a middleware function for use with connect/express, that exposes
the get
method as config
on the request object.
const express = require('express');
const app = express();
app.use(config.middleware());
app.use(function (req, res) {
const db = req.config('db');
const entireConfig = req.config();
});
FAQs
With capulet, you parse a configuration object from an array of required fields followed by any number of object sources.
The npm package capulet receives a total of 37 weekly downloads. As such, capulet popularity was classified as not popular.
We found that capulet 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 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.