@flystorage/azure-storage-blob
v1.2.0
Published
<img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />
Downloads
9,533
Maintainers
Readme
Flystorage adapter for Azure Storage Blob
This package contains the Flystorage adapter for Azure Storage Blob
Installation
Install all the required packages
npm install --save @flystorage/file-storage @flystorage/azure-storage-blob @azure/storage-blobUsage
import {FileStorage} from '@flystorage/file-storage';
import {AzureStorageBlobStorageAdapter} from '@flystorage/azure-storage-blob';
const blobService = BlobServiceClient.fromConnectionString(process.env.AZURE_DSN!);
const container = blobService.getContainerClient('flysystem');
const adapter = new AzureStorageBlobStorageAdapter(container);
const storage = new FileStorage(adapter);⚠️ Always use the FileStorage, it is essential for security and a good developer experience. Do not use the adapter directly.
