https://github.com/johansatge/mac-trash
🗑️ Zero-dependency macOS CLI tool to move files to the Trash
https://github.com/johansatge/mac-trash
apple bin cli corbeille mac macos recycle rm shell terminal trash
Last synced: 11 months ago
JSON representation
🗑️ Zero-dependency macOS CLI tool to move files to the Trash
- Host: GitHub
- URL: https://github.com/johansatge/mac-trash
- Owner: johansatge
- License: mit
- Created: 2020-11-11T18:15:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T15:09:52.000Z (over 3 years ago)
- Last Synced: 2025-06-30T09:43:00.708Z (12 months ago)
- Topics: apple, bin, cli, corbeille, mac, macos, recycle, rm, shell, terminal, trash
- Language: JavaScript
- Homepage:
- Size: 1.04 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README

[](https://github.com/johansatge/mac-trash/releases)
[](https://www.pkgstats.com/pkg:mac-trash)
[](https://github.com/johansatge/mac-trash/commits/master)
[](https://github.com/johansatge/mac-trash/actions)
[](https://codecov.io/gh/johansatge/mac-trash)
[](https://packagephobia.com/result?p=mac-trash)
> Zero-dependency macOS CLI tool to move files to the Trash
---
* [Demo](#demo)
* [Installation](#installation)
* [Usage](#usage)
* [Options](#options)
* [Changelog](#changelog)
* [License](#license)
## Demo

## Installation
_This module needs Node `>=14`._
Install with [npm](https://www.npmjs.com/):
```bash
$ npm install mac-trash --global --production
```
## Usage
```bash
$ trash somefile.txt /some/other/file.txt
```
### Options
Show debug information:
```bash
$ trash --verbose /some/file.txt
```
Show contextual help:
```bash
$ trash --help
```
Show version:
```bash
$ trash --version
```
## Changelog
This project uses [semver](http://semver.org/).
| Version | Date | Notes |
| --- | --- | --- |
| `3.0.0` | 2023-01-12 | Drop Node 12 support |
| `2.0.0` | 2022-01-08 | Rework deletion method, update deps, update Node support (#1) |
| `1.0.1` | 2020-11-15 | Fix CLI initialization |
| `1.0.0` | 2020-11-15 | Initial version |
## License
This project is released under the [MIT License](license.md).