Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 332 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 332 Bytes

Origin IPFS

Convenience methods for getting and setting data in IPFS

Usage

import { get, post } from '@origin/ipfs'

const ipfsHash = await post("https://ipfs.originprotocol.com", { my: "data" })
console.log(ipfsHash)

const retrieved = await get("https://ipfs.originprotocol.com", ipfsHash)
console.log(retrieved)