{"id":15068228,"url":"https://github.com/tpkn/folder-cleanup","last_synced_at":"2026-01-03T06:07:31.041Z","repository":{"id":57239646,"uuid":"113239470","full_name":"tpkn/folder-cleanup","owner":"tpkn","description":"A Nodejs plugin that helps you remove old files and folders","archived":false,"fork":false,"pushed_at":"2017-12-26T20:35:40.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T05:33:24.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpkn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-05T22:23:22.000Z","updated_at":"2018-01-07T14:27:24.000Z","dependencies_parsed_at":"2022-08-30T00:11:24.249Z","dependency_job_id":null,"html_url":"https://github.com/tpkn/folder-cleanup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Ffolder-cleanup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Ffolder-cleanup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Ffolder-cleanup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Ffolder-cleanup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpkn","download_url":"https://codeload.github.com/tpkn/folder-cleanup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243833241,"owners_count":20355231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-25T01:32:40.718Z","updated_at":"2026-01-03T06:07:31.003Z","avatar_url":"https://github.com/tpkn.png","language":"JavaScript","readme":"# Folder Cleanup\nHelps you remove old files and folders\n\n\nA convenient way to rid of files and folders that are older than specified amount of time.\nCleanup function takes two arguments: \n1. folder path\n2. maximum file age (in milliseconds)\n\n## Usage\n```javascript\nconst cleanup = require('folder-cleanup');\n\nlet max_age = '5d';\nlet temp_uploads = '/usr/www/domain.me/temp_uploads';\n\n// Deleting files that were created later than 5 days ago\ncleanup(temp_uploads, max_age);\n```\n\nPeople who are feeling nauseous just thinking of how they will converting 90 weeks into milliseconds, could use already [built-in time converter](https://www.npmjs.com/package/string-to-ms).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpkn%2Ffolder-cleanup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpkn%2Ffolder-cleanup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpkn%2Ffolder-cleanup/lists"}