Skip to content

Haxe externs for chokidar. Use chokidar, a neat wrapper around Node.js fs.watch / fs.watchFile / FSEvents in a type safe manner and with the power of Haxe 💪.

License

Notifications You must be signed in to change notification settings

inc0der/hxchokidar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haxe Externs for chokidar

Use chokidar a neat wrapper around Node.js fs.watch / fs.watchFile / FSEvents in a type safe manner and with the power of Haxe 💪.

Dependencies

Installation

With lix:

lix install gh:inc0der/hxchokidar

Example

import chokidar.Chokidar;

class Main {
  public static var watcher = Chokidar.watch('./src.', {
    ignoreInitial: true,
    disableGlobbing: true
  });

  public static function logOnFileChange() {
    watcher.on('change', (path) -> {
      trace(path);
    });
  }
}

About

Haxe externs for chokidar. Use chokidar, a neat wrapper around Node.js fs.watch / fs.watchFile / FSEvents in a type safe manner and with the power of Haxe 💪.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages