Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ipfs/mod.ts>IPFS

🦕🟦 Lightweight Deno HTTP client library for IPFS
Go to Latest
class IPFS
implements IPFSClient
import { IPFS } from "https://deno.land/x/ipfs@0.4.0-wip.3/mod.ts";

Constructors

new
IPFS(unnamed 0: { apiUrl?: string; headers?: HeadersInit; apiPath?: string; })

Properties

bitswap: BitSwap
block: Block
files: Files
optional
headers: HeadersInit
swarm: Swarm
url: string

Methods

add(input: BodyInit, options?: Partial<{ cidVersion: string; progress: boolean; wrapWithDirectory: boolean; silent: boolean; trickle: boolean; quiet: boolean; quieter: boolean; hashAlg: string; pin: string; onlyHash: boolean; chunker: any; rawLeaves: boolean; inline: boolean; inlineLimit: number; nocopy: boolean; }> & Options)
addFromURL(url: string, options?: Options)
cat(cid: string, options?: Options): Promise<Response>
id(options?: Options)
ls(path: string, options?: Options)
ping(path: string, options?: Options): Promise<Response>
resolve(cid: string, options?: Options): Promise<string>
version(options?: Options)