Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/johansatge/mac-trash
- Owner: johansatge
- License: mit
- Created: 2020-11-11T18:15:50.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T15:09:52.000Z (almost 2 years ago)
- Last Synced: 2024-04-26T18:21:46.325Z (7 months ago)
- Topics: apple, bin, cli, corbeille, mac, macos, recycle, rm, shell, terminal, trash
- Language: JavaScript
- Homepage:
- Size: 1.04 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
[![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
## 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).