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

Function getModelAnsi

out/cli.cjs:65784–65798  ·  view source on GitHub ↗
(model, level, type2, ...arguments_)

Source from the content-addressed store, hash-verified

65782}
65783styles2.visible = {
65784 get() {
65785 const builder = createBuilder(this, this[STYLER], true);
65786 Object.defineProperty(this, "visible", { value: builder });
65787 return builder;
65788 }
65789};
65790var getModelAnsi = (model, level, type2, ...arguments_) => {
65791 if (model === "rgb") {
65792 if (level === "ansi16m") {
65793 return ansi_styles_default[type2].ansi16m(...arguments_);
65794 }
65795 if (level === "ansi256") {
65796 return ansi_styles_default[type2].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
65797 }
65798 return ansi_styles_default[type2].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
65799 }
65800 if (model === "hex") {
65801 return getModelAnsi("rgb", level, type2, ...ansi_styles_default.hexToRgb(...arguments_));

Callers 1

getFunction · 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…