ipfs-demo

1.0.10 • Public • Published

IPFS implementations

const {create}= require('ipfs-http-client')
const ipfsClient = async () =>{
  const options ={
      host:'ipfs.infura.io',
      port:5001,
      protocol:'https',
      
  }
  const ipfs = await create(options);
  return ipfs;

}

function expression implementation (IIF)


( async function(){
   
const addText = await ipfsClient();
const storeResult = await addText.add('npm package manager')
console.log(storeResult)

})()

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.10
    0
    • latest

Version History

Package Sidebar

Install

npm i ipfs-demo

Weekly Downloads

7

Version

1.0.10

License

ISC

Unpacked Size

2.84 kB

Total Files

3

Last publish

Collaborators

  • sharvanmodi