MCPcopy
hub / github.com/rtivital/omatsuri / processSvgFile

Function processSvgFile

src/utils/process-svg-file.js:1–8  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

1export default function processSvgFile(file) {
2 return new Promise((resolve, reject) => {
3 const reader = new FileReader();
4 reader.readAsText(file, 'UTF-8');
5 reader.addEventListener('load', (event) => resolve({ text: event.target.result, file }));
6 reader.addEventListener('error', reject);
7 });
8}

Callers 3

handleFilesDropFunction · 0.85
handleFilesDropFunction · 0.85
b64.worker.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected