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

Function hasExecutables

site/demo.ts:24–36  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

22};
23
24export const hasExecutables = (node: Node): boolean => {
25 const executables = node.executables;
26 if (executables == null) {
27 return false;
28 }
29 const {files = {}, html = '', less = '', tsx = ''} = executables;
30 return (
31 Object.keys(files).length > 0 ||
32 html.trim() != '' ||
33 less.trim() != '' ||
34 tsx.trim() != ''
35 );
36};
37
38const getImportMap = (html: string): {[specifier: string]: string} =>
39 Object.assign(

Callers 2

ArticleInnerFunction · 0.90
addDemoDocsFunction · 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…