Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@hapipal/confidence
Advanced tools
Dynamic, declarative configurations
Lead Maintainer: Sunny Bhanot
npm install @hapipal/confidence
See also the API Reference
Confidence is intended for use with nodejs v12+ (see v4 for lower support).
Confidence is a configuration document format, an API, and a foundation for A/B testing. The configuration format is designed to work with any existing JSON-based configuration, serving values based on object path ('/a/b/c'
translates to a.b.c
). In addition, Confidence defines special $-prefixed keys used to filter values for a given criteria.
Below is an example configuring a hapi server using a dynamic Confidence configuration.
const Hapi = require('@hapi/hapi');
const Confidence = require('@hapipal/confidence');
const store = new Confidence.Store({
server: {
host: 'localhost',
port: {
$param: 'PORT',
$coerce: 'number',
$default: 3000
},
debug: {
$filter: 'NODE_ENV',
$default: {
log: ['error'],
request: ['error']
},
production: {
request: ['implementation']
}
}
}
});
const config = store.get('/', process.env);
const server = Hapi.server(config);
Confidence originated in the hapijs organization, and was adopted by hapi pal in April 2019.
FAQs
Dynamic, declarative configurations
The npm package @hapipal/confidence receives a total of 1,958 weekly downloads. As such, @hapipal/confidence popularity was classified as popular.
We found that @hapipal/confidence demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.