2.0.0-beta.1 • Published 3 years ago

tahoe-lafs-client v2.0.0-beta.1

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

tahoe-lafs-client

A javascript client for the Tahoe-LAFS Web API written in Typescript.

Note: The client has been tested with Tahoe-LAFS v1.12.1

Getting Started

Requirements

Installation

npm install tahoe-lafs-client --save

Tests

Please use npm test to ensure the client is working as well as your Tahoe node.

Usage

Javascript

// Import the module
const TahoeLAFSClient = require('tahoe-lafs-client');

// Create a new client
const params = {
  hostname: 'localhost',
  port: 3456
};

const client = new TahoeLAFSClient(params);

console.log(client);
/**
 * TahoeLAFSClient {
 *  hostname: 'localhost',
 *  port: 3456,
 *  url: 'http://localhost:3456/uri'
 * }
 */

Typescript

// Import the module
import TahoeLAFSClient from 'tahoe-lafs-client';

// Create a new client
const params = {
  hostname: 'localhost',
  port: 3456
};

const client = new TahoeLAFSClient(params);

console.log(client);
/**
 * TahoeLAFSClient {
 *  hostname: 'localhost',
 *  port: 3456,
 *  url: 'http://localhost:3456/uri'
 * }
 */

Documentation

The documentation is available in the doc folder.

2.0.0-beta.1

3 years ago

2.0.0-beta.0

3 years ago

1.5.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago