Skip to content

Latest commit

 

History

History
139 lines (88 loc) · 3.36 KB

README.md

File metadata and controls

139 lines (88 loc) · 3.36 KB

Title Banner

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