A general-purpose JavaScript object storage library providing get/set with dot-notation, union, extend, delete, and constant methods. Version 6.0.1 is stable; last updated in 2020. It is part of the jonschlinkert ecosystem and leverages underyling packages like get-value and set-value. Compared to other cache solutions, it focuses on object manipulation with chaining and supports deep nested property access. Note that version 5.0 introduced breaking changes removing many utility methods.
npm install config-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: creating a Config instance, setting values with dot notation, getting values, extending, union, deletion, and inspecting the cache.
Use alternative libraries: clone-deep, has-value, plasma-cache, or native methods.
Check for undefined or use has-value to verify existence.
Migrate to a maintained library.
To replace entire cache, use config.cache = newObj.
Always pass a key or array of keys to del.
Access the value via config.get('key') after union.Run 'npm install config-cache' or add it to package.json.
Use 'const Config = require('config-cache'); const config = new Config();'Ensure set is called correctly: config.set('key', value) or config.set({ ... }).Use config.get(['a', 'b']) or config.get('a', 'b').