/recycle-bin

Primary LanguageJavaScript

recycle-bin

Pure NAPI version of trash.

Install

npm install recycle-bin

Usage

import trash from 'recycle-bin';

await trash(['*.png', '!rainbow.png']);

API

trash(input, options?)

Returns a Promise.

input

Type: string | string[]

Accepts paths and glob patterns.

options

Type: object

glob

Type: boolean
Default: true

Enable globs when matching file paths.