Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@dongine/app-config
Advanced tools
fibjs >= 0.26.0
npm install @dongine/app-config
const AppConfig = require('@dongine/app-config')
const appName = 'jmetro'
AppConfig.homedir.getAppDataDirname(appName) // equals to ~/.jmetro/
AppConfig.homedir.getAppConfigFilename(appName) // equals to ~/.jmetro/app-config.json
homedir.getAppDataDirname(appName: string): string
compute one home data directory name for appName
homedir.getAppConfigFilename(appName: string, env: string): string
compute one home config file name for appName, env would be autoprefixed with .
if it has no.
it equals to path.join(homedir.getAppDataDirname(appName: string), 'app-config' + env + '.json')
homedir.getAppDataDirname('jmetro') // ~/.jmetro/app-config.json
homedir.getAppDataDirname('jmetro', 'dev') // ~/.jmetro/app-config.dev.json
homedir.createAppDataDirectory(appName: string)
try to create app's home data directory, if success or it existed, return the app's home data directory
homedir.writeAppEnvConfig(appName: string, env: string)
try to write app's env-config to its home data directory.
// would write empty config to ~/.jmetro/app-config.production.json
homedir.writeAppEnvConfig('jmetro', 'production')
// would write empty config to ~/.jmetro/app-config.json
homedir.writeAppEnvConfig('jmetro', {})
// would write config to ~/.jmetro/app-config.production.json
homedir.writeAppEnvConfig('jmetro', {env: 'production'})
homedir.readAppEnvConfig(appName: string, env: string)
try to read app's env-config to its home data directory.
Copyright (c) 2018-present, Richard
FAQs
- `fibjs >= 0.26.0`
We found that @dongine/app-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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.