Giter Site home page Giter Site logo

cloudxtreme / node-pathwatcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atom/node-pathwatcher

0.0 1.0 0.0 382 KB

Path Watcher Node Module

Home Page: http://atom.github.io/node-pathwatcher

License: MIT License

CoffeeScript 71.03% Python 1.52% Shell 0.25% C++ 24.99% Objective-C++ 2.21%

node-pathwatcher's Introduction

Path Watcher Node Module Build Status

Installing

npm install pathwatcher

Building

  • Clone the repository
  • Run npm install to install the dependencies
  • Run npm test to run the specs

Using

PathWatcher = require 'pathwatcher'

PathWatcher.watch(filename, [listener])

Watch for changes on filename, where filename is either a file or a directory. The returned object is a PathWatcher.

The listener callback gets two arguments (event, path). event is 'rename', 'delete' or 'change', and path is the path of the file which triggered the event.

For directories, the 'change' event is emitted when a file or directory under the watched directory got created or deleted. And the PathWatcher.watch is not recursive, so changes of subdirectories under the watched directory would not be detected.

PathWatcher.close()

Stop watching for changes on the given PathWatcher.

node-pathwatcher's People

Contributors

50wliu avatar anaisbetts avatar benjamn avatar benogle avatar bolinfest avatar bradgearon avatar fornever avatar glasser avatar kevinsawicki avatar maxbrunsfeld avatar mnquintana avatar mojodna avatar mostafaeweda avatar nielsad avatar peterdavehello avatar smashwilson avatar ssorallen avatar termina1 avatar thomasjo avatar zcbenz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.