diff --git a/README.md b/README.md index 73189f5c..7cd86366 100644 --- a/README.md +++ b/README.md @@ -277,7 +277,7 @@ chok.watch('./directory'); // other way import { glob } from 'node:fs/promises'; -const watcher = watch(await glob('**/*.js')); +const watcher = watch(await Array.fromAsync(glob('**/*.js'))); // unwatching // v3