hypercore-default-storage

1.1.1 • Public • Published

hypercore-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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    1,960
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    1,960
  • 1.1.0
    20
  • 1.0.2
    10
  • 1.0.1
    1
  • 1.0.0
    2

Package Sidebar

Install

npm i hypercore-default-storage

Weekly Downloads

298

Version

1.1.1

License

MIT

Unpacked Size

3.03 kB

Total Files

4

Last publish

Collaborators

  • mafintosh