Skip to content

simpleDownloadTextFile

将一个字符串作为文件下载

Demo

ts
import {
simpleDownloadTextFile
} from '@vill-v/broswer'
simpleDownloadTextFile
('<div>foor</div>', 'foor.xml')

DTS

ts
declare function simpleDownloadTextFile(text: string, filename: string): void;

Released under the MIT License.