@coboxcoop/drive

1.0.5-alpha.1 • Public • Published

drive

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.

drive wraps KappaDrive with some async functions and handlers for easy use in the API.

Install

npm install @coboxcoop/drive

Usage

See tests for usage.

API

const Drive = require('@coboxcoop/drive')

var drive = Drive(opts)

Returns a drive object. All opts are passed down to kappa-drive.

drive.ready(callback)

callback is called when the drive is ready to use.

drive.mount

mounts a kappa-drive to a file system location using fuse-native

drive.unmount

unmounts the drive

drive.isMounted

boolean for whether drive is currently mounted

drive.ls

returns a list of file stat objects

drive.size

outputs the total bytes used by all hyperdrives that compose the kappa-drive

Contributing

PRs accepted.

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

License

AGPL-3.0-or-later

Package Sidebar

Install

npm i @coboxcoop/drive

Homepage

cobox.cloud

Weekly Downloads

1

Version

1.0.5-alpha.1

License

AGPL-3.0-or-later

Unpacked Size

10.9 kB

Total Files

5

Last publish

Collaborators

  • kyphae
  • ameba23