@nexys/ipfs-infuria-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @nexys/ipfs-infuria-client

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

8.96 kB

Total Files

8

Last publish

Collaborators

  • nexys