Skip to content

Commit

Permalink
docs: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
niinpatel committed Mar 22, 2019
1 parent bd83027 commit 461c961
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions examples/mfs-example.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
'use strict'

var ipfsBlobStore = require('../index.js')
var store = ipfsBlobStore().mfs
var ipfsBlobStore = require('../src')

/*
process.stdin.pipe(store.createWriteStream('test/2/3/4', function (err, metadata) {
if (err) {
// console.log(err)
}
ipfsBlobStore().then(store => {
/*
process.stdin.pipe(store.createWriteStream('test/2/3/4', function (err, metadata) {
if (err) {
// console.log(err)
}
console.log(metadata)
}))
*/

store.createReadStream('test/2/3/4').pipe(process.stdout)
console.log(metadata)
}))
*/
store.createReadStream('test/2/3/4').pipe(process.stdout)
})

0 comments on commit 461c961

Please sign in to comment.