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

Function applyOptions

out/cli.cjs:65751–65757  ·  view source on GitHub ↗
(object, options = {})

Source from the content-addressed store, hash-verified

65749var IS_EMPTY = Symbol("IS_EMPTY");
65750var levelMapping = [
65751 "ansi",
65752 "ansi",
65753 "ansi256",
65754 "ansi16m"
65755];
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 }

Callers 1

chalkFactoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…