Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

random-access-web

RangerMauve60.6kMIT2.0.3

Chooses the fastest random access backend based on the user's browser

random, access, storage, web, browser

readme

random-access-web

Chooses the fastest random access backend based on the user's browser

npm install --save random-access-web
const RAW = require('random-access-web')

const storage = RAW('dats')

const dat = new DatJs({
  db: storage
})

Options:

  • name: The database name to use (if applicable)
  • storeName: The collection to use for the data (For indexedDB)
  • maxSize: The maximum size to allocate for Chrome file storage