awatch

2.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i awatch

Weekly Downloads

4

Version

2.0.4

License

MIT

Unpacked Size

12.7 kB

Total Files

24

Last publish

Collaborators

  • okunishinishi