Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 16 days ago
JSON representation

🗑️ Zero-dependency macOS CLI tool to move files to the Trash

Awesome Lists containing this project

README

        

mac-trash icon

[![Version](https://img.shields.io/npm/v/mac-trash.svg)](https://github.com/johansatge/mac-trash/releases)
[![Downloads](https://img.shields.io/npm/dm/mac-trash.svg)](https://www.pkgstats.com/pkg:mac-trash)
[![Last commit](https://badgen.net/github/last-commit/johansatge/mac-trash)](https://github.com/johansatge/mac-trash/commits/master)
[![Test](https://github.com/johansatge/mac-trash/actions/workflows/test.yml/badge.svg)](https://github.com/johansatge/mac-trash/actions)
[![Codecov](https://codecov.io/gh/johansatge/mac-trash/branch/master/graph/badge.svg?token=Q9TTUjGPW5)](https://codecov.io/gh/johansatge/mac-trash)
[![Install size](https://badgen.net/packagephobia/install/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

mac-trash demo in the macOS Terminal

## 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).