Format JavaScript Standard Style as Stylish (i.e. snazzy) output
94
{
"context": "This criteria evaluates how well the engineer demonstrates minimal dependency design principles when building a Unix-style CLI tool. It focuses on appropriate usage of only essential dependencies (readable-stream and minimist), avoiding unnecessary packages, and implementing core functionality without over-reliance on external libraries.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Transform stream implementation",
"description": "Uses stream.Transform from readable-stream package to implement LineCounterStream class, with proper _transform and _flush methods for buffering and processing input",
"max_score": 25
},
{
"name": "Minimist for arguments",
"description": "Uses minimist library to parse command-line arguments (checking for '-' or '--stdin' flag) without implementing custom argument parsing",
"max_score": 15
},
{
"name": "No unnecessary dependencies",
"description": "Solution uses only the two specified dependencies (readable-stream and minimist) and does not include additional packages for functionality that can be implemented directly",
"max_score": 20
},
{
"name": "Core logic implementation",
"description": "Implements line counting, empty line detection, and buffering logic directly in JavaScript without delegating to external libraries",
"max_score": 20
},
{
"name": "Stdin detection pattern",
"description": "Uses process.stdin.isTTY check to detect piped input without requiring additional packages, following minimal dependency design principles",
"max_score": 10
},
{
"name": "Stream piping pattern",
"description": "Properly pipes process.stdin through LineCounterStream to process.stdout using Node.js built-in pipe method",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-snazzydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10