MCPcopy Index your code
hub / github.com/fontsource/fontsource / unicodeValue

Function unicodeValue

packages/cli/src/sass/metadata.ts:20–38  ·  view source on GitHub ↗
(unicode: UnicodeRange)

Source from the content-addressed store, hash-verified

18};
19
20const unicodeValue = (unicode: UnicodeRange) => {
21 if (Object.keys(unicode).length > 0) {
22 let out = '(\n';
23
24 for (const unicodeKey of Object.keys(unicode)) {
25 const unicodeVal = unicode[unicodeKey];
26
27 out += ` ${unicodeKey
28 .replace('[', '')
29 .replace(']', '')}: (${unicodeVal}),\n`;
30 }
31
32 out += ' )';
33
34 return out;
35 }
36
37 return 'null';
38};
39
40const defaultAxis = (metadata: Metadata) => {
41 const axes = Object.keys(metadata.variable);

Callers 1

sassMetadataFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected