0.1.2 • Published 29 days ago

@flystorage/azure-storage-blob v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
29 days ago

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-blob

Usage

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.