akv-status

2.0.1 • Public • Published

akv-status

Build Status Code Climate Code Coverage npm Version JS Standard

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.

Links

Readme

Keywords

Package Sidebar

Install

npm i akv-status

Weekly Downloads

302

Version

2.0.1

License

MIT

Unpacked Size

25.9 kB

Total Files

30

Last publish

Collaborators

  • okunishinishi