@jsvfs/adapter-azure-blob
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

JSVFS Adapter: Azure Blob

The official adapter for @jsvfs/core using Microsoft's @azure/storage-blob module with block blobs as the back-end.

Allows a developer to set either a storage account or a blob container as the root of the adapter. When the root is a storage account, the first name in a path will be parsed as the container name, with the remaining part of the path considered the blob name. When a container is the root, all file paths are considered a blob name.

Additionally, snapshots and flushes can be limited by setting one or more globs in the include option. This limits any potentially destructive behavior to just those blob names which match the given patterns. Flushes are disabled by default and must be enabled by intentionally setting flushEnabled to true.

If you're looking to create new adapters, please use @jsvfs/types and look to @jsvfs/adapter-node-fs as an example.

Supported Features

  • Async commits
  • Pass-through reads
  • Snapshots
  • Flush
  • Journaling

Installation

Get it from npm:

npm install --save @jsvfs/adapter-azure-blob

Usage

This adapter requires either an account connection string or the storage account and storage key in order to work.

import { AzureBlobAdapter } from '@jsvfs/adapter-azure-blob'

const adapter = new AzureBlobAdapter({ access: { connectionString: process.env.MY_CONNECTION_STRING } })

Documentation

Complete documentation of jsvfs can be found at the jsvfs site.

Package Sidebar

Install

npm i @jsvfs/adapter-azure-blob

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

42.5 kB

Total Files

17

Last publish

Collaborators

  • aaron.nuclearfamily