new FSWatcher()
Objects returned from
watch()
are of this type.
Identical to fs.FSWatcher.
- Source:
- fs.js#L75
Fires:
Methods
-
close()
-
Closes the FSWatcher instance
- Source:
- fs.js#L100
Events
-
change
-
Emitted when an error occurs.
Type: fsn/fs.FSWatcher
- Source:
- fs.js#L83
Properties:
Name Type Description eventType
string The type of fs change filename
string | Buffer The filename that changed -
error
-
Emitted when an error occurs.
Type: fsn/fs.FSWatcher
- Source:
- fs.js#L92
Properties:
Name Type Description error
Error The error