recycle-bin
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i recycle-bin

Weekly Downloads

36

Version

0.1.3

License

MIT

Unpacked Size

9.52 kB

Total Files

10

Last publish

Collaborators

  • oznakn