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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i sims-photo-album-watcher

Weekly Downloads

0

Version

0.0.3

License

VOL

Last publish

Collaborators

  • saibotsivad