https://github.com/drivly/bucket.do
R2 Utilities including Import, Export, etc
https://github.com/drivly/bucket.do
Last synced: 4 months ago
JSON representation
R2 Utilities including Import, Export, etc
- Host: GitHub
- URL: https://github.com/drivly/bucket.do
- Owner: drivly
- License: mit
- Created: 2022-09-23T08:19:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-04T18:33:58.000Z (over 2 years ago)
- Last Synced: 2025-02-16T15:16:54.054Z (4 months ago)
- Language: JavaScript
- Homepage: https://bucket.do
- Size: 307 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bucket.do
R2 Utilities including Import, Export, etc### Specification
#### Writing a file
`/write/:urlToImport`Imports a URL into the R2 bucket, uses the URL path including hostname as the storage key. Can provide `?filename` to change the filename of the final object.
#### Reading a file
`/read/:urlPath`Reads a file, including all of the original headers when imported and Content-Type.
#### List all files in bucket
`/list/:prefix`Lists all objects stored within the bucket with a prefix option to filter results. Pagination supported by `?cursor`.