Skip to content

Commit

Permalink
πŸ“ Document uploadFilesWithProgress
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 committed Nov 7, 2023
1 parent ba4faae commit efe3cc4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/hub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ await uploadFiles({
],
});

// or

for await (const progressEvent of await uploadFiles({
repo,
credentials,
files: [
...
],
})) {
console.log(progressEvent);
}

await deleteFile({repo, credentials, path: "myfile.bin"});

await (await downloadFile({ repo, path: "README.md" })).text();
Expand Down

0 comments on commit efe3cc4

Please sign in to comment.