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

Commit a027268

Browse files
committedSep 3, 2017
docs: fix example ipfs-101
1 parent b3ad40f commit a027268

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
 

‎examples/ipfs-101/1.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ series([
2121

2222
console.log('\nAdded file:', result[0].path, result[0].hash)
2323
fileMultihash = result[0].hash
24-
// cb()
24+
cb()
2525
}),
2626
(cb) => node.files.cat(fileMultihash, (err, stream) => {
2727
if (err) { return cb(err) }

‎examples/ipfs-101/package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "ipfs-101",
3+
"version": "0.0.0",
4+
"description": "this package.json needs to exist because of new npm config https://github.com/ipfs/js-ipfs/issues/977#issuecomment-326741092",
5+
"main": "1.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "David Dias <daviddias@ipfs.io>",
10+
"license": "MIT",
11+
"dependencies": {
12+
"async": "^2.5.0",
13+
"ipfs": "^0.25.4"
14+
}
15+
}

0 commit comments

Comments
 (0)