Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
docs: fix example ipfs-101
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Sep 3, 2017
1 parent b3ad40f commit a027268
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ipfs-101/1.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ series([

console.log('\nAdded file:', result[0].path, result[0].hash)
fileMultihash = result[0].hash
// cb()
cb()
}),
(cb) => node.files.cat(fileMultihash, (err, stream) => {
if (err) { return cb(err) }
Expand Down
15 changes: 15 additions & 0 deletions examples/ipfs-101/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "ipfs-101",
"version": "0.0.0",
"description": "this package.json needs to exist because of new npm config https://github.com/ipfs/js-ipfs/issues/977#issuecomment-326741092",
"main": "1.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "David Dias <daviddias@ipfs.io>",
"license": "MIT",
"dependencies": {
"async": "^2.5.0",
"ipfs": "^0.25.4"
}
}

0 comments on commit a027268

Please sign in to comment.