MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / getLoader

Function getLoader

preview-3mf-worker-node.js:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5function postStatus(message) {
6 parentPort.postMessage({ ok: true, type: 'status', message });
7}
8
9parentPort.on('message', async (message) => {
10 const { filePath } = message || {};
11 let arrayBuffer = null;
12
13 try {
14 postStatus('Reading 3MF file...');
15 const data = await fs.promises.readFile(filePath);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected