Skip to content

Date-Time Cleaner: A Node.js tool for Windows to reset or customize file and folder date/time metadata, with .gitignore support.

Notifications You must be signed in to change notification settings

HousebirdGames/Date-Time-Cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Date-Time Cleaner

Date-Time Cleaner is a Node.js application for Windows that allows you to set the creation and last modified dates/times of the folder it is in, all subfolders, and all contained items. By default, it sets the date/time to "01/01/1970 00:00:00", but you can specify a different date/time when you run the application. It excludes everything specified in the .gitignore file, if one is available within that folder.

Use Cases

Date-Time Cleaner can be useful in several scenarios:

  1. Privacy: If you want to share files but don't want the metadata to reveal when the files were created or last modified, you can use Date-Time Cleaner to reset these dates/times.

  2. Testing: If you're testing software that depends on the creation or modification dates/times of files, you can use Date-Time Cleaner to set these dates/times to a known value.

  3. Cleanup: If you have old files with incorrect dates/times, you can use Date-Time Cleaner to reset them.

Remember to always back up your files before running Date-Time Cleaner, as it will permanently modify the metadata of your files.

Use the cleaner at your own risk.

Pre-compiled Executable

A pre-compiled executable for Windows x64 is available in the /dist directory. You can download and run this executable without needing to install Node.js or any dependencies.

Initialization

Before running the application, you need to install the necessary dependencies. Run the following command in your terminal:

npm install

Running the Application

To run the application, use the following command:

npm start

This command will start the application in your terminal. The application will ask for your confirmation before it starts modifying the metadata of your files.

Packaging the Application

To package the application into an executable file, use the pkg tool with the following command:

pkg . --targets node14-win-x64 -o ./dist/Date-Time-Cleaner

This command will package the application and output the executable file to the ./dist directory. The packaged application can be run on any Windows machine with x64 architecture, without needing to install Node.js or any dependencies.

Note

Please use this tool responsibly. Modifying the metadata of your files can have unintended consequences. Always make sure to back up your files before running this application.

About

Date-Time Cleaner: A Node.js tool for Windows to reset or customize file and folder date/time metadata, with .gitignore support.

Topics

Resources

Stars

Watchers

Forks