0.2.1 • Published 3 years ago
@personas/client v0.2.1
Personas.Space JS client library
This library is a wrapper for Persons Space's data APIs. It does not actually fetch or return data, it only returns the correct data endpoint for you to use to fetch the data.
This library is published to NPM at: https://www.npmjs.com/package/@personas/client.
Installation
Install using:
yarn add @personas/client
or
npm i @personas/client
Usage
const { get } = require('@personas/client');
const address = '0x...';
const { avatar, explorer } = get.url(address);
const imgComponent = () => (<img src={avatar.small} />);
const openProfileExplorer = () => window.open(explorer);
// ...
API Docs
See the Personas docs for more information.