It is a Node.js script that uses PowerShell to track running processes on a system. It reads the output of a PowerShell script, tracks the usage of each process, and writes the tracking information to a JSON file. If a process is no longer running, it logs the expected run time and removes the process from the tracking file.
- Node.js
- PowerShell
- ts-node
-
Clone the repository:
git clone https://github.com/somyabhattcu1/track-app-usage.git
-
Navigate to the project directory:
cd track-app-usage
-
Install the dependencies:
npm i npm i -g ts-node #recommended
ts-node src\index.ts #assuming you have ts-node installed globally