Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Download and process META-ID metadata signature from Swarm
.then(rawMetadata =>
Object.keys(rawMetadata).map(path => ({
[`${path}`]: JSON.parse(rawMetadata[path].data.toString())
.reduce((o, v) => Object.assign({}, o, v), {})
.then(metadata => console.log(metadata))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.