pear-runtime-legacy-storage
v1.0.0
Published
Read app storage from the Pear platform `hyperdb` (read-only).
Readme
pear-runtime-legacy-storage
Read app storage from the Pear platform hyperdb (read-only).
Installation
npm install pear-runtime-legacy-storageUsage
const getAppStorage = require('pear-runtime-legacy-storage')
const storage = await getAppStorage('pear://my-app-key')
if (!storage) {
console.log('Not found or failed to open DB')
} else {
console.log(storage)
}