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

watchr

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watchr

Provides a better and normalised API between Node's 0.4 watchFile and 0.6's fsWatcher

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23K
increased by6.56%
Maintainers
1
Weekly downloads
 
Created
Source

Watchr. Node.js file watching that doesn't suck.

Watchr normalises the node.js watching functionality between 0.4's fs.watchFile, and 0.6's fs.watch, and adds support for watching entire directories including their far descendants (some call this recursive directory watching)

Using

  • JavaScript

    // Requires
    var watchr = require('watchr');
    
    // Watch
    watchr.watch(path,function(){
    	console.log('something changed inside the directory');
    });
    
  • CoffeeScript

    # Requires
    watchr = require('watchr')
    
    # Watch
    watchr.watch path, ->
    	console.log('something changed inside the directory')
    

Install

npm install watchr

Support

Support can be found in the github issue tracker

History

You can discover the history inside the History.md file

License

Licensed under the MIT License
Copyright © 2011-2012 Benjamin Arthur Lupton

Keywords

FAQs

Package last updated on 18 Apr 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