Home

textile-js-sdk 0.1.0

textile-js-sdk

Javascript SDK for interacting with Textile nodes. API is very unstable at the moment. Anything is subject to change.

Detailed API Documentation

Installation

From npm

npm install textile-js-sdk

From Source

# Clone the repo
git clone github.com/robbynshaw/textile-js-sdk
cd textile-js-sdk
npm install

Getting started

const { Textile } = require("textile-js-sdk");

const textile = new Textile();
const peerid = await textile.peer.get();
console.log("PeerID", peerid);

Development

# Run all the tests
npm test

# Linting
npm run lint

# Build the docs
npm run build-docs

# See package.json for other scripts

Roadmap

  • [x] Add to npm
  • [x] Add docs to github pages