npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

difffs

2.0.3

@mafintosh

npmHomeRepoSnykSocket
Downloads:23
$ npm install difffs
DailyWeeklyMonthlyYearly

difffs

Fuse based filesystem that notifies you when changes happen

npm install -g difffs

Usage

difffs [directory] [mountpoint]

For example to mount your home folder to /tmp/mnt do

mkdir /tmp/mnt
difffs ~ /tmp/mnt

Now if you navigate to /tmp/mnt and edit/create a file or a folder the above command will print out the change

Programmatic API

You can also use it as a node module

var difffs = require('difffs')

// diff is a readable stream of changes
var diff = difffs('/Users/maf', '/tmp/mnt')

// remember to drain the stream - otherwise the fs will block
diff.on('data', function (change) {
  console.log('the filesystem changed', change)
})

Dependencies

See the fuse-bindings requirements

License

MIT