CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-store

A localStorage wrapper for all browsers without using cookies or flash, providing persistent client-side storage with automatic fallback and plugin architecture

75

0.96x
Overview
Eval results
Files

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses store.js's serialization and deserialization features to handle edge cases when reading and writing data from localStorage. The focus is on leveraging store.js's automatic JSON parsing capabilities and error handling for malformed data.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses store.get",
      "description": "Uses store.get() method to retrieve values from localStorage instead of directly accessing localStorage API",
      "max_score": 20
    },
    {
      "name": "Uses store.set",
      "description": "Uses store.set() method to store values in localStorage instead of directly accessing localStorage API",
      "max_score": 20
    },
    {
      "name": "Uses store.remove",
      "description": "Uses store.remove() method to delete values from localStorage instead of directly accessing localStorage API",
      "max_score": 15
    },
    {
      "name": "Leverages automatic deserialization",
      "description": "Relies on store.js's automatic JSON.parse() functionality to deserialize stored values, handling both JSON-stringified and raw string values without manual parsing",
      "max_score": 25
    },
    {
      "name": "Default value handling",
      "description": "Uses store.get()'s second parameter (optionalDefaultValue) to provide default values when keys don't exist",
      "max_score": 10
    },
    {
      "name": "Leverages automatic serialization",
      "description": "Relies on store.js's automatic JSON.stringify() functionality to serialize values when storing, without manual stringification",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-store

tile.json