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

docs: fix example ipfs-101 #982

Merged
merged 1 commit into from
Sep 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/ipfs-101/1.js
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ series([

console.log('\nAdded file:', result[0].path, result[0].hash)
fileMultihash = result[0].hash
// cb()
cb()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kappabooom silly me, I forgot to uncomment this cb

}),
(cb) => node.files.cat(fileMultihash, (err, stream) => {
if (err) { return cb(err) }
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"
}
}