A localStorage wrapper for all browsers without using cookies or flash, providing persistent client-side storage with automatic fallback and plugin architecture
75
{
"context": "This criteria evaluates how effectively the engineer uses the store.js library's get() method with default values to implement a preferences manager. The focus is specifically on proper usage of store.js API for retrieving values with fallback defaults.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses store.get()",
"description": "Each function uses store.get() or store().get() method to retrieve values from storage",
"max_score": 40
},
{
"name": "Provides default values",
"description": "Each store.get() call includes the correct default value as the second parameter (\"light\" for theme, \"en\" for language, true for notifications, { columns: 2, widgets: [] } for dashboardLayout)",
"max_score": 40
},
{
"name": "Correct storage keys",
"description": "Uses the exact storage keys specified in requirements (\"theme\", \"language\", \"notifications\", \"dashboardLayout\")",
"max_score": 20
}
]
}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