fsa

File system auditor. Shows changes after previous audit session.

File system auditor. Show changes after previous audit session. Work over git.

mkdir tmp touch tmp/1 fbs.init fbs.status -> {"modified":[],"added":["1"],"deleted":[]} fbs.commit fbs.status -> {"modified":[],"added":[],"deleted":[]} touch tmp/2 fbs.status -> {"modified":[],"added":["2"],"deleted":[]}

fbs.init('tmp', function (err) {
    if (err) {
        console.log(err)
    } else {
        // ... 
    }
})
fbs.status('tmp', function (errstatus) {
    if (err) {
        console.log(err)
    } else {
        console.log(JSON.stringify(status)) // -> {"modified":[],"added":["1"],"deleted":[]} 
    }
})
fbs.commit('tmp', function (err) {
    if (err) {
        console.log(err)
    } else {
        // ... 
    }
})