Socket
Book a DemoInstallSign in
Socket

@hyperspace/migration-tool

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperspace/migration-tool

A tool for migrating from hyperdrive-daemon to hyperspace.

latest
Source
npmnpm
Version
1.2.1
Version published
Weekly downloads
16
-30.43%
Maintainers
2
Weekly downloads
 
Created
Source

@hyperspace/migration-tool

A tool for migrating from the Hyperdrive daemon to Hyperspace.

This tool does a few things:

  • It moves all your stored hypercores from ~/.hyperdrive/storage/cores to ~/.hyperspace/storage.
  • It copies all network configurations (the cores you're seeding) from the daemon's Level instance (at ~/.hyperdrive/storage/db) into Hyperspace's config trie.
  • It copies your FUSE root drive key into a separate config file that will be loaded by @hyperspace/hyperdrive.

Installation

npm i @hyperspace/migration-tool -g

Usage

This migration tool is currently bundled with Hyperspace -- it's run by default when Hyperspace is first started, so you shouldn't have to run this manually. After a few months or so, we'll be removing it.

If you'd like to do the migration manually anyway, you can install this module globally (npm i @hyperspace/migration-tool -g) and use the included bin.js CLI tool.

As a module

The tool exports two functions, migrate and isMigrated. await migrate() will perform the migration.

From the CLI

./bin.js will perform the migration. It assumes that your Hyperdrive daemon storage is stored in ~/.hyperdrive and that your Hyperspace storage directory is going to be ~/.hyperspace.

License

MIT

Keywords

hyperspace

FAQs

Package last updated on 23 Sep 2020

Did you know?

Socket

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