
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Simple cache config handling for your app or module
If you don't need caching, you should use conf instead. This module extends that module and abstracts away the caching mechanism.
$ npm install --save cache-conf
const delay = require('delay');
const CacheConf = require('cache-conf');
const config = new CacheConf();
config.set('unicorn', '🦄', {maxAge: 5000});
console.log(config.get('unicorn'));
//=> '🦄'
// Wait 5 seconds
await delay(5000);
console.log(config.get('unicorn'));
//=> undefined
Returns a new instance.
Any of the conf options.
An extended conf instance.
Get an item.
Type: boolean
Default: false
Get the item for the key
provided without taking the maxAge
of the item into account.
Set an item.
Set multiple items at once.
Type: number
Number of milliseconds the cached value is valid.
Type: string
Version number of the data. If the version provided is not the same as the version of the cached data, the data will be invalid.
Boolean indicating if the cached data is expired.
MIT © Sam Verschueren
FAQs
Simple cache config handling for your app or module
The npm package cache-conf receives a total of 2,366 weekly downloads. As such, cache-conf popularity was classified as popular.
We found that cache-conf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.