fix-mod-date v1.2.0
fix-mod-date

fix-mod-date is a CLI tool which reads & updates the modification date of various file types by parsing their contents. Of course it does not work with any file because the date must be saved in the file somehow.
fix-mod-date can also be used on directories to update their modification times based on the latest file it contains.
It can happen that the modification date of a file is incorrect for various reasons, ex. if a file has been copied without preserving modification date, such as when it is moved from one filesystem to another.
compatibilty
Node.JS >= 10 and PowerShell on Windows (since Windows Server 2008 & Windows 7)
Note: run export NODE_NO_WARNINGS=1 before fix-mod-date to avoid fs.promises API ExperimentalWarning on Node 10.x.
install
npm install -g fix-mod-date
use
fix-mod-date /some/file.ai /some/other/file.ai /some/directory
options
--version: outputs versiontor--test: test mode. date will not be modified.vor--verbose: verbose logging.qor--quiet: no output at all.ror--recursive: recursive level for processing directories. default =1ior--ignore: file names to ignore. default = [] but OS files .DS_Store, .Spotlight-V100, .Trashes, ehthumbs.db and Thumbs.db are ignored by default.for--fallback: use file OS modification time if time not found in file contents.dor--directory: update the directories modification time based on the files it contains.
supported file types
ai(Adobe Illustrator)psd(Adobe Photoshop)eps(Encapsulated Postscript)aep(Adobe After Effects project)jpg/jpegneeds EXIF datatiffneeds EXIF dataheicneeds EXIF dataheifneeds EXIF datawebpneeds EXIF datamp4/mpg4(MPEG-4 Part 14)m4a(MPEG-4 Part 14 Audio)zip(ZIP compressed file)
develop
setup
git clone https://github.com/didrip/fix-mod-date && cd fix-mod-datenpm installnpm run buildnpm link
live changes
npm run dev
test
npm run test