picsort v1.0.0
picsort 📸
Organize JPG/JPEG photos into folders by date through the command line.
Demo

It uses node-exif to extract the created date from an image. If the exif data is not available, picsort will try to extract the created date from the filename, otherwise it will remain in the original location.
Install
Remember to install the package globally 🌎
If you are using npm, add -g
$ npm install -g picsortIf you are using yarn, add global just after yarn
$ yarn global add picsortUsage
To sort your photos simply type picsort followed by the path to the source directory.
$ picsort ./Desktop/imagesTip: You can also drag and drop folders! (see the demo)
To see all options or an usage example in command line, add flag -h or --help
$ picsort -h
$ picsort --helpOptions
Picsort will sort your photos in Year/Month order by default. However, you can specify sorting precision by adding a flag.
Use flag -d to sort photos by Year/Month/Day/.
$ picsort [path] -dUse flag -m to sort photos by Year/Month/. This is the default option.
$ picsort [path] -mUse flag -y to sort photos by Year/.
$ picsort [path] -yChangelog
- 17/10/17 version 0.1.0 released.
License
Mateusz Janusz, 2017.