The tmp package with promises support and disposers.
93
{
"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-promisedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10