Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

167
Vistas
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 Respuestas
Responde la pregunta

0

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

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda