oznakn / recycle-bin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:JavaScript 49.9%Language:Python 21.0%Language:C++ 18.3%Language:Objective-C++ 9.3%Language:C 1.6%