Socket
Book a DemoInstallSign in
Socket

@telios/nebula-migrate

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telios/nebula-migrate

Migration tool for upgrading Nebula Drives between updates with breaking changes

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

nebula-migrate

Migration tool for upgrading Nebula drives between updates with breaking changes

Usage

await Migrate({ rootdir: __dirname, drivePath: '/drive', encryptionKey, keyPair })


const drive = new Drive(path.join(__dirname, '/drive'), null, {
  keyPair,
  encryptionKey,
  swarmOpts: {
    server: true,
    client: true
  }
})

await drive.ready() // Upgraded drive is now ready for use!


/**
 *  Existing drive is renamed to <drivePath>_old
 *  New drive replaces the original at <drivePath>
 * 
 *  Old drive persists in the event migration fails. 
 *  Feel free to decide if this old directory can be removed or not.
 * 
 *  Before:
 *  |__ root/
 *     |__ drive/
 * 
 *  After:
 *  |__root/
 *      |__ drive/
 *      |__ drive_old/
 * 
 * /

await Migrate({ rootdir, drivePath[,encryptionKey][,keyPair] })

Migrates an older version of nebula to the newer version.

  • rootdir: root directory that the drive resides in
  • drivePath: the relative path of the drive /drive
  • encryptionKey: Encryption key for migrating encrypted drives
  • keyPair: The original drive's keyPair

FAQs

Package last updated on 22 Nov 2022

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.