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

274
Views
NodeJS - how to know if a line has been written to STDOUT

How can i know if a line has been written in STDOUT before removing stuff?

Basically i wanna clear the current line, with a progress tracker, with

process.stdout.clearLine(0);

but i wanna check before if it still is the line i wrote there, or a warning/error message from some of the submodules, because these should of course not be removed

I can't find a way to read from STDOUT, which is understandable, but there also seems to be no way of reading stuff from something like a write event or by intercepting the stream, this all only seems possible for the STDIN stream...

about 4 years ago · Juan Pablo Isaza
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!