https://github.com/oznakn/recycle-bin
https://github.com/oznakn/recycle-bin
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oznakn/recycle-bin
- Owner: oznakn
- Created: 2023-01-14T22:04:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-14T22:54:54.000Z (almost 3 years ago)
- Last Synced: 2025-05-28T21:51:23.502Z (6 months ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## recycle-bin
Pure NAPI version of [trash](https://www.npmjs.com/package/trash).
### Install
```bash
npm install recycle-bin
```
### Usage
```javascript
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](https://github.com/sindresorhus/globby#globbing-patterns).
#### options
Type: `object`
##### glob
Type: `boolean`\
Default: `true`
Enable globs when matching file paths.