1.0.5-alpha.1 • Published 2 years ago

@coboxcoop/drive v1.0.5-alpha.1

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
gitlab
Last release
2 years ago

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