hypercore-default-storage
v1.1.1hypercore-default-storage
Default storage provider used by Hypercore
npm install hypercore-default-storage
Usage
const defaultStorage = require('hypercore-default-storage')
const feed = hypercore(name => defaultStorage(name, { directory: 'feed' }))
API
storage = defaultStorage(name, [options])
Makes a new random-access-storage provider using the random-access-file module.
If making a bitfield file that file will be locked to avoid parallel writers.
License
MIT
npm i hypercore-default-storage
Metadata
- MIT
- Whatever
- Mathias Buus
- released 3/10/2021