Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/phuochungus/supabase-convenient-storage
- Owner: phuochungus
- License: mit
- Created: 2023-11-19T15:28:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-20T11:11:11.000Z (about 1 year ago)
- Last Synced: 2023-11-20T16:15:16.744Z (about 1 year ago)
- Topics: npm-package, supabase-js
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/supabase-convenient-storage
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```