MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / compact

Function compact

atomic-cli/src/commands/query/graph_inspector.js:9–9  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

7 var outgoing = new Map();
8 function endpoint(value) { return typeof value === 'object' && value ? value.id : value; }
9 function compact(value) { return String(value).replace('https://atomic.dev/ns/workflow#', 'atomic:'); }
10 function element(tag, text, className) {
11 var el = doc.createElement(tag);
12 if (text !== undefined) el.textContent = text;

Callers 3

relationshipsFunction · 0.70
node_labelFunction · 0.70
render_treeFunction · 0.50

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected