UNPKG

@commitlint/prompt

Version:

commitizen prompt using commitlint.config.js

16 lines 490 B
import chalk from "chalk"; /** * Get formatted meta hints for configuration * @param settings dictionary to parse * @return formatted meta information */ export default function meta(settings) { return chalk.grey(Object.entries(settings || {}) .filter((item) => item[1]) .map((item) => { const [name, value] = item; return typeof value === "boolean" ? `[${name}]` : `[${name}=${value}]`; }) .join(" ")); } //# sourceMappingURL=meta.js.map