2.0.7 • Published 6 years ago

pon-watcher v2.0.7

Weekly downloads
346
License
Apache-2.0
Repository
github
Last release
6 years ago

Build Status npm Version JS Standard

File watcher for pon

Installation

$ npm install pon-watcher --save

Usage

'use strict'

const ponWatcher = require('pon-watcher')

async function tryExample () {
  let watcher = ponWatcher({})

  let close = await watcher.watch('src/**/*.jsx', (event, filename) => {
    /* ... */
  })
  process.on('beforeExit', () => {
    close()
  })
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the Apache-2.0 License.

Links

2.0.7

6 years ago

2.0.1

7 years ago