Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tus/azure-store

Package Overview
Dependencies
Maintainers
0
Versions
3
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

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@tus/azure-store

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

Contents

Install

In Node.js (16.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 16.0+.

Contribute

See contributing.md.

License

MIT © tus

FAQs

Package last updated on 19 Nov 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc