2.0.4 • Published 4 years ago

awatch v2.0.4

Weekly downloads
387
License
MIT
Repository
github
Last release
4 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

4 years ago

2.0.3

4 years ago

2.0.1

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago