{"id":16129797,"url":"https://github.com/ruyadorno/clean-dir","last_synced_at":"2025-03-18T14:30:48.306Z","repository":{"id":27050132,"uuid":"30515419","full_name":"ruyadorno/clean-dir","owner":"ruyadorno","description":"Command line util to clean a directory","archived":false,"fork":false,"pushed_at":"2015-02-09T03:26:45.000Z","size":188,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T10:04:00.327Z","etag":null,"topics":["clean","clean-dir","cli","command-line","javascript","js","nodejs","npm","trash","unix"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruyadorno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-09T02:45:47.000Z","updated_at":"2023-10-22T08:19:51.000Z","dependencies_parsed_at":"2022-09-16T14:51:17.879Z","dependency_job_id":null,"html_url":"https://github.com/ruyadorno/clean-dir","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruyadorno%2Fclean-dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruyadorno%2Fclean-dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruyadorno%2Fclean-dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruyadorno%2Fclean-dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruyadorno","download_url":"https://codeload.github.com/ruyadorno/clean-dir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933413,"owners_count":20370987,"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":["clean","clean-dir","cli","command-line","javascript","js","nodejs","npm","trash","unix"],"created_at":"2024-10-09T22:12:37.937Z","updated_at":"2025-03-18T14:30:48.016Z","avatar_url":"https://github.com/ruyadorno.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cleandir\n\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]\n\n\u003e Command line util to safely clean a directory\n\n\n## About\n\nThis small command line tool uses [trash][trash-url] to safely clean the current working directory or the directory specified.\n\n\n## Install\n\n```sh\n$ npm install -g clean-dir\n```\n\n\n## Usage\n\n### Command-line\n\nCleans up the current working directory:\n\n```sh\n$ cleandir\n```\n\nCleans a given directory:\n\n```sh\n$ cleandir ~/path-to-clean\n```\n\nDisplays the help message:\n\n```sh\n$ cleandir --help\n```\n\n\n### Programmatic API\n\n```js\nvar cleandir = require('clean-dir');\n\ncleandir('~/path-to-clean', function (err) {});\n```\n\n\n## License\n\nMIT © [Ruy Adorno](http://ruyadorno.com/)\n\n[npm-url]: https://npmjs.org/package/clean-dir\n[npm-image]: https://badge.fury.io/js/clean-dir.svg\n[travis-url]: https://travis-ci.org/ruyadorno/clean-dir\n[travis-image]: https://travis-ci.org/ruyadorno/clean-dir.svg?branch=master\n[trash-url]: https://www.npmjs.com/package/trash\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruyadorno%2Fclean-dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruyadorno%2Fclean-dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruyadorno%2Fclean-dir/lists"}