From 1f012a4728249b10f1ce05620b6ab368a5313648 Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Tue, 25 Jan 2022 19:33:37 +0900 Subject: [PATCH] Document difference with other tools (#28) Co-authored-by: Sindre Sorhus --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readme.md b/readme.md index ed30f13..2b2b161 100644 --- a/readme.md +++ b/readme.md @@ -31,6 +31,12 @@ $ del --help > :warning: **Windows users**: Since `$ del` is already a builtin command on Windows, you need to use `$ del-cli` there. +## Comparison + +Benefits over `rimraf` CLI: Supports globbing (even on Windows), safer by default as it doesn't allow deleting parent directories, and has a dry-run mode. + +Benefits over `rm -rf`: Cross-platform, safer by default as it doesn't allow deleting parent directories, and has a dry-run mode. + ## Related - [del](https://github.com/sindresorhus/del) - API for this module