Skip to content

Instantly share code, notes, and snippets.

@DoumanAsh
Created April 15, 2017 06:09
Show Gist options
  • Save DoumanAsh/a70b49b3e05aa4c4273dd6917cce13e0 to your computer and use it in GitHub Desktop.
Save DoumanAsh/a70b49b3e05aa4c4273dd6917cce13e0 to your computer and use it in GitHub Desktop.
Show fs.stat & fs.statSync diff
"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