{"id":21074815,"url":"https://github.com/dawsbot/skrub-cli","last_synced_at":"2025-06-28T20:04:36.366Z","repository":{"id":57153920,"uuid":"58888030","full_name":"dawsbot/skrub-cli","owner":"dawsbot","description":"Irreversible file deletion on every operating system ","archived":false,"fork":false,"pushed_at":"2020-04-15T13:48:53.000Z","size":147,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T05:38:04.959Z","etag":null,"topics":["filesystem-utils","fs-node","rm","secure","security"],"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/dawsbot.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-15T22:36:42.000Z","updated_at":"2023-09-28T10:34:04.000Z","dependencies_parsed_at":"2022-08-24T10:00:32.733Z","dependency_job_id":null,"html_url":"https://github.com/dawsbot/skrub-cli","commit_stats":null,"previous_names":["dawsonbotsford/skrub-cli"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Fskrub-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Fskrub-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Fskrub-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Fskrub-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dawsbot","download_url":"https://codeload.github.com/dawsbot/skrub-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225411503,"owners_count":17470246,"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":["filesystem-utils","fs-node","rm","secure","security"],"created_at":"2024-11-19T19:18:10.367Z","updated_at":"2024-11-19T19:18:11.219Z","avatar_url":"https://github.com/dawsbot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca\u003e\u003cimg src=\"https://raw.githubusercontent.com/dawsbot/skrub/master/img/logo.png\" title=\"skrub logo\"/\u003e\u003c/a\u003e\n\n  \u003cbr\u003e\n\n  \u003cb\u003eIrreversible file deletion on every operating system\u003c/b\u003e\n  \u003cbr\u003e\n  \u003ci\u003e* Will only work securely on file systems that overwrite blocks in place *\u003c/i\u003e\n\n  \u003cbr\u003e\n  \u003cbr\u003e\u003cbr\u003e\u003ca href=\"https://travis-ci.org/dawsbot/skrub-cli\"\u003e\u003cimg src=\"https://api.travis-ci.org/dawsbot/skrub-cli.svg?branch=master\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://ci.appveyor.com/project/dawsonbotsford/skrub-cli\"\u003e\u003cimg src=\"https://ci.appveyor.com/api/projects/status/two1klt2y7va7qab?svg=true\"\u003e\u003c/a\u003e\n\n  \u003cbr\u003e\n\n  \u003ca href=\"https://www.npmjs.com/package/skrub-cli\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/skrub-cli.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://npmjs.org/skrub-cli\"\u003e\u003cimg src=\"http://img.shields.io/npm/dm/skrub-cli.svg?style=flat\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/sindresorhus/xo\"\u003e\u003cimg src=\"https://img.shields.io/badge/code_style-XO-5ed9c7.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n\u003cbr\u003e\n\nWorks on OS X, Linux, and Windows\n\nIn contrast to `rm`, which [leaves file contents unallocated in memory](http://unix.stackexchange.com/questions/10883/where-do-files-go-when-the-rm-command-is-issued), `skrub` first floods the file with garbage data and then **removes it forever**. Read the [FAQ](https://github.com/dawsonbotsford/skrub#faq) for information on how secure this method is.\n\nLooking for the [npm module instead](https://github.com/dawsonbotsford/skrub)?\n\n\u003cbr\u003e\n\n## Install\n\n```\nnpm install --global skrub-cli\n```\n\n\u003cbr\u003e\n\n## Usage\n\nIn it's basic form, `skrub` **replaces** `rm`. See how to alias over `rm` [here](#alias)\n\nThe API is similar as well:\n\n* `skrub *` == `rm *`\n* `skrub *` == `rm -rf *`\n* `skrub index.js` == `rm index.js`\n\n```\n$ skrub --help\n\n  Usage\n      $ skrub \u003cpath|glob\u003e [...]\n\n    Options\n      -d, --dry-run  List what would be skrubbed instead of skrubbing\n      -i, --iterations  Write over the file multiple times (defaults to one)\n\n    Examples\n      $ skrub unicorn.png rainbow.png\n      $ skrub ../* '!../thatSuperImportantThing.txt'\n      $ skrub ../beCarefulHere --dry-run\n      $ skrub extraSkrubbed.txt --iterations 36\n```\n\n*You can use [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns) and multiple path arguments to compound and negate matches.*\n\n\u003cbr\u003e\n\n## Alias\n\nIf you want to replace `rm` with `skrub`, place this in your `~/.bashrc`, `~/.zshrc`, etc.\n\n```\nalias rm=skrub\n```\n\n\u003cbr\u003e\n\n## [FAQ](https://github.com/dawsonbotsford/skrub#faq)\n\n\u003cbr\u003e\n\n## Related\n\n* [skrub](https://github.com/dawsonbotsford/skrub)\n* [kiwf](https://github.com/BrianNewsom/kiwf)\n* [del](https://github.com/sindresorhus/del)\n* [trash](https://github.com/sindresorhus/trash)\n\n\u003cbr\u003e\n\n## License\n\nMIT © [Dawson Botsford](http://dawsonbotsford.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawsbot%2Fskrub-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdawsbot%2Fskrub-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawsbot%2Fskrub-cli/lists"}