
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@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`
The npm package @dongine/app-config receives a total of 0 weekly downloads. As such, @dongine/app-config popularity was classified as not popular.
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.