git ssb

1+

Dominic / pull-stream-workshop



Tree: 079013977dd1a81caf9ed4717492ef3b9f722db0

Files: 079013977dd1a81caf9ed4717492ef3b9f722db0 / solutions / 01.js

303 bytesRaw
1
2module.exports = function (cb) {
3 return function (read) {
4 read(null, function more (end, data) {
5 if(end) return cb()
6 console.log(data)
7 read(null, more)
8 })
9 }
10}
11
12//to test: node verify.js 1 solutions/01.js
13if(!module.parent)
14 module.exports(require('../helpers/random')())
15

Built with git-ssb-web