Skip to content
Kunkun

Updownload

Docs: https://docs.api.kunkun.sh/interfaces/ui.IUpdownload

API and Permissions

import { updownload, path } from '@kksh/api/ui/worker';
// or
import { updownload, path } from '@kksh/api/ui/iframe';
await updownload.download(
'https://schema.kunkun.sh',
await path.join(await path.desktopDir(), 'kk-ext-schema.json')
);