-
-
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.
- Loading branch information
zhangfuxing
committed
Mar 27, 2024
1 parent
5129ddd
commit 22afdf2
Showing
5 changed files
with
11 additions
and
11 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 |
---|---|---|
|
@@ -11,10 +11,11 @@ ProgressBar in terminal for deno | |
#### example | ||
|
||
```ts | ||
import { MultiProgressBar } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { MultiProgressBar } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { delay } from "https://deno.land/[email protected]/async/delay.ts"; | ||
// or JSR | ||
// import { MultiProgressBar } from "@deno-library/progress"; | ||
import { delay } from "https://deno.land/[email protected]/async/delay.ts"; | ||
// import { delay } from "@std/async"; | ||
|
||
const title = "download files"; | ||
const total = 100; | ||
|
@@ -148,10 +149,10 @@ What is displayed and display order, default: ':bar :text :percent :time | |
#### simple example | ||
|
||
```ts | ||
import ProgressBar from "https://deno.land/x/[email protected].7/mod.ts"; | ||
import ProgressBar from "https://deno.land/x/[email protected].8/mod.ts"; | ||
// or JSR | ||
// import ProgressBar from "@deno-library/progress"; | ||
import { delay } from "https://deno.land/std@0.210.0/async/delay.ts"; | ||
import { delay } from "https://deno.land/std@0.220.1/async/delay.ts"; | ||
|
||
const title = "downloading:"; | ||
const total = 100; | ||
|
@@ -173,10 +174,10 @@ await download(); | |
#### complex example | ||
|
||
```ts | ||
import ProgressBar from "https://deno.land/x/[email protected].7/mod.ts"; | ||
import ProgressBar from "https://deno.land/x/[email protected].8/mod.ts"; | ||
// or JSR | ||
// import ProgressBar from "@deno-library/progress"; | ||
import { delay } from "https://deno.land/std@0.210.0/async/delay.ts"; | ||
import { delay } from "https://deno.land/std@0.220.1/async/delay.ts"; | ||
|
||
const total = 100; | ||
const progress = new ProgressBar({ | ||
|
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,13 +1,12 @@ | ||
{ | ||
"name": "@deno-library/progress", | ||
"version": "1.4.7", | ||
"version": "1.4.8", | ||
"exports": "./mod.ts", | ||
"lock": false, | ||
"imports": { | ||
"@std/assert": "jsr:@std/assert@^0.220.1", | ||
"@std/async": "jsr:@std/async@^0.220.1", | ||
"@std/fmt": "jsr:@std/fmt@^0.220.1", | ||
"colors": "jsr:@std/fmt@^0.220.1/colors.ts", | ||
"rx_webstreams/": "https://deno.land/x/[email protected]/", | ||
"simpleTimerStream": "https://deno.land/x/[email protected]/mod.ts" | ||
}, | ||
|
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