JS copy const fs = require('fs') fs.stat('/Users/joe/test.txt', (err, stats) => { if (err) { console.error(err) return } //we have access to the file stats in `stats` })