Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

egomobile/node-azure-storage

Repository files navigation

npm last build PRs Welcome

@egomobile/azure-storage

Classes and tools, that help connecting to Azure Storag(s), written in TypeScript.

Install

Execute the following command from your project folder, where your package.json file is stored:

npm install --save @egomobile/azure-storage

Usage

import {
  getBlobServiceClient,
  getContainerClient,
} from "@egomobile/azure-storage";

// setup the following environment variables:
//
// - AZURE_STORAGE_CONNECTION_1=my-connection
// - AZURE_STORAGE_CONNECTION_1_CONTAINER=my_container
// - AZURE_STORAGE_CONNECTION_1_URL=<YOUR-CONNECTION-URL>

// get clients of 'my-connection'
const blobClient = getBlobServiceClient("my-connection");
const containerClient = getContainerClient("my-connection");

Documentation

The API documentation can be found here.