-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: provide an example to fs.stat() #28381
Conversation
Provided a small example along its output using fs.stat() to check the stats on two different paths, one a directory and the other a txt file.
Envelope folder structure between backticks. Make the example program comply with strict mode.
} | ||
``` | ||
|
||
And the output would be: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text will not literally be the output. Instead, the output will be similar to it. In particular, the timestamps will be different.
And the output would be: | |
The resulting output will resemble: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with or without the minor change I suggest.
Landed in c03df4c with @Trott’s suggestion applied Thanks for the contribution! 🎉 (If you're interested in other possible contributions to Node.js but don't have a good idea of where to start looking, some ideas are posted at https://www.nodetodo.org/next-steps/.) |
Provided a small example along its output using fs.stat() to check the stats on two different paths, one a directory and the other a txt file. PR-URL: nodejs#28381 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Provided a small example along its output using fs.stat() to check the stats on two different paths, one a directory and the other a txt file. PR-URL: #28381 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Provided a small example along its output using fs.stat() to check the
stats on two different paths, one a directory and the other a txt file.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes