escover
Version:
Coverage for EcmaScript Modules
19 lines (14 loc) • 373 B
JavaScript
import helpJson from '../../help.json' with {
type: 'json',
};
const {entries} = Object;
export const help = () => {
const result = [
'Usage: escover [options] [script]',
'Options:',
];
for (const [name, description] of entries(helpJson)) {
result.push(` ${name} ${description}`);
}
return result.join('\n');
};