Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @uprtcl/ipfs-provider with all npm packages installed. Try it out:

var ipfsProvider = require("@uprtcl/ipfs-provider")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@uprtcl/ipfs-provider v0.0.7-alpha.70

_Prtcl provider wrappers around ipfs-http-client

@uprtcl/ipfs-provider

This node package includes basic _Prtcl provider wrappers around ipfs-http-client. These services include standard funcionality like a retry mechanism, or a ready() function to wait for them to be ready.

Documentation

Visit our documentation site.

Install

npm install @uprtcl/ipfs-provider

Usage

Import the appropriate connection you would like to use, and make a new instance of it by passing its configuration:

import { IpfsStore } from '@uprtcl/ipfs-provider';

const ipfsConfig = { host: 'ipfs.infura.io', port: 5001, protocol: 'https' };
const ipfsStore = new IpfsStore(ipfsConfig);

await ipfsStore.ready();
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free