Skip to content

mrexox/trash-rs

Repository files navigation

trash-rs

This is simple wrapper for trash Rust library.

Installation

yarn add trash-rs

npm install trash-sh

Usage

import { trash, trashAll } from 'trash-rs';

trash('/home/user/file.txt');
trashAll(['/Users/user/file.txt', '/Users/user/folder/']);

About

NPM package for moving files to system trash with bindings on Rust's `trash` crate

Resources

Stars

Watchers

Forks

Packages

No packages published