Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

akv-status

a-labo5.9kMIT2.0.1

akv store for file status

kvs

readme

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.