
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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
The npm package @cto.ai/ops-local-config receives a total of 5 weekly downloads. As such, @cto.ai/ops-local-config popularity was classified as not popular.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.