A localStorage wrapper for all browsers without using cookies or flash, providing persistent client-side storage with automatic fallback and plugin architecture
75
Build a settings manager that works reliably across different browser environments, including those with storage limitations or restrictions.
Your settings manager should:
@generates
/**
* Creates a settings manager with automatic storage fallback
*
* @returns {Object} Settings manager instance with the following methods:
* - get(key, defaultValue): Retrieve a setting value
* - set(key, value): Store a setting value
* - isEnabled(): Returns true if persistent storage is available
*/
function createSettingsManager() {
// IMPLEMENTATION HERE
}
module.exports = { createSettingsManager };Provides cross-browser storage with automatic fallback mechanisms.
Install with Tessl CLI
npx tessl i tessl/npm-storeevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10