kappa-drive-mount

1.2.0 • Public • Published

kappa-drive-mount

standard-readme compliant

Table of Contents

About

CoBox is an encrypted p2p file system and distributed back-up tool. README provides a map of the project.

kappa-drive-mount enables you to mount a kappa-drive with hyperdrive-fuse.

Install

TODO

Usage

This will mount a kappa-drive for 3 seconds, and then unmount it.

const KappaDrive = require('kappa-drive')
const mount = require('./')
 
const mountdir = './mnt'
const storage = './drive'
const drive = KappaDrive(storage)
 
mount(drive, mountdir, (err, unmount) => {
  if (err) return console.error(err)
 
  setTimeout(() => {
    unmount()
  }, 3000)
})

API

const mount = require('kappa-drive-mount')
mount(drive, destination, [options,] callback)

mount a kappa-drive, drive at path destination. options, if given, will be passed to hyperdrive-fuse.

callback will be given arguments (err, unmount). unmount is a function which can be used to unmount the drive. The drive can also be unmounted by sending the 'SIGINT' event (pressing Ctrl + C).

Contributing

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

TODO

Dependencies (5)

Dev Dependencies (7)

Package Sidebar

Install

npm i kappa-drive-mount

Weekly Downloads

2

Version

1.2.0

License

AGPL-3.0-only

Unpacked Size

64.8 kB

Total Files

7

Last publish

Collaborators

  • ameba23
  • kyphae