{"id":15677649,"url":"https://github.com/stijnvanhulle/rustraf","last_synced_at":"2025-10-09T16:13:23.464Z","repository":{"id":89125702,"uuid":"502726996","full_name":"stijnvanhulle/rustraf","owner":"stijnvanhulle","description":"The UNIX command rm -rf for node written with Rust.","archived":false,"fork":false,"pushed_at":"2024-09-01T12:30:40.000Z","size":445,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-29T19:28:51.459Z","etag":null,"topics":["linux","node","remove","rust"],"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/stijnvanhulle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["stijnvanhulle"]}},"created_at":"2022-06-12T21:01:10.000Z","updated_at":"2024-09-01T12:30:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"e38254c2-f3e1-436b-9dd9-e50e8849a232","html_url":"https://github.com/stijnvanhulle/rustraf","commit_stats":{"total_commits":70,"total_committers":3,"mean_commits":"23.333333333333332","dds":0.3285714285714286,"last_synced_commit":"b02c3a0d01afc421c3d72446aae70eccd00c442f"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/stijnvanhulle/rustraf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijnvanhulle%2Frustraf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijnvanhulle%2Frustraf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijnvanhulle%2Frustraf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijnvanhulle%2Frustraf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stijnvanhulle","download_url":"https://codeload.github.com/stijnvanhulle/rustraf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stijnvanhulle%2Frustraf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001762,"owners_count":26083171,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["linux","node","remove","rust"],"created_at":"2024-10-03T16:10:10.276Z","updated_at":"2025-10-09T16:13:23.429Z","avatar_url":"https://github.com/stijnvanhulle.png","language":"JavaScript","funding_links":["https://github.com/sponsors/stijnvanhulle"],"categories":[],"sub_categories":[],"readme":"# @rustraf/core\nThe [UNIX command](\u003chttp://en.wikipedia.org/wiki/Rm_(Unix)\u003e) `rm -rf` for node written with Rust.\n\n\u003ca href=\"https://www.npmjs.com/package/@rustraf/core\"\u003e\n  \u003cimg alt=\"Npm verssion\" src=\"https://img.shields.io/npm/v/@rustraf/core?style=for-the-badge\"/\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/@rustraf/core\"\u003e\n  \u003cimg alt=\"GitHub tag (latest by date)\" src=\"https://img.shields.io/github/v/tag/stijnvanhulle/rustraf?style=for-the-badge\"/\u003e\n\u003c/a\u003e\n\u003c/br\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/@rustraf/core\"\u003e\n  \u003cimg alt=\"Npm downloads\" src=\"https://img.shields.io/bundlephobia/min/@rustraf/core?style=for-the-badge\"/\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/@rustraf/core\"\u003e\n  \u003cimg alt=\"Npm downloads\" src=\"https://img.shields.io/npm/dm/@rustraf/core?style=for-the-badge\"/\u003e\n\u003c/a\u003e\n\n\n\n## API\n\n```\nimport { remove, removeFile, removeDir } from \"@rustraf/core\";\n```\n\n`remove(fileOrFolder)`\n\nRemove a folder or a file, the same behaviour as 'rm -rf fileOrFolder'\nIt will remove empty directories that lack read access on Linux, and will remove \"read-only\" files and directories on Windows.\n\n`removeFile(file)`\n\nRemove a file.\n\n`removeDir(dir)`\n\nRemove a folder and all it's underlying content.\n\n## CLI\n\nIf installed with\n\n```\nnpm install @rustraf/core -g\n```\n\n```\nyarn global add @rustraf/core\n```\n\nit can be used as a global\ncommand `rustraf \u003cpath\u003e [\u003cpath\u003e ...]` which is useful for cross platform support.\n\n\n## Compared with rimraf\nRemoving node_modules with a size of 597,5 MB\n\n| Package | Speed                                         |\n|---------|-----------------------------------------------|\n| [rimraf](https://www.npmjs.com/package/rimraf)  | 1.61s user 11.26s system 218% cpu 5.899 total |\n| [@rustraf/core](https://www.npmjs.com/package/@rustraf/core) | 0.28s user 5.79s system 84% cpu 7.218 total   |\n| native(darwin-arm64) | 0.06s user 5.38s system 86% cpu 6.293 total |\n\n## Supporting rustraf\n\nRimraf uses an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:\n\n- [Become a Sponsor on GitHub](https://github.com/sponsors/stijnvanhulle)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/sponsors/stijnvanhulle\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/stijnvanhulle/sponsors/main/sponsors.svg\" alt=\"My sponsors\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstijnvanhulle%2Frustraf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstijnvanhulle%2Frustraf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstijnvanhulle%2Frustraf/lists"}