akv-status
v2.0.1
Published
akv store for file status
Downloads
2,552
Readme
akv-status
akv store for file status
Installation
$ npm install akv-status --save
Usage
'use strict'
const akvStatus = require('akv-status')
const co = require('co')
co(function * () {
let store = akvStatus('tmp/files.status.json')
let patterns = [ 'src/**/*.js' ]
yield store.saveStatus(patterns)
process.on('message', () => co(function * () {
let changed = yield store.filterStatusUnknown(patterns)
if (changed.length > 0) {
/* ... */
}
}))
}).catch((err) => console.error(err))
License
This software is released under the MIT License.