UNPKG

749 BJavaScriptView Raw
1"use strict";
2var __importDefault = (this && this.__importDefault) || function (mod) {
3 return (mod && mod.__esModule) ? mod : { "default": mod };
4};
5Object.defineProperty(exports, "__esModule", { value: true });
6const chalk_1 = __importDefault(require("chalk"));
7/**
8 * Get formatted meta hints for configuration
9 * @param settings dictionary to parse
10 * @return formatted meta information
11 */
12function meta(settings) {
13 return chalk_1.default.grey(Object.entries(settings || {})
14 .filter((item) => item[1])
15 .map((item) => {
16 const [name, value] = item;
17 return typeof value === 'boolean' ? `[${name}]` : `[${name}=${value}]`;
18 })
19 .join(' '));
20}
21exports.default = meta;
22//# sourceMappingURL=meta.js.map
\No newline at end of file