my-album-manager
v2.0.0
Published
This is our module for managing photo albums based on a directory. We assume that, given a path, there is an albums sub-folder, and each of its individual sub-folders are themselves the albums. Files in those sub-folders are photos.
Downloads
1
Readme
Album-Manager
This is our module for managing photo albums based on a directory. We assume that, given a path, there is an albums sub-folder, and each of its individual sub-folders are themselves the albums. Files in those sub-folders are photos.
Album Manager
The album manager exposes a single function, albums
, which returns
an array of Album
objects for each album it contains.
Album Object
The album object has the follow two properties and one method:
name
-- The name of the albumpath
-- The path to the albumphotos()
-- Calling this method will return all the album's photos