
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
optional-conf
Advanced tools
An extension to Conf which allows simple configuration for your app or module while making actually persisting the config to disk optional.
When not persisting to disk, the configuration will only last for the duration of the current script execution.
This makes Conf suitable for getting and setting your config values whether or not your users want the configuration written to disk or just stored in memory.
When not stored in memory, it can still be a great library for getting and setting runtime configuration which is passed in the initial constructor.
Use it exactly like Conf, except you can pass an additional boolean argument named persist
into the constructor.
!!persist === true then OptionalConf will work exactly like the parent Conf library.!!persist === false then OptionalConf will overwrite the getter and setter of the Conf
library transparently so that it does not read from or write to the disk in any way.With NPM:
npm install --save optional-conf
With Yarn:
yarn add optional-conf
See the Usage section of the Conf library for usage information.
See the API section of the Conf library for
API information. The only difference is the persistent boolean which can be passed in
with the constructor options.
Unlicense
FAQs
A wrapper around conf which makes storing the config to disk optional
The npm package optional-conf receives a total of 0 weekly downloads. As such, optional-conf popularity was classified as not popular.
We found that optional-conf 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.