Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

feat: dag-api direct support #171

Merged
merged 1 commit into from
May 25, 2017
Merged

feat: dag-api direct support #171

merged 1 commit into from
May 25, 2017

Conversation

daviddias
Copy link
Contributor

Hi @wanderer !

As promised, here you go, unixfs-engine riding on top of node.dag. You can use it today with your js-ipfs version by simply:

const node = new IPFS()
node.on('ready', () => {
  const ue = require('ipfs-unixfs-engine')
  const import = new ue.Importer(node.dag)
  // or
  const export = new ue.Exporter(<multihash>, node.dag)
})

@daviddias daviddias added the status/in-progress In progress label May 25, 2017
@daviddias daviddias force-pushed the feat/use-dag-api-directly branch from 5301e3a to adaeb37 Compare May 25, 2017 14:07
@daviddias daviddias merged commit 2a24301 into master May 25, 2017
@daviddias daviddias deleted the feat/use-dag-api-directly branch May 25, 2017 14:07
@daviddias daviddias removed the status/in-progress In progress label May 25, 2017
@wanderer
Copy link

whooooo! thanks @diasdavid

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants