@nexys/ipfs-infura-client
v0.0.4
Published
[](https://www.npmjs.com/package/@nexys/ipfs-infura-client) [](http
Downloads
13
Readme
client ipfs-infura
Get started
import Client from '@nexys/ipfs-infura-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 };
};