Javascript SDK for interacting with Textile nodes
- JavaScript 100%
|
|
||
|---|---|---|
| core | ||
| docs/textile-js-sdk/0.1.0 | ||
| e2e | ||
| examples | ||
| helpers | ||
| modules | ||
| test | ||
| .eslintignore | ||
| .eslintrc.json | ||
| .gitignore | ||
| .tern-config | ||
| index.js | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
textile-js-sdk
Javascript SDK for interacting with Textile nodes. API is very unstable at the moment. Anything is subject to change.
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
- Add to npm
- Add docs to github pages