A tiny CLI tool to parse dates from filenames and prefix in a sortable format.
Not yet published to npm. Clone this directory and run the following to test:
npm install
npm linkThis tool walks the directory and it's subfolders from where the tool is run. Each filename is parsed and dates are prefixed. Files who already start with 4 digits (simplistic assumption of year-first formatting) are skipped.
MMM DD YYYY, i.e. Jan 13 2020MMMM DD YYYY, i.e. Sept 3 2019YYYY-MM-DD, i.e. 2020-02-14
Date strings are reformatted to YYYY-MM-DD format for simple chronological sorting.