Class EncodingPathStorage<T>

Transforms the keys into relative paths, to be used by the source storage. Encodes the input key with base64 encoding, to make sure there are no invalid or special path characters, and prepends it with the stored relative path. This can be useful to eventually generate URLs in specific containers without having to worry about cleaning the input keys.

Type Parameters

  • T

Hierarchy

Implements

Constructors

Properties

basePath: string
source: KeyValueStorage<string, T>

Methods