album-manager-will

1.0.0 • Public • Published

Album-Manager

This is my module example 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 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

The command to link module on node modules folder patter is

  • sudo npm link

/album-manager-will/

    Package Sidebar

    Install

    npm i album-manager-will

    Weekly Downloads

    0

    Version

    1.0.0

    License

    none

    Unpacked Size

    4.04 kB

    Total Files

    4

    Last publish

    Collaborators

    • williamelias