Socket
Socket
Sign inDemoInstall

watchdir

Package Overview
Dependencies
14
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    watchdir

watch a directory. perform a command upon change.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
289 kB
Created
Weekly downloads
 

Readme

Source

watchdir

watch a directory. perform a command on change.

Install

npm install -g watchdir

Use

Automatically make on change in current directory

watchdir -c 'make'

Watch a different directory

watchdir -c 'make' -d ~/code/skynet/

Execute any command you want

watchdir -c 'npm become-overlord --planet=earth'

Options

Usage:
  watchdir [OPTIONS]

Options:
  -d, --dir [PATH]       Directory to watch (Default is .)
  -c, --command STRING   Command to execute on change
  -w, --watchfile        Use node's fs.watchFile instead of fs.watch (Sometimes watch fails noticing changes in files)
  -k, --no-color         Omit color from output
      --debug            Show debug information
  -h, --help             Display help and usage details

Contribute

  1. Fork.
  2. Pull request.
  3. Hallelujah.

FAQs

Last updated on 29 Feb 2012

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc