Skip to content

attila177/folder-content-compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

folder-content-compare

Helps compare content of two folders. First commit generated with chatgpt.

Original prompt

Generate a project for comparing contents of two folders, with the following properties:

* name "folder-content-compare"
* node / npm / Typescript
* when carrying out npm run start, index file is run
* the index file accepts three parameters from the command line: folderPath1 (required), folderPath2 (required), diffToolCommand (optional)
* the script reads the file system content of folderPath1 recursively and writes a text file with the following format: first line: folderPath1, following for each file contained in the folder, its path and filename relative to folderPath1
* same handling for folderPath2
* after carrying out these actions, if diffToolCommand was provided, the script calls the difftool with the two created text files as parameters
* gitignore file that ignores text files generated by this project as well as all bash scripts
* package.json has prettier in a recent version as devDependency
* prettier file with default configuration for typescript
* index.ts should be formatted accordingly

About

Helps compare content of two folders.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published