Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
comet-config
Advanced tools
Use a namespace to join environment variables with configuration file and expose a configuration object.
Any configuration property can be set in environement variable or config file, an environment overrride all files.
A environment property is translate from NAMESPACE_MY_VAR
to myVar
in Configuration object
You can add additional path to look for config files. the symbol you must provide is extraConfigPaths
, it's an array of string.
module.exports = {
key: 'value',
test: true,
ab: 'test'
}
process.env['TEMOC_ENVIRONEMENT_PROPERTY'] = 'property-value'
import { Inject, Injectable, bootstrap } from 'comet-ioc'
import { Configuration, namespace } from "comet-config";
@Injectable()
export class App {
constructor(@Inject(Configuration) public conf: Configuration) { }
}
app = bootstrap(App, {
declarations: [
Configuration
],
constants: [{
provide: namespace,
useValue: 'temoc'
}]
})
console.log( app.conf.props.environementProperty ) // display: property-value
FAQs
configuration manager
The npm package comet-config receives a total of 0 weekly downloads. As such, comet-config popularity was classified as not popular.
We found that comet-config 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 a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.