Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

watchdir

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watchdir

watch a directory. perform a command upon change.

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 29 Feb 2012

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc