Creates the StoragePlugin.
Registers an IStorage under CAPABILITIES.STORAGE. The default provider is 'memory' (zero dependency, every runtime).
IStorage
CAPABILITIES.STORAGE
'memory'
Optional
Plugin configuration
The plugin instance
import { StoragePlugin } from '@setu-ts/storage-plugin';// In-memory (default)app.register(StoragePlugin());// AWS S3app.register(StoragePlugin({ provider: 's3', options: { bucket: 'my-bucket', region: 'us-east-1' },})); Copy
import { StoragePlugin } from '@setu-ts/storage-plugin';// In-memory (default)app.register(StoragePlugin());// AWS S3app.register(StoragePlugin({ provider: 's3', options: { bucket: 'my-bucket', region: 'us-east-1' },}));
Creates the StoragePlugin.
Registers an
IStorageunderCAPABILITIES.STORAGE. The default provider is'memory'(zero dependency, every runtime).