sims-photo-album-watcher

0.0.3 • Public • Published

sims-photo-album-watcher

Watch a Sims 2 photo album folder for changes and emit events.

install

Install the normal way with npm:

npm install sims-photo-album-watcher

use

It is an event emitter that emits save, delete, and error.

var folderWatcher = require('sims-photo-album-watcher')
var watcher = neighborhoodWatcher('/User/me/Games/Sims2/Neighborhoods')
watcher.on('save', function(photoAlbum) {
    console.log('save:', photoAlbum.familyName)
})
watcher.on('delete', function(path) {
    console.log('delete:', path)
})
watcher.on('error', function(err) {
    console.log('err:', err)
})

bugs and requests

If you find a bug, please file an issue.

license

VOL

/sims-photo-album-watcher/

    Package Sidebar

    Install

    npm i sims-photo-album-watcher

    Weekly Downloads

    3

    Version

    0.0.3

    License

    VOL

    Last publish

    Collaborators

    • saibotsivad