watch_and_sync_dir helps you to watch all resources and actions (CREATE, EDIT, DELETE, RENAME) on those resources from the Source directory and replicate the changes in Destination directory.
fs for watching resources and
fs-extra to perform some operations, using methods like
exists to achieve this.
npm install watch_and_sync_dir
const wnsdir = ; // this is no longer necessary;