MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / getToken

Function getToken

lib/utilities/markdown-color.js:174–182  ·  view source on GitHub ↗
(name, options)

Source from the content-addressed store, hash-verified

172 @return {Object} Returns token object
173*/
174function getToken(name, options) {
175 let renderer = (options && options.renderer) || chalk;
176 return {
177 name,
178 token: `<${name}></${name}>`,
179 pattern: getColorTokenRegex(name),
180 render: this.renderStylesFactory(renderer, name),
181 };
182}
183
184function setToken(result, color) {
185 result[color.name] = color;

Callers

nothing calls this directly

Calls 2

getColorTokenRegexFunction · 0.85
renderStylesFactoryMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…