CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-tmp-promise

The tmp package with promises support and disposers.

93

1.78x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how well the engineer uses the tmp-promise package's synchronous name generation functionality (tmpNameSync) to solve the filename generation problem. The focus is on proper usage of tmpNameSync with appropriate options for different naming patterns.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "tmpNameSync usage",
      "description": "Uses tmpNameSync from tmp-promise package to generate temporary filenames (not tmpName, not creating actual files with fileSync)",
      "max_score": 30
    },
    {
      "name": "Prefix option",
      "description": "Correctly passes the prefix option to tmpNameSync when generating filenames with custom prefixes",
      "max_score": 15
    },
    {
      "name": "Postfix option",
      "description": "Correctly passes the postfix option to tmpNameSync when generating filenames with custom extensions/suffixes",
      "max_score": 15
    },
    {
      "name": "Template option",
      "description": "Correctly uses the template option with tmpNameSync for mkstemp-style template patterns (e.g., '/tmp/myapp-XXXXXX')",
      "max_score": 20
    },
    {
      "name": "Multiple calls",
      "description": "Calls tmpNameSync multiple times when generating filenames for different modules with different configurations",
      "max_score": 10
    },
    {
      "name": "Return values",
      "description": "Correctly returns the string paths generated by tmpNameSync without unnecessary transformation",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-tmp-promise

tile.json