watch_and_sync_dir

1.0.2 • Public • Published

Node.js: watch_and_sync_dir

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. It uses fs for watching resources and fs-extra to perform some operations, using methods like copy, remove, exists to achieve this.

npm Package

Installation

npm install watch_and_sync_dir

Usage

const wnsdir = require('watch_and_sync_dir'); // this is no longer necessary
wnsdir(source_directory, destination_directory);

Package Sidebar

Install

npm i watch_and_sync_dir

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

3.95 kB

Total Files

4

Last publish

Collaborators

  • vignesh_d96