mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-13 13:48:26 +00:00
* Ignore linting for examples in docs * Formatting JSX single attribute per line * Separte `format` and `lint:format` in package.json * Bump prettier version * Run format
7 lines
181 B
TypeScript
7 lines
181 B
TypeScript
export default function downloadData(filename: string, data: string) {
|
|
const link = document.createElement('a');
|
|
link.download = filename;
|
|
link.href = data;
|
|
link.click();
|
|
}
|