optimizeit
Version:
OptimizeIt is a command-line tool that automatically optimizes source code for performance and readability, supporting multiple programming languages and configurable settings.
14 lines (13 loc) • 454 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Handle the html flag
*
* @param { string } args - The arguments passed to the CLI.
* @param { boolean } htmlConfig - The html flag from the config file.
* @returns { boolean } True if html flag is provided, false otherwise.
*/
function handleHTMLFlag(args, htmlConfig = false) {
return args.includes('--html') || htmlConfig;
}
exports.default = handleHTMLFlag;