Typescript Typings for chokidar.
typings install --save chokidar
import * as chokidar from 'chokidar';
// One-liner for current directory, ignores .dotfiles
chokidar.watch('.', { ignored: /[\/\\]\./ }).on('all', (event: string, path: string) => {
console.log(event, path);
});
You can run them the tests with npm run build
and npm run test
.
Based on typings by Stefan Steinhart