Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@cto.ai/ops-local-config
Advanced tools
cto.ai library for managing local configuration settings
Creates, writes, reads and removes a config.json
file from a specified directory.
This is a native ESM module.
localConfig(opts) => instance
Options:
dir
(string
) Required - the configuration directory to store a config.json
file inname
(string
) Optional - an alternative name for config.json
(without the extension)instance.read() => Promise => config
Read and parse contents of the config.json
file into an object.
instance.write(config) => Promise => config
Serialize and write a configuration object to the config.json
file.
instance.clear() => Promise => undefined
Removes the config.json
file.
Test:
npm test
Visual coverage report (run after test):
npm run cov
Lint:
npm run lint
Autoformat:
npm run lint -- --fix
For mainline releases:
npm version <major|minor|patch>
git push --follow-tags
For prereleases:
npm version prerelease
git push --follow-tags
MIT
FAQs
cto.ai library for managing local configuration settings
We found that @cto.ai/ops-local-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.