CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-lilconfig

A zero-dependency alternative to cosmiconfig for loading configuration files

89

1.21x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how well the engineer uses lilconfig's load caching functionality to implement a configuration loading system with performance tracking. The focus is on proper usage of lilconfig's load() method, cache management methods, and understanding of caching behavior.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Loader Initialization",
      "description": "Uses lilconfig() or lilconfigSync() to create a configuration loader instance with a configuration name",
      "max_score": 15
    },
    {
      "name": "Direct File Loading",
      "description": "Uses the load() method to load configuration files by absolute filepath",
      "max_score": 20
    },
    {
      "name": "Cache Management",
      "description": "Uses clearLoadCache() method to explicitly clear the load cache",
      "max_score": 20
    },
    {
      "name": "Cached Load Performance",
      "description": "Demonstrates that multiple load() calls for the same file utilize caching by showing improved performance on subsequent loads",
      "max_score": 20
    },
    {
      "name": "Cache Clearing Effect",
      "description": "Demonstrates that after calling clearLoadCache(), subsequent load() calls behave like initial uncached loads",
      "max_score": 15
    },
    {
      "name": "Independent File Caching",
      "description": "Shows that different configuration files are cached independently and clearLoadCache() affects all cached files",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lilconfig

tile.json