0.1.0 • Published 1 year ago

ipfs-in-memory-repo v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

js-ipfs-in-memory-repo

A small utility library to create an offline, all in-memory IPFS repo in Javascript.

The returned ipfs object should be compatible with the core JS IPFS API, for FILES, DAG, and OBJECT Apis, and possibly others.

import { createInMemoryIPFS } from "ipfs-in-memory-repo";

...

const ipfs = await createInMemoryIPFS();

An optional name can be passed to createInMemoryIPFS(), which will be used to prevent duplicate repos with same name. By default, a random name is chosen.