UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

35 lines (22 loc) 845 B
[**minigame-std**](../../../README.md) *** [minigame-std](../../../README.md) / [fs](../README.md) / unzipFromUrl # Function: unzipFromUrl() ```ts function unzipFromUrl( zipFileUrl, targetPath, options?): AsyncVoidIOResult ``` 从网络下载 zip 文件并解压。 ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `zipFileUrl` | `string` | Zip 文件的网络地址。 | | `targetPath` | `string` | 要解压到的目标文件夹路径。 | | `options`? | [`UnionDownloadFileOptions`](../type-aliases/UnionDownloadFileOptions.md) | 可选的下载参数。 | ## Returns `AsyncVoidIOResult` 下载并解压操作的异步结果。 ## Defined in [src/std/fs/fs\_async.ts:273](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/fs/fs_async.ts#L273)