budibase/packages/string-templates/src/iife.ts

4 lines
93 B
TypeScript
Raw Normal View History

export const iifeWrapper = (script: string) => {
return `(function(){\n${script}\n})();`
}