npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

pear-runtime-legacy-storage

1.1.0

@mafintosh

npmSnykSocket
Downloads:319
$ npm install pear-runtime-legacy-storage
DailyWeeklyMonthlyYearly

pear-runtime-legacy-storage

Read app storage from the Pear platform hyperdb (read-only).

Installation

npm install pear-runtime-legacy-storage

Usage

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)
}