Read-only access to app storage from the Pear platform's internal hyperdb database, now part of the legacy runtime. Version 1.3.1 provides a simple async function to retrieve stored data by app key. It is not actively developed and is intended for migration off the deprecated storage layer. Alternatives include 'pear-runtime' for the current storage API. The package has no dependencies and is ESM-only.
npm install pear-runtime-legacy-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to read app storage by key using the default async function.
Migrate to pear-runtime and use its storage methods.
Ensure the app key is a string starting with 'pear://'. Validate before calling.
Use import statement or dynamic import().
Add a local .d.ts file: declare module 'pear-runtime-legacy-storage' { const getAppStorage: (key: string) => Promise<any>; export default getAppStorage; }Change to import statement: import getAppStorage from 'pear-runtime-legacy-storage'
Ensure the argument is a valid string, e.g., 'pear://my-app-key'.
Use default import: import getAppStorage from 'pear-runtime-legacy-storage'
No dependency data recorded yet.