Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/phuochungus/supabase-convenient-storage

This package is a wrapper around Supabase storage-js
https://github.com/phuochungus/supabase-convenient-storage

npm-package supabase-js

Last synced: 4 days ago
JSON representation

This package is a wrapper around Supabase storage-js

Awesome Lists containing this project

README

        

# supabase-convenient-storage

This package is a wrapper around Supabase storage-js

To install, run:
```
$ npm i supabase-convenient-storage
```

To use, first create a class

```
let storage: CStorage = new CStorage(supabaseClient);
```

Main function:

### delete recursively (directory and all files inside):
```
storage.delete(["/dir"])
# delete all files inside /dir in the current bucket
```
### List all files in a directory
```
storage.listAllFiles("/dir")
# result will be no first-dash path
```