0.0.2 • Published 3 years ago
@nexys/ipfs-infuria-client v0.0.2
client ipfs-infuria
Get started
import Client from '@nexys/ipfs-infuria-client';
const url = process.env.IPFS_URL || '';
const username = process.env.IPFS_CLIENT || '';
const password = process.env.IPFS_SECRET || '';
const client = new Client({ username, password, url });
export const main = async () => {
const { cid } = await client.set('hello world');
const r = await client.get(cid);
return { cid, r };
};
0.0.2
3 years ago