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.
comet-config
Advanced tools
Readme
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 1 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.
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.