MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getCss

Function getCss

site/demo.ts:95–110  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

93 ) ?? 'src/main.js';
94
95const getCss = (source: string): string => {
96 let css = '';
97 render(
98 source,
99 {syncImport: true, compress: true},
100 (error: Error | null, result?: {css: string}) => {
101 if (error != null) {
102 throw error;
103 }
104 if (result != null) {
105 css = result.css;
106 }
107 },
108 );
109 return css;
110};
111
112const getHtmlDoc = (html: string): string => html.trim();
113

Callers 1

getDemoDocFunction · 0.85

Calls 1

renderFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…