🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

hyperfs

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperfs

A content-addressable union file system that replicates and is build on top of fuse, leveldb and node

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

hyperfs

A content-addressable union file system that replicates and is build on top of fuse, leveldb, and node

npm install -g hyperfs

Notice: This is HIGHLY experimental

Usage

hyperfs create test # create a new fs volume
hyperfs mount test ./mnt # mount test on ./mnt

Now open a the folder ./mnt in your favorite file explorer and start making some changes.

Using the terminal:

mkdir mnt/test
echo hello world > mnt/test/hello.txt

Now quit your file explorer and go back to the terminal where you ran hyperfs mount .... Hit CTRL-C to unmount the volume.

Now lets snapshot that volume so we can replicate it. Snapshotting just makes a readonly layer of the changes you've made. You can use a snapshot as a base fs for a new volume

hyperfs snapshot test

This will print the snapshot hash when it succeeds. Now lets replicate the file system to another machine.

# assuming hyperfs is installed on example.com
hyperfs replicate ssh://user@example.com

Now ssh into example.com and run

hyperfs create test --node=<snapshot-hash-from-before>
hyperfs mount test mnt

Now if you enter ./mnt you'll see that its the volume from your local machine.

Help

hyperfs # prints help

License

MIT

FAQs

Package last updated on 22 May 2015

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