tahoe-lafs-client
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-beta.1 • Public • Published

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.

Package Sidebar

Install

npm i tahoe-lafs-client

Weekly Downloads

1

Version

2.0.0-beta.1

License

ISC

Unpacked Size

5.37 kB

Total Files

5

Last publish

Collaborators

  • huffmantree