Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function loadContent(fileName) {
return readCache(fileName, "utf-8")
}
export default function loadSVG(id, data, opts) {
return readCache(id, 'utf-8').then(result => {
let code = applyData(result, data);
if (opts.encode) {
code = opts.encode(code);
}
return opts.transform(code, id);
});
}