Next Phenomenal Microbrewery

    @k6-contrib/fields-azure
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    Azure Storage Filed

    import { AzureStorageConfig, azureStorageFile, azureStorageImage } from '@k6-contrib/fields-azure';
    import 'dotenv/config';
    
    const config: AzureStorageConfig = {
      azureStorageOptions: {
        account: process.env.AZURE_STORAGE_ACCOUNT_NAME,
        accessKey: process.env.AZURE_STORAGE_ACCESS_KEY,
        container: process.env.AZURE_STORAGE_CONTAINER,
      },
    };
    
    const Post = list({
      fields: {
        title: text({ validation: { isRequired: true } }),
        content: text(),
        image: azureStorageImage({ config }),
        file: azureStorageFile({ config }),
      },
    });

    Keywords

    none

    Install

    npm i @k6-contrib/fields-azure

    DownloadsWeekly Downloads

    68

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    126 kB

    Total Files

    33

    Last publish

    Collaborators

    • gautamsi