2.0.4 • Published 5 years ago

awatch v2.0.4

Weekly downloads
387
License
MIT
Repository
github
Last release
5 years ago

awatch

Build Status npm Version JS Standard

Async file watcher

Installation

$ npm install awatch --save

Usage

'use strict'

const awatch = require('awatch')
const co = require('co')

co(function * () {

  let close = yield awatch('src/**/*.jsx', (event, filename) => {
    /* ... */
  })
  /* ... */
  process.on('beforeExit', () => {
    close()
  })
}).catch((err) => console.error(err))

License

This software is released under the MIT License.

Links

2.0.4

5 years ago

2.0.3

5 years ago

2.0.1

7 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago