Socket
Book a DemoInstallSign in
Socket

@tus/azure-store

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tus/azure-store

Azure blob storage for @tus/server

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
168
51.35%
Maintainers
3
Weekly downloads
 
Created
Source

@tus/azure-store

Azure Store based on the Append Blob Client Azure Blob AppendBlobClient.

Contents

Install

In Node.js >=20.19.0, install with npm:

npm install @tus/azure-store

Use

const {Server} = require('@tus/server')
const {AzureStore} = require('@tus/azure-store')

const server = new Server({
  path: '/files',
  datastore: new AzureStore({
      account: process.env.AZURE_ACCOUNT_ID,
      accountKey: process.env.AZURE_ACCOUNT_KEY,
      containerName: process.env.AZURE_CONTAINER_NAME,
  }),
})
// ...

API

This package exports AzureStore. There is no default export.

new AzureStore(options)

Creates a new azure store with options.

options.account

Azure account ID (string).

options.accountKey

Azure account key (string).

options.containerName

Azure storage container name (string).

options.cache

Provide your own cache solution for the metadata of uploads (KvStore) to reduce the calls to storage server. Default is (MemoryKvStore) which stores the data in memory.

Extensions

The tus protocol supports optional extensions. Below is a table of the supported extensions in @tus/azure-store. More will be added in the future releases.

Extension@tus/file-store
Creation
Creation With Upload
Expiration
Checksum
Termination
Concatenation

Types

This package is fully typed with TypeScript.

Compatibility

This package requires Node.js >=20.19.0.

Contribute

See contributing.md.

License

MIT © tus

FAQs

Package last updated on 25 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.