deno-library / progress

ProgressBar in terminal for deno

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't use it in deno tests

bjesuiter opened this issue · comments

I want to use this in deno tests for easier visibility of long running downloads.

However, because you check this isTTY flag, i can't use it :(

I've disabled this check now locally for me, but it would be nice, If i could simply use your package from upstream.

Is there any reason we might need this isTTY check especially?

commented

@bjesuiter
Landed in v1.2.9

commented

v1.3.0 is published.

changes:

  1. fixed colored string length calculation bug

  2. Deno.consoleSize is now stable

Deno v1.27.0 : Stabilize Deno.consoleSize() API

The Deno.consoleSize API change

- Deno.consoleSize(Deno.stdout.rid).columns;
+ Deno.consoleSize().columns;

Now you can run a wider bar without unstable.

- deno run --unstable ./examples/width.unstable.ts
+ deno run ./examples/width.ts

So mod.unstable.ts and exmaples/width.unstable.ts was removed.

- mod.unstable.ts
- exmaples/width.unstable.ts

Thanks very much for fast reaction and merge!