Socket
Socket
Sign inDemoInstall

hypercore-default-storage

Package Overview
Dependencies
9
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hypercore-default-storage

Default storage provider used by Hypercore


Version published
Weekly downloads
193
decreased by-21.54%
Maintainers
1
Install size
1.15 MB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 10 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc