Skip to content

@arcmantle/chronicle / path-key

path-key

Functions

pathKeyOf()

pathKeyOf(segments): string

Defined in: path-key.ts:10

Generate a cache key from path segments.

Uses ASCII Unit Separator (0x1F) as delimiter, which cannot appear in normal string keys, ensuring unambiguous path separation.

Parameters

segments

string[]

Path segments

Returns

string

Cache key string

Released under the Apache-2.0 License.