album-manager-andrewkkchan

1.0.0 • Public • Published

Album Manager

This is our module for managing photo albums based on a directory. We assume that, given a path, there is an albums subfolder, and each of its individiual sub-folders are themselves the albums. Fiules in those sub folders are photos.

Album Manager

The album manager exposes a signle function, 'albums', which returns an array of Album' objects for wach album it contains.

Album Object

The album object has the following two properties and one method:

  • 'name' -- The name of the album
  • 'path' -- The path to the album
  • 'photos()' -- calling this method will return all the album's photos

Readme

Keywords

none

Package Sidebar

Install

npm i album-manager-andrewkkchan

Weekly Downloads

1

Version

1.0.0

License

none

Last publish

Collaborators

  • andrewkkchan