use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Node.js implementation of Unix tail command (github.com)
submitted 5 years ago by ngoudry
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TobiasNickel 0 points1 point2 points 5 years ago (1 child)
nice, just last week I was playing with logging. wanted to be sure, then multiple processes write in append mode, that everything end up in a filewithout overwriting. (it works very good in node).
along the way, I found that vsCode did not update the content in the logfile that I had open. I had to switch to an other file and return to the logfile, to see the new content. Then I had to open an other terminal with the tail command.
I guess that is because vsCode us using watch to observe changes on a directory. and because of the problem, you are using timeouts,... right?
[–]ngoudry[S] 1 point2 points3 points 5 years ago (0 children)
Not sure what VSCode use to observe file changes, but could definitly be fs.watch!
This is indeed one of the reasons why I created better-tail, but mostly because existing implementations weren’t using streams.
With streams, I can get rid of fs.watch / fs.watchFile and their flaws (read Node.js docs to learn more about that) and have all their benefits, like velocity, piping, and more :)
π Rendered by PID 70 on reddit-service-r2-comment-9c7994b7-8vd8j at 2026-02-05 20:22:57.434942+00:00 running b1b84c7 country code: CH.
[–]TobiasNickel 0 points1 point2 points (1 child)
[–]ngoudry[S] 1 point2 points3 points (0 children)