1.0.0-alpha.7 • Published 3 years ago

@telios/nebula-client v1.0.0-alpha.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

nebula-client

Build Status

Standalone Nebula RPC client

npm install @telios/nebula-client

Usage

const NebulaClient = require('@telios/nebula-client')
const client = new NebulaClient('/tmp/test.sock')

client.saveIncMailMsg('Message content').then(data => {
  // success!
})

API

client.saveIncMailMsg(message)

client.unlinkMailMsg(fileName)

client.mountDrive({ name, driveKey, keyPair, writable })

client.addPeer({ driveKey, diffKey })

client.removePeer({ driveKey, diffKey })

client.destroyDrive(driveKey)

client.closeDrive(driveKey)