Skip to content

Instantly share code, notes, and snippets.

@andrewosh
Created July 29, 2019 09:39
Show Gist options
  • Save andrewosh/d71716e7a553829a2aee8b7cfd728ccb to your computer and use it in GitHub Desktop.
Save andrewosh/d71716e7a553829a2aee8b7cfd728ccb to your computer and use it in GitHub Desktop.
Split hyperdrive content and metadata
```js
const store = corestore(path => {
if (path.indexOf('default') === -1) return raf(`${contentDest}/${path}`)
return raf(`${metadataDest}/${path}`)
})
const drive = hyperdrive(store)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment