@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
8 lines • 430 B
TypeScript
/**
* Given a URL, download the file at that URL as a file with the given filename.
* Especially useful when used with data URLs (see https://en.wikipedia.org/wiki/Data_URI_scheme)
* @param {string} url
* @param {string} [filename] what should the file be called? Should include the desired extension.
*/
export function downloadUrlAsFile(url: string, filename?: string): void;
//# sourceMappingURL=downloadUrlAsFile.d.ts.map