23 lines
450 B
Markdown
23 lines
450 B
Markdown
# @the-order/storage
|
|
|
|
Storage abstraction for S3/GCS with WORM mode support.
|
|
|
|
## Usage
|
|
|
|
```typescript
|
|
import { StorageClient, WORMStorage } from '@the-order/storage';
|
|
|
|
const storage = new StorageClient(config);
|
|
const wormStorage = new WORMStorage(config);
|
|
|
|
await storage.upload({ key: 'file.txt', content: 'Hello' });
|
|
```
|
|
|
|
## Features
|
|
|
|
- S3 and GCS support
|
|
- WORM (Write Once Read Many) mode
|
|
- Presigned URL generation
|
|
- Object lifecycle management
|
|
|