ape-watching

ape framework module for watching files.


Keywords
ape, file, watching
License
MIT
Install
npm install ape-watching@2.1.4

Documentation

ape-watching

Build Status Code Climate Code Coverage Dependency Status npm Version JS Standard

ape framework module for watching files.

Usage

Watch files.

#!/usr/bin/env
'use strict'

const apeWatching = require('ape-watching')

const watchers = apeWatching.watchFiles([
  'src/javascripts/**/*.js',
  'assets/javascripts/**/*.js'
], (ev, filename) => {
  /* ... */
})

setTimeout(() => {
  watchers.forEach((watcher) => {
    watcher.close() // Stop watching
  })
}, 1000)

License

This software is released under the MIT License.

Links