-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Change
Deno.stdout.writable.getWriter()
to writeAll
- Loading branch information
zhangfuxing
committed
Oct 30, 2024
1 parent
32cd98a
commit dbd8a86
Showing
6 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,15 +19,15 @@ import { MultiProgressBar } from "jsr:@deno-library/progress"; | |
import { delay } from "jsr:@std/async"; | ||
|
||
// or JSR (with version) | ||
// import { MultiProgressBar } from "jsr:@deno-library/[email protected].0"; | ||
// import { MultiProgressBar } from "jsr:@deno-library/[email protected].1"; | ||
// import { delay } from "jsr:@std/[email protected]"; | ||
|
||
// or JSR (no prefix, run `deno add @deno-library/progress` and `deno add @std/async`) | ||
// import { MultiProgressBar } from "@deno-library/progress"; | ||
// import { delay } from "@std/async"; | ||
|
||
// or | ||
// import { MultiProgressBar } from "https://deno.land/x/[email protected].0/mod.ts"; | ||
// import { MultiProgressBar } from "https://deno.land/x/[email protected].1/mod.ts"; | ||
// import { delay } from "https://deno.land/[email protected]/async/delay.ts"; | ||
|
||
const title = "download files"; | ||
|
@@ -168,15 +168,15 @@ import ProgressBar from "jsr:@deno-library/progress"; | |
import { delay } from "jsr:@std/async"; | ||
|
||
// or JSR (with version) | ||
// import ProgressBar from "jsr:@deno-library/[email protected].0"; | ||
// import ProgressBar from "jsr:@deno-library/[email protected].1"; | ||
// import { delay } from "jsr:@std/[email protected]"; | ||
|
||
// or JSR (no prefix, run `deno add @deno-library/progress` and `deno add @std/async`) | ||
// import ProgressBar from "@deno-library/progress"; | ||
// import { delay } from "@std/async"; | ||
|
||
// or | ||
// import ProgressBar from "https://deno.land/x/[email protected].0/mod.ts"; | ||
// import ProgressBar from "https://deno.land/x/[email protected].1/mod.ts"; | ||
// import { delay } from "@std/async/delay"; | ||
|
||
const title = "downloading:"; | ||
|
@@ -203,15 +203,15 @@ import ProgressBar from "jsr:@deno-library/progress"; | |
import { delay } from "jsr:@std/async"; | ||
|
||
// or JSR (with version) | ||
// import ProgressBar from "jsr:@deno-library/[email protected].0"; | ||
// import ProgressBar from "jsr:@deno-library/[email protected].1"; | ||
// import { delay } from "jsr:@std/[email protected]"; | ||
|
||
// or JSR (no prefix, run `deno add @deno-library/progress` and `deno add @std/async`) | ||
// import ProgressBar from "@deno-library/progress"; | ||
// import { delay } from "@std/async"; | ||
|
||
// or | ||
// import ProgressBar from "https://deno.land/x/[email protected].0/mod.ts"; | ||
// import ProgressBar from "https://deno.land/x/[email protected].1/mod.ts"; | ||
// import { delay } from "@std/async/delay"; | ||
|
||
const total = 100; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export { bgGreen, bgWhite, stripAnsiCode } from "jsr:@std/[email protected]/colors"; | ||
export { bgGreen, bgWhite, stripAnsiCode } from "jsr:@std/[email protected]/colors"; | ||
export { writeAll } from "jsr:@std/[email protected]/write-all"; | ||
// export type { Writer } from "jsr:@std/[email protected]/types"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters