How to get the creation time of the file synchronously using Node.js?
Originally Published Here ๐!
To get the creation time of a file synchronously, you can use the statSync() method from the fs (filesystem) module and then use the birthtime property from the returned stats object in Node.js.
Let's say we have a file ...
melvingeorge-me.hashnode.dev2 min read