Javascript SDK for interacting with Textile nodes. API is very unstable at the moment. Anything is subject to change.
npm install textile-js-sdk
# Clone the repo
git clone github.com/robbynshaw/textile-js-sdk
cd textile-js-sdk
npm install
const { Textile } = require("textile-js-sdk");
const textile = new Textile();
const peerid = await textile.peer.get();
console.log("PeerID", peerid);
# Run all the tests
npm test
# Linting
npm run lint
# Build the docs
npm run build-docs
# See package.json for other scripts
- Add to npm
- Add docs to github pages