nest-multi-storage 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# nest-multi-storage
|
|
2
2
|
|
|
3
3
|
A flexible multi-driver storage module for NestJS that supports **Amazon S3**, **Azure Blob Storage**, and **Local File System** with a unified API.
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ A flexible multi-driver storage module for NestJS that supports **Amazon S3**, *
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install
|
|
17
|
+
npm install nest-multi-storage
|
|
18
18
|
|
|
19
19
|
# Peer dependencies
|
|
20
20
|
npm install @nestjs/common @nestjs/core
|
|
@@ -27,7 +27,7 @@ npm install @nestjs/common @nestjs/core
|
|
|
27
27
|
```typescript
|
|
28
28
|
// app.module.ts
|
|
29
29
|
import { Module } from '@nestjs/common';
|
|
30
|
-
import { StorageModule } from '
|
|
30
|
+
import { StorageModule } from 'nest-multi-storage';
|
|
31
31
|
|
|
32
32
|
@Module({
|
|
33
33
|
imports: [
|
|
@@ -64,7 +64,7 @@ export class AppModule {}
|
|
|
64
64
|
|
|
65
65
|
```typescript
|
|
66
66
|
import { Injectable } from '@nestjs/common';
|
|
67
|
-
import { StorageService } from '
|
|
67
|
+
import { StorageService } from 'nest-multi-storage';
|
|
68
68
|
|
|
69
69
|
@Injectable()
|
|
70
70
|
export class FileService {
|
|
@@ -113,7 +113,7 @@ export class FileService {
|
|
|
113
113
|
|
|
114
114
|
```typescript
|
|
115
115
|
import { ConfigModule, ConfigService } from '@nestjs/config';
|
|
116
|
-
import { StorageModule } from '
|
|
116
|
+
import { StorageModule } from 'nest-multi-storage';
|
|
117
117
|
|
|
118
118
|
@Module({
|
|
119
119
|
imports: [
|
package/package.json
CHANGED