import {
createDebounced,
createThrottled,
throttledWithLast,
chainPromises,
chainRequestAnimationFrame,
doNTimes,
chainPromiseNTimes,
timeFunction,
timePromise,
memoizeAsStrings,
createTemplateTag,
bytesLengthFromString,
} from "utilsac";import {
deepCopy,
deepCopyAdded,
deepAssign,
deepAssignAdded,
deepEqual,
} from "utilsac/deep.js";import {
stringFromArrayBuffer,
arrayBufferFromBlob,
stringFromBlob,
} from "utilsac/typeCast.js";import { evalGlobal } from "utilsac/evalGlobal.js";evalGlobal(`window.x = 2 ** 10`);After the Promise is resolved the code has executed in global scope.
evalGlobal(`
import sin form "./x.js";
window.x = sin(Math.PI)
`, `module`);Use optional second argument with module to be able to use static imports
import { downloadBlob } from "utilsac/blobs.js";