# @nielse63/trash

> Move files to trash (instead of rm -rf)

Latest version **1.3.0** (published 2025-04-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nielse63/trash
pnpm add @nielse63/trash
yarn add @nielse63/trash
bun add @nielse63/trash
```

Provides the command `trash`.

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2025-04-28 |
| First published | 2023-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Erik Nielsen |
| Maintainers | nielse63 |
| Keywords | trash, cli, rimraf, helpers, utils, utility, utilities |

## Links

- npm: https://www.npmjs.com/package/@nielse63/trash
- Repository: https://github.com/nielse63/node-scripts
- Homepage: https://github.com/nielse63/node-scripts/tree/main/packages/trash#readme
- Issues: https://github.com/nielse63/node-scripts/issues
- npm.io page: https://npm.io/package/@nielse63/trash

## Dependencies (4)

- [npmlog](https://npm.io/package/npmlog.md) ^7.0.1
- [commander](https://npm.io/package/commander.md) ^11.1.0
- [fast-glob](https://npm.io/package/fast-glob.md) ^3.3.3
- [xdg-trashdir](https://npm.io/package/xdg-trashdir.md) ^3.1.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.3.0 (latest) — 2025-04-28
- 1.2.0 — 2025-04-20
- 1.1.9 — 2024-11-28
- 1.1.8 — 2024-09-28
- 1.1.7 — 2024-09-26
- 1.1.6 — 2024-09-26
- 1.1.5 — 2024-09-26
- 1.1.4 — 2024-09-04
- 1.1.3 — 2024-09-04
- 1.1.2 — 2024-01-02
- 1.1.1 — 2023-08-10

## README

<!-- THIS FILE HAS BEEN AUTOGENERATED - DO NOT UPDATE IT DIRECTLY -->
<!-- EDIT .bin/templates/README.md.hbs INSTEAD -->

# node-scripts

![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/nielse63/node-scripts/node.js.yml?style=for-the-badge) ![Depfu](https://img.shields.io/depfu/dependencies/github/nielse63/node-scripts?style=for-the-badge) ![Codecov](https://img.shields.io/codecov/c/github/nielse63/node-scripts?style=for-the-badge) ![GitHub issues by-label](https://img.shields.io/github/issues-raw/nielse63/node-scripts/bug?label=open%20issues&style=for-the-badge) ![GitHub](https://img.shields.io/github/license/nielse63/node-scripts?style=for-the-badge)

> Collection of useful node scripts and utilities

## Packages

| Package | Description |
| --- | --- |
| [@nielse63/eslint-config](https://github.com/nielse63/node-scripts/blob/main/packages/eslint-config) | Shared eslint-config |
| [@nielse63/exec](https://github.com/nielse63/node-scripts/blob/main/packages/exec) | Run child process asynchronously |
| [@nielse63/generate-tests](https://github.com/nielse63/node-scripts/blob/main/packages/generate-tests) | Automatically generate jest specs for uncovered source files |
| [@nielse63/is-numeric](https://github.com/nielse63/node-scripts/blob/main/packages/is-numeric) | Determines if a given value is a number (even if it's a string) |
| [@nielse63/prettier-config](https://github.com/nielse63/node-scripts/blob/main/packages/prettier-config) | Shared prettier config |
| [@nielse63/reset](https://github.com/nielse63/node-scripts/blob/main/packages/reset) | Quickly clean your project of unwanted files and folders |
| [@nielse63/trash](https://github.com/nielse63/node-scripts/blob/main/packages/trash) | Move files to trash (instead of rm -rf) |
| [@nielse63/tsconfig](https://github.com/nielse63/node-scripts/blob/main/packages/tsconfig) | Shared TypeScript config for basic projects |
| [@nielse63/tsconfig-eslint](https://github.com/nielse63/node-scripts/blob/main/packages/tsconfig-eslint) | Shareable TypeScript config to be used with ESLint |

## Usage

Install the individual package or packages you want to use in your project. See the [packages](#packages) for individual usage and documentation.

## Contributing

### Setting Up

```bash
git clone https://github.com/nielse63/node-scripts.git
cd node-scripts
nvm use
npm ci

# create a new branch
git checkout scratch/my-awesome-feature
```

### Development

Make your desired changes and run the tests:

```bash
npm run build
npm run lint
npm test
```

The commit and push the changes to your branch and open a new pull request.

### Releasing

```bash
npm run release
```

## Roadmap

See GitHub issues: [https://github.com/nielse63/node-scripts/issues](https://github.com/nielse63/node-scripts/issues).

---
_Source: https://npm.io/package/@nielse63/trash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
