📁 Minimalistic file watching
$ npm install the-watch
const theWatch = require('the-watch');
theWatch('path', (err, event, path, details) => {
if (err) throw err;
// handle fs event
});
Type: string
The path you want to watch - can be a file, a directory or an array of files or directories.
Type: object
Options for chokidar
Type: function
Arguments: err
, event
, path
, details
Will be called on every fs event
MIT © Tobias Herber