0.0.2 • Published 3 years ago

@nexys/ipfs-infuria-client v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

client ipfs-infuria

npm version Build and Test Package Publish Code style Bundlephobia

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 };
};