azure-storage-file-share-ts

Solid

Azure File Share JavaScript/TypeScript SDK (@azure/storage-file-share) for SMB file share operations. Use for creating shares, managing directories, uploading/downloading files, and handling file metadata. Supports Azure Files SMB protocol scenarios. Triggers: "file share", "@azure/storage-file-share", "ShareServiceClient", "ShareClient", "SMB", "Azure Files".

Data & Documents 2,541 stars 295 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# @azure/storage-file-share (TypeScript/JavaScript) SDK for Azure File Share operations — SMB file shares, directories, and file operations. ## Installation ```bash npm install @azure/storage-file-share @azure/identity ``` **Current Version**: 12.x **Node.js**: >= 18.0.0 ## Environment Variables ```bash AZURE_STORAGE_ACCOUNT_NAME=<account-name> AZURE_STORAGE_ACCOUNT_KEY=<account-key> # OR connection string AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=... ``` ## Authentication ### Connection String (Simplest) ```typescript import { ShareServiceClient } from "@azure/storage-file-share"; const client = ShareServiceClient.fromConnectionString( process.env.AZURE_STORAGE_CONNECTION_STRING! ); ``` ### StorageSharedKeyCredential (Node.js only) ```typescript import { ShareServiceClient, StorageSharedKeyCredential } from "@azure/storage-file-share"; const accountName = process.env.AZURE_STORAGE_ACCOUNT_NAME!; const accountKey = process.env.AZURE_STORAGE_ACCOUNT_KEY!; const sharedKeyCredential = new StorageSharedKeyCredential(accountName, accountKey); const client = new ShareServiceClient( `https://${accountName}.file.core.windows.net`, sharedKeyCredential ); ``` ### DefaultAzureCredential ```typescript import { ShareServiceClient } from "@azure/storage-file-share"; import { DefaultAzureCredential } from "@azure/identity"; const accountName = process.env.AZURE_STORAGE_ACCOUNT_NAME!; const client = new ShareServiceClient( `https://...

Details

Author
microsoft
Repository
microsoft/skills
Created
4 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category