@diory/client-js
v0.4.4-rc1
Published
## Install
Readme
Diosphere
Install
npm install @diory/client-js
# or
yarn add @diory/client-jsUsage
const dataClients = [localClient, S3Client, ...]
const dioryClient = new DioryClient(clients)
const diograph = dioryClient.getDiograph(address)
console.log('My Diory', diograph.toObject())Methods
dioryClient.addDiograph(address, diograph)
dioryClient.getDiograph(address)
dioryClient.fetchDiograph(address)
dioryClient.generateDiograph(address)
dioryClient.saveDiograph(address)Development
Compile typescript in real time to /dist folder:
yarn build-watchRun unit tests in the background:
yarn test-watch