Utility library for building storage adapters in the OpenComponents (OC) ecosystem. Version 2.x provides shared utilities like hash computation, path manipulation, and caching helpers for OC storage backends (S3, Azure, local filesystem). Designed to reduce boilerplate across storage adapter packages. Requires Node.js 12+. Released as a dependency-focused utility, not a standalone adapter. Currently in maintenance mode for OC core compatibility. Differentiated by direct integration with OC's plugin container lifecycle.
npm install oc-storage-adapters-utilsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing and using computeHash and sanitizePath utilities to handle OC component storage paths.
Always verify hash algorithm compatibility with your storage backend.
Replace legacyHash calls with computeHash and adjust parameters if needed.
Use encodeURIComponent on path segments if working with S3 or Azure Blob Storage.
Change to named import: import { computeHash } from 'oc-storage-adapters-utils'Install peer dependency: npm install oc-storage-adapters