Created
April 15, 2017 06:09
-
-
Save DoumanAsh/a70b49b3e05aa4c4273dd6917cce13e0 to your computer and use it in GitHub Desktop.
Show fs.stat & fs.statSync diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const fs = require('fs'); | |
console.log(fs.statSync(__filename)); | |
fs.stat(__filename, (err, stats) => { | |
console.log(stats); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment