Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

difference with rimraf ? #26

Closed
mesqueeb opened this issue Jul 18, 2021 · 3 comments · Fixed by #28
Closed

difference with rimraf ? #26

mesqueeb opened this issue Jul 18, 2021 · 3 comments · Fixed by #28

Comments

@mesqueeb
Copy link
Contributor

I'm interested to know the difference between this and the rimraf node package, or rm -rf on macOS.

Thanks in advance! : )

@sindresorhus
Copy link
Owner

Benefits over rimraf CLI: Supports globbing (even on Windows), safer by default as it doesn't allow deleting parent directories, has a dry-run mode.

Benefits over rm -rf: Cross-platform, safer by default as it doesn't allow deleting parent directories, has a dry-run mode.

@mesqueeb
Copy link
Contributor Author

@sindresorhus I wonder if "del-cli" is really cross-platform if you need to write del-cli on windows, what should we do with our package.json scripts? If our team has both windows & mac users. Is there a keyword that works on both mac and windows? Because otherwise it's not really cross-platform.

@sindresorhus
Copy link
Owner

If your project is cross-platform, you use del-cli. It works on both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants