0.1.3-prebuild.3 • Published 1 year ago

@electron-prebuilds-preview/recycle-bin v0.1.3-prebuild.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.