putout
Version:
🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json
17 lines (12 loc) • 388 B
JavaScript
import helpDescription from '../../help.json' with {
type: 'json',
};
const {entries} = Object;
export const help = () => {
const usage = 'Usage: putout [options] [path]';
const result = [usage, 'Options: '];
for (const [name, description] of entries(helpDescription)) {
result.push(` ${name} ${description}`);
}
return result.join('\n');
};