MCPcopy
hub / github.com/di-sukharev/opencommit / chalkFactory

Function chalkFactory

out/cli.cjs:65758–65763  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

65756var styles2 = /* @__PURE__ */ Object.create(null);
65757var applyOptions = (object, options = {}) => {
65758 if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
65759 throw new Error("The `level` option should be an integer from 0 to 3");
65760 }
65761 const colorLevel = stdoutColor ? stdoutColor.level : 0;
65762 object.level = options.level === void 0 ? colorLevel : options.level;
65763};
65764var chalkFactory = (options) => {
65765 const chalk2 = (...strings) => strings.join(" ");
65766 applyOptions(chalk2, options);

Callers 1

createChalkFunction · 0.85

Calls 1

applyOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…