@fsglob/watchdir
Single directory files change watcher
Last updated 2 months ago by jgermade .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @fsglob/watchdir 
SYNC missed versions from official npm registry.

@fsglob/watchdir

Install

npm i -D @fsglob/watchdir

Running CLI

npx watchdir -d ./src \
  --when "{,**/}* ; {,**/}*.sass" "make js" \
  --when "{,**/}*.sass" "make css" \
  --run "echo 'all when detected has finished'"

JavaScript API

import WatchDir from '@fsglob/watchdir'

new WatchDir('./src')
  .when('{,**/}* ; !{,**/}*.sass', () => console.log('js files changed') )
  .when('{,**/}*.sass', () => console.log('sass files changed') )
  .run( () => console.log('all when detected has finished) )

Current Tags

  • 0.0.2                                ...           latest (2 months ago)

2 Versions

  • 0.0.2                                ...           2 months ago
  • 0.0.1                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |