Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
Get pipe() state JavaScript

I'm trying to code an Application that's able to download YouTube-Videos in multiple formats. Everything is ok, except for getting the progress in percentage, I don't want the app to call a custom server by a request to get it. I'm using the ytdl-core JavaScript-Library.

I've thought of getting the current filesize and creating a loading effect by listening for the pipes state (IsWriting, IsCancelled) but how exacly do i do that? Here's the pipe:

...().pipe(fs.createWriteStream(path));
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You must use the .on('progress') event. There is a working example: progress.js

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!