Pure NAPI version of trash.
npm install recycle-bin
import trash from 'recycle-bin';
await trash(['*.png', '!rainbow.png']);
Returns a Promise
.
Type: string | string[]
Accepts paths and glob patterns.
Type: object
Type: boolean
Default: true
Enable globs when matching file paths.