0.0.8 • Published 3 years ago

ipfsio v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

ipfsio

a simple library to write to nft.storage

const { I } = require('ipfsio')
const i = new I(<nft.storage key>)
await i.url("https://imgur.com/sdfsdf")        // Import file from HTTP URL
await i.object({                               // Write object
  name: "gm",
  description: "hello world"
})
await i.buffer(Buffer.from("fdadsfadsfasdf"))  // Write buffer
await i.file(filePath)                         // Write file at path
await i.folder(folderPath)                     // Write folder at path
0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago