Skip to content

Sudhirdp/Js_watchit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Watchit - Node.js Code Watcher

Watchit is a simple Node.js practice project that enables you to track changes in your Node.js JavaScript files. It's designed to automatically restart your Node.js application whenever changes are detected in the specified file. It also restarts the program when files are deleted.

Introduction

watchit is a command-line tool developed to showcase my JavaScript and NodeJS skills. It serves a similar purpose to nodemon, providing an easy way to monitor file changes and streamline development.

Usage

To use watchit, follow these steps:

  1. Install the required npm packages:

    npm install caporal chokidar lodash.debounce chalk
  2. Clone the repository and install the project dependencies:

    git clone https://github.com/your-username/watchit.git
    cd watchit
    npm install
  3. Run watchit with the following command:

    watchit [test.js]

    Replace [filename] with the name of the file you want to monitor. If no filename is provided, the default is set to index.js.

Prerequisites

Before using watchit, make sure you have the following npm packages installed:

Ensure that the fs and child_process modules from the Node.js API are also required in your project.

Installation

Clone the repository and install the required npm packages:

git clone https://github.com/your-username/watchit.git
cd watchit
npm install

Releases

No releases published

Packages

No packages published