Socket
Socket
Sign inDemoInstall

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

Node.js watching library, as all the other ones suck.


Version published
Weekly downloads
25K
increased by3.17%
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
    require('coffee-script'); # watchr dependency
    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 coffee-script 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 11 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