Here's a TypeScript function that uses the Node.js fs
module to get the creation date of a directory:
index.ts297 chars12 lines
To use this function, simply pass the path of the directory you want to get the creation date for as an argument:
index.ts288 chars9 lines
gistlibby LogSnag